File tree Expand file tree Collapse file tree 3 files changed +10
-12
lines changed
Expand file tree Collapse file tree 3 files changed +10
-12
lines changed Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change @@ -39,6 +39,10 @@ dynamic = ["version"]
3939docs = [
4040 " sphinx" ,
4141]
42+ lint = [
43+ " ruff" ,
44+ " mypy" ,
45+ ]
4246
4347[project .urls ]
4448repository = " https://github.com/WhyNotHugo/django-renderpdf/"
Original file line number Diff line number Diff line change @@ -24,3 +24,9 @@ commands =
2424 make -C docs html
2525allowlist_externals =
2626 make
27+
28+ [testenv:lint]
29+ extras = lint
30+ commands =
31+ ruff check .
32+ ruff format --diff .
You can’t perform that action at this time.
0 commit comments