Skip to content

Commit 85377f7

Browse files
authored
fix: Always enable @graph_sitter.function (#50)
1 parent b30c11f commit 85377f7

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

.github/workflows/test.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@ jobs:
4343
-n auto \
4444
--cov src \
4545
--splits 8 --group ${{ matrix.group }} \
46-
# --cov-report=json \
4746
--timeout 15 \
4847
-o junit_suite_name="${{github.job}}-${{ matrix.group }}" \
4948
tests/unit

hatch.toml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,14 @@
11
[build.hooks.vcs]
22
dependencies = ["hatch-vcs>=0.4.0"]
33
version-file = "src/graph_sitter/__init__.py"
4-
4+
template = """
5+
# coding: utf-8
6+
# file generated by setuptools_scm
7+
# don't change, don't track in version control
8+
version = {version!r}
9+
version_tuple = {version_tuple!r}
10+
from graph_sitter.cli.sdk.decorator import function
11+
"""
512
[metadata]
613
allow-direct-references = true
714
[envs.hatch-build]

src/graph_sitter/gscli/generate/runner_imports.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
import plotly
1717
""".strip()
1818
CODEGEN_IMPORTS = """
19-
from graph_sitter.cli.sdk.decorator import function
2019
from graph_sitter.git.models.codemod_context import CodemodContext
2120
from graph_sitter.git.models.github_named_user_context import GithubNamedUserContext
2221
from graph_sitter.git.models.pr_options import PROptions

0 commit comments

Comments
 (0)