File tree Expand file tree Collapse file tree 7 files changed +22
-28
lines changed
Expand file tree Collapse file tree 7 files changed +22
-28
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 11{
22 "$schema" : " https://docs.renovatebot.com/renovate-schema.json" ,
3- "extends" : [" config:base " , " :semanticCommitsDisabled" ],
3+ "extends" : [" config:recommended " , " :semanticCommitsDisabled" ],
44 "labels" : [" changelog: skip" , " dependencies" ],
5+ "minimumReleaseAge" : " 7 days" ,
56 "packageRules" : [
67 {
78 "groupName" : " github-actions" ,
89 "matchManagers" : [" github-actions" ],
9- "separateMajorMinor" : " false"
10+ "separateMajorMinor" : false
1011 }
1112 ],
1213 "schedule" : [" on the first day of the month" ]
Original file line number Diff line number Diff line change 1616 - uses : actions/checkout@v6
1717 with :
1818 persist-credentials : false
19- - uses : actions/setup-python@v6
20- with :
21- python-version : " 3.x"
22- - uses : tox-dev/action-pre-commit-uv@v1
19+ - uses : j178/prek-action@v1
2320
2421 mypy :
2522 runs-on : ubuntu-latest
Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ permissions: {}
66
77env :
88 FORCE_COLOR : 1
9+ PIP_DISABLE_PIP_VERSION_CHECK : 1
910
1011jobs :
1112 test :
Original file line number Diff line number Diff line change 1- # Configuration for the zizmor static analysis tool, run via pre-commit in CI
2- # https://woodruffw.github.io/zizmor/configuration/
1+ # https://docs.zizmor.sh/configuration/
32rules :
43 unpinned-uses :
54 config :
Original file line number Diff line number Diff line change @@ -93,20 +93,32 @@ lint.ignore = [
9393 " E226" , # Missing whitespace around arithmetic operator
9494 " E241" , # Multiple spaces after ','
9595 " PIE790" , # flake8-pie: unnecessary-placeholder
96- " UP038" , # Makes code slower and more verbose
9796]
9897lint.flake8-import-conventions.aliases.datetime = " dt"
9998lint.flake8-import-conventions.banned-from = [ " datetime" ]
10099lint.flake8-pytest-style.parametrize-names-type = " csv"
101100lint.isort.known-first-party = [ " em" ]
102101lint.isort.required-imports = [ " from __future__ import annotations" ]
102+ lint.future-annotations = true
103103
104104[tool .pyproject-fmt ]
105105max_supported_python = " 3.15"
106106
107107[tool .pytest .ini_options ]
108108testpaths = [ " tests" ]
109109
110+ [tool .coverage .run ]
111+ omit = [
112+ " **/__main__.py" ,
113+ ]
114+
115+ [tool .coverage .report ]
116+ # Regexes for lines to exclude from consideration
117+ exclude_also = [
118+ # Don't complain if non-runnable code isn't run:
119+ " if __name__ == .__main__.:" ,
120+ ]
121+
110122[tool .mypy ]
111123pretty = true
112124show_error_codes = true
Original file line number Diff line number Diff line change @@ -12,8 +12,6 @@ extras =
1212 tests
1313pass_env =
1414 FORCE_COLOR
15- set_env =
16- COVERAGE_CORE = sysmon
1715commands =
1816 {envpython} -m pytest \
1917 --cov em \
@@ -32,11 +30,11 @@ commands =
3230[testenv:lint]
3331skip_install = true
3432deps =
35- pre-commit-uv
33+ prek
3634pass_env =
37- PRE_COMMIT_COLOR
35+ PREK_COLOR
3836commands =
39- pre-commit run --all-files --show-diff-on-failure
37+ prek run --all-files --show-diff-on-failure
4038
4139[testenv:mypy]
4240deps =
You can’t perform that action at this time.
0 commit comments