Skip to content

Commit edac3a7

Browse files
committed
Copier Template: Pyproject: Hatch: Remove 'vulture' from 'linters' command group. Add it as Git 'pre-push' hook instead.
1 parent 4e81646 commit edac3a7

5 files changed

Lines changed: 23 additions & 8 deletions

File tree

.auxiliary/configuration/pre-commit.yaml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ default_install_hook_types: [ 'pre-commit', 'pre-push' ]
66
repos:
77

88
- repo: https://github.com/pre-commit/pre-commit-hooks
9-
rev: v5.0.0
9+
rev: v6.0.0
1010
hooks:
1111
- id: check-added-large-files
1212
name: 'Check: Large Files'
@@ -40,7 +40,7 @@ repos:
4040
name: 'Check: Debug Statements (Python)'
4141

4242
- repo: https://github.com/astral-sh/ruff-pre-commit
43-
rev: v0.12.1
43+
rev: v0.14.3
4444
hooks:
4545
- id: ruff
4646
name: 'Lint: Ruff'
@@ -49,6 +49,15 @@ repos:
4949
- repo: local
5050
hooks:
5151

52+
- id: hatch-vulture
53+
name: 'Lint: Vulture'
54+
stages: [ 'pre-commit' ]
55+
fail_fast: true
56+
language: system
57+
always_run: true
58+
pass_filenames: false
59+
entry: 'hatch --env develop run vulture'
60+
5261
- id: hatch-pytest
5362
name: 'Test Code Units (Python)'
5463
stages: [ 'pre-commit' ] # push is covered below

.auxiliary/notes/todo.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@
22

33
- Suppress PyPy 3.11 with Rust extension until Maturin supports it.
44
- Suppress Python 3.13 and 3.14 with Rust extension until Maturin supports it.
5-
- Remove Vulture from `linters` command, but leave it defined.
6-
Have the Claude Code pre-commit hook run it separately.
5+
- Have the Claude Code pre-commit hook run Vulture separately. (agents-common)
76

87
## Future Enhancements
98

pyproject.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,6 @@ linters = [
145145
# --- BEGIN: Injected by Copier ---
146146
# --- END: Injected by Copier ---
147147
"""isort --check-only --diff sources tests""",
148-
"""vulture""",
149148
"""pyright sources""",
150149
]
151150
packagers = [

template/.auxiliary/configuration/pre-commit.yaml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ default_install_hook_types: [ 'pre-commit', 'pre-push' ]
66
repos:
77

88
- repo: https://github.com/pre-commit/pre-commit-hooks
9-
rev: v5.0.0
9+
rev: v6.0.0
1010
hooks:
1111
- id: check-added-large-files
1212
name: 'Check: Large Files'
@@ -40,7 +40,7 @@ repos:
4040
name: 'Check: Debug Statements (Python)'
4141

4242
- repo: https://github.com/astral-sh/ruff-pre-commit
43-
rev: v0.12.1
43+
rev: v0.14.3
4444
hooks:
4545
- id: ruff
4646
name: 'Lint: Ruff'
@@ -49,6 +49,15 @@ repos:
4949
- repo: local
5050
hooks:
5151

52+
- id: hatch-vulture
53+
name: 'Lint: Vulture'
54+
stages: [ 'pre-commit' ]
55+
fail_fast: true
56+
language: system
57+
always_run: true
58+
pass_filenames: false
59+
entry: 'hatch --env develop run vulture'
60+
5261
- id: hatch-pytest
5362
name: 'Test Code Units (Python)'
5463
stages: [ 'pre-commit' ] # push is covered below

template/pyproject.toml.jinja

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,6 @@ linters = [
183183
{%- endif %}
184184
# --- END: Injected by Copier ---
185185
"""isort --check-only --diff sources tests""",
186-
"""vulture""",
187186
"""pyright sources""",
188187
]
189188
packagers = [

0 commit comments

Comments
 (0)