File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -19,21 +19,22 @@ repos:
1919 - id : nocheckin
2020 exclude : .pre-commit-config.yaml
2121 - repo : https://github.com/astral-sh/ruff-pre-commit
22- rev : v0.9.1
22+ rev : v0.11.13
2323 hooks :
2424 - id : ruff
2525 args : [ "--fix" ]
2626 - repo : https://github.com/PyCQA/flake8
27- rev : 7.1.1
27+ rev : 7.2.0
2828 hooks :
2929 - id : flake8
3030 additional_dependencies :
3131 - flake8-type-checking
32- files : ' ^(sedate/.* |tests/.*) \.py$'
32+ files : ' ^(sedate|tests) /.*\.py$'
3333 - repo : https://github.com/pre-commit/mirrors-mypy
34- rev : v1.14.1
34+ rev : v1.16.0
3535 hooks :
3636 - id : mypy
37- files : ' ^sedate/.*\.py$'
37+ files : ' ^( sedate|tests) /.*\.py$'
3838 additional_dependencies :
39+ - pytest
3940 - types_pytz
Original file line number Diff line number Diff line change @@ -117,6 +117,7 @@ select = [
117117 " PERF" ,
118118 " PGH004" ,
119119 " PIE" ,
120+ " PT" ,
120121 " PYI" ,
121122 " Q" ,
122123 " RUF" ,
@@ -173,6 +174,7 @@ allowed-confusables = ["×"]
173174preview = true
174175
175176[tool .ruff .lint .extend-per-file-ignores ]
177+ "sedate/**/*.py" = [" PT" ]
176178"tests/**/*.py" = [
177179 " C4" ,
178180 " D" ,
@@ -265,13 +267,14 @@ commands =
265267basepython = python3.11
266268deps =
267269 mypy
270+ pytest
268271 types-pytz
269272commands =
270- mypy -p sedate --python-version 3.9
271- mypy -p sedate --python-version 3.10
272- mypy -p sedate --python-version 3.11
273- mypy -p sedate --python-version 3.12
274- mypy -p sedate --python-version 3.13
273+ mypy -p sedate -p tests - -python-version 3.9
274+ mypy -p sedate -p tests - -python-version 3.10
275+ mypy -p sedate -p tests - -python-version 3.11
276+ mypy -p sedate -p tests - -python-version 3.12
277+ mypy -p sedate -p tests - -python-version 3.13
275278
276279[testenv:bandit]
277280basepython = python3.11
Original file line number Diff line number Diff line change 4141 mypy
4242 pre-commit
4343 pre-commit-uv
44+ pytest
4445 ruff
4546 tox
4647 tox-uv
You can’t perform that action at this time.
0 commit comments