Skip to content

Commit 534fd03

Browse files
authored
Update config (#193)
2 parents 51ad8e5 + a42435e commit 534fd03

File tree

7 files changed

+22
-28
lines changed

7 files changed

+22
-28
lines changed

.coveragerc

Lines changed: 0 additions & 14 deletions
This file was deleted.

.github/renovate.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
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"]

.github/workflows/lint.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,7 @@ jobs:
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

.github/workflows/test.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ permissions: {}
66

77
env:
88
FORCE_COLOR: 1
9+
PIP_DISABLE_PIP_VERSION_CHECK: 1
910

1011
jobs:
1112
test:

.github/zizmor.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
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/
32
rules:
43
unpinned-uses:
54
config:

pyproject.toml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff 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
]
9897
lint.flake8-import-conventions.aliases.datetime = "dt"
9998
lint.flake8-import-conventions.banned-from = [ "datetime" ]
10099
lint.flake8-pytest-style.parametrize-names-type = "csv"
101100
lint.isort.known-first-party = [ "em" ]
102101
lint.isort.required-imports = [ "from __future__ import annotations" ]
102+
lint.future-annotations = true
103103

104104
[tool.pyproject-fmt]
105105
max_supported_python = "3.15"
106106

107107
[tool.pytest.ini_options]
108108
testpaths = [ "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]
111123
pretty = true
112124
show_error_codes = true

tox.ini

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@ extras =
1212
tests
1313
pass_env =
1414
FORCE_COLOR
15-
set_env =
16-
COVERAGE_CORE = sysmon
1715
commands =
1816
{envpython} -m pytest \
1917
--cov em \
@@ -32,11 +30,11 @@ commands =
3230
[testenv:lint]
3331
skip_install = true
3432
deps =
35-
pre-commit-uv
33+
prek
3634
pass_env =
37-
PRE_COMMIT_COLOR
35+
PREK_COLOR
3836
commands =
39-
pre-commit run --all-files --show-diff-on-failure
37+
prek run --all-files --show-diff-on-failure
4038

4139
[testenv:mypy]
4240
deps =

0 commit comments

Comments
 (0)