Skip to content

Commit 61a837d

Browse files
committed
Linter fixes.
1 parent 44a1b83 commit 61a837d

File tree

1 file changed

+40
-40
lines changed

1 file changed

+40
-40
lines changed

pyproject.toml

Lines changed: 40 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -48,12 +48,6 @@ scripts.j2 = "jinjanator.cli:main"
4848

4949
scripts.jinjanate = "jinjanator.cli:main"
5050

51-
[tool.hatch.version]
52-
source = "vcs"
53-
54-
[tool.hatch.build.hooks.vcs]
55-
version-file = "src/jinjanator/version.py"
56-
5751
[tool.hatch.build]
5852
artifacts = [
5953
"src/jinjanator/version.py",
@@ -63,6 +57,9 @@ exclude = [
6357
".github",
6458
]
6559

60+
[tool.hatch.build.hooks.vcs]
61+
version-file = "src/jinjanator/version.py"
62+
6663
[tool.hatch.build.targets.sdist]
6764
include = [
6865
"src",
@@ -75,13 +72,6 @@ packages = [
7572
"src/jinjanator",
7673
]
7774

78-
[tool.hatch.envs.default]
79-
python = "3.13"
80-
installer = "uv"
81-
python-sources = [
82-
"external",
83-
]
84-
8575
[tool.hatch.envs.changelog]
8676
detached = true
8777
dependencies = [
@@ -98,33 +88,6 @@ release = [
9888
"towncrier build --yes --version {args}",
9989
]
10090

101-
[tool.hatch.envs.lint]
102-
dependencies = [
103-
"ruff>=0.2.0",
104-
"mypy",
105-
"pyproject-fmt",
106-
"pytest", # needed for type-checking tests
107-
"types-PyYAML",
108-
]
109-
110-
[tool.hatch.envs.lint.scripts]
111-
lint = [
112-
"ruff format",
113-
"ruff check --output-format=full --fix --show-fixes",
114-
"mypy --package jinjanator",
115-
"mypy tests",
116-
"shellcheck workflow-support/*.sh",
117-
"pyproject-fmt pyproject.toml tests/test_plugin/pyproject.toml",
118-
]
119-
lint-action = [
120-
"ruff format --check --diff",
121-
"ruff check --output-format=github",
122-
"mypy --package jinjanator",
123-
"mypy tests",
124-
"shellcheck workflow-support/*.sh",
125-
"pyproject-fmt --check pyproject.toml tests/test_plugin/pyproject.toml",
126-
]
127-
12891
[tool.hatch.envs.ci]
12992
dependencies = [
13093
"coverage[toml]",
@@ -155,6 +118,40 @@ ci = [
155118
"coverage report --show-missing --fail-under=98",
156119
]
157120

121+
[tool.hatch.envs.default]
122+
python = "3.13"
123+
installer = "uv"
124+
python-sources = [
125+
"external",
126+
]
127+
128+
[tool.hatch.envs.lint]
129+
dependencies = [
130+
"ruff>=0.2.0",
131+
"mypy",
132+
"pyproject-fmt",
133+
"pytest", # needed for type-checking tests
134+
"types-PyYAML",
135+
]
136+
137+
[tool.hatch.envs.lint.scripts]
138+
lint = [
139+
"ruff format",
140+
"ruff check --output-format=full --fix --show-fixes",
141+
"mypy --package jinjanator",
142+
"mypy tests",
143+
"shellcheck workflow-support/*.sh",
144+
"pyproject-fmt pyproject.toml tests/test_plugin/pyproject.toml",
145+
]
146+
lint-action = [
147+
"ruff format --check --diff",
148+
"ruff check --output-format=github",
149+
"mypy --package jinjanator",
150+
"mypy tests",
151+
"shellcheck workflow-support/*.sh",
152+
"pyproject-fmt --check pyproject.toml tests/test_plugin/pyproject.toml",
153+
]
154+
158155
[tool.hatch.metadata]
159156
allow-direct-references = true
160157

@@ -196,6 +193,9 @@ replacement = '[\1](https://github.com/kpfleming/jinjanator/tree/main/\g<2>)'
196193
pattern = "#(\\d+)"
197194
replacement = "[#\\1](https://github.com/kpfleming/jinjanator/issues/\\1)"
198195

196+
[tool.hatch.version]
197+
source = "vcs"
198+
199199
[tool.ruff]
200200
line-length = 100
201201

0 commit comments

Comments
 (0)