Skip to content

Commit 8ea85ef

Browse files
committed
dev: move linting into dev group
1 parent f53fc54 commit 8ea85ef

5 files changed

Lines changed: 92 additions & 114 deletions

File tree

‎.github/workflows/ci.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ jobs:
186186
- run: >
187187
uvx --with=tox-uv
188188
--python $(cat .python-version-default)
189-
tox run -e lint
189+
tox run -f lint
190190
191191
typing:
192192
name: Check types using supported type checkers

‎.pre-commit-config.yaml‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,12 @@ ci:
33
autoupdate_schedule: monthly
44

55
repos:
6+
- repo: https://github.com/econchick/interrogate
7+
rev: 1.7.0
8+
hooks:
9+
- id: interrogate
10+
args: [tests]
11+
612
- repo: https://github.com/codespell-project/codespell
713
rev: v2.4.3
814
hooks:

‎pyproject.toml‎

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,10 @@ tests = [
4949
"pytest>9",
5050
"pytest-xdist[psutil]",
5151
]
52+
lint = [
53+
"ruff>=0.16",
54+
"prek>=0.4",
55+
]
5256
cov = [{ include-group = "tests" }, "coverage[toml]"]
5357
pyright = ["pyright", { include-group = "tests" }]
5458
ty = ["ty", { include-group = "tests" }]
@@ -70,9 +74,7 @@ docs = [
7074
docs-watch = [{ include-group = "docs" }, "watchfiles"]
7175
dev = [
7276
{ include-group = "tests" },
73-
"ruff",
74-
"prek",
75-
"interrogate>=1.7.0",
77+
{ include-group = "lint" },
7678
]
7779

7880

‎tox.ini‎

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ requires =
55
tox>=4.51.0
66
tox-uv
77
env_list =
8-
lint-{ruff,interrogate,pre-commit},
8+
lint-{ruff,pre-commit},
99
3.1{0-5}-tests,
1010
3.1{0-5}-mypy,
1111
pypy3.11-tests,
@@ -105,13 +105,12 @@ deps = cogapp
105105
commands = cog -rP README.md docs/index.md
106106

107107

108-
[testenv:lint-{ruff,interrogate,pre-commit}]
109-
dependency_groups = dev
108+
[testenv:lint-{ruff,pre-commit}]
109+
dependency_groups = lint
110110
commands =
111-
ruff: uv run -m ruff check --fix --exit-non-zero-on-fix .
112-
ruff: uv run -m ruff format --exit-non-zero-on-format .
113-
interrogate: uv run -m interrogate tests
114-
pre-commit: uv run -m prek run --all-files
111+
ruff: ruff check --fix --exit-non-zero-on-fix .
112+
ruff: ruff format --exit-non-zero-on-format .
113+
pre-commit: prek run --all-files
115114

116115

117116
[testenv:changelog]

0 commit comments

Comments
 (0)