Skip to content

Commit 050443f

Browse files
committed
Run linting via tox
1 parent c9145e7 commit 050443f

File tree

3 files changed

+10
-12
lines changed

3 files changed

+10
-12
lines changed

.pre-commit-config.yaml

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,3 @@ repos:
88
- id: check-toml
99
- id: check-added-large-files
1010
- id: debug-statements
11-
- repo: https://github.com/psf/black
12-
rev: "23.7.0"
13-
hooks:
14-
- id: black
15-
- repo: https://github.com/pre-commit/mirrors-mypy
16-
rev: "v1.5.0"
17-
hooks:
18-
- id: mypy
19-
- repo: https://github.com/astral-sh/ruff-pre-commit
20-
rev: 'v0.0.284'
21-
hooks:
22-
- id: ruff

pyproject.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,10 @@ dynamic = ["version"]
3939
docs = [
4040
"sphinx",
4141
]
42+
lint = [
43+
"ruff",
44+
"mypy",
45+
]
4246

4347
[project.urls]
4448
repository = "https://github.com/WhyNotHugo/django-renderpdf/"

tox.ini

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,9 @@ commands =
2424
make -C docs html
2525
allowlist_externals =
2626
make
27+
28+
[testenv:lint]
29+
extras = lint
30+
commands =
31+
ruff check .
32+
ruff format --diff .

0 commit comments

Comments
 (0)