Skip to content

Commit 487941c

Browse files
committed
chore: Update test tools
1 parent 16c3cd9 commit 487941c

File tree

2 files changed

+11
-20
lines changed

2 files changed

+11
-20
lines changed

.pre-commit-config.yaml

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,14 @@
11
repos:
2-
- repo: https://github.com/psf/black
3-
rev: 23.12.1
4-
hooks:
5-
- id: black
6-
name: black
7-
- repo: https://github.com/pycqa/isort
8-
rev: 5.12.0
9-
hooks:
10-
- id: isort
112
- repo: https://github.com/astral-sh/ruff-pre-commit
12-
rev: v0.1.8
3+
rev: v0.3.3
134
hooks:
145
- id: ruff
6+
- id: ruff-format
157
- repo: https://github.com/pycqa/doc8
168
rev: v1.1.1
179
hooks:
1810
- id: doc8
1911
- repo: https://github.com/pre-commit/mirrors-mypy
20-
rev: v1.8.0
12+
rev: v1.9.0
2113
hooks:
2214
- id: mypy

hatch.toml

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
[envs.default]
22
dependencies = [
3-
"freezegun==1.2.*",
3+
"freezegun==1.4.*",
44
"pytest-cov==4.1.*",
5-
"pytest==7.3.*",
5+
"pytest==8.1.*",
66
]
77
features = [
88
"pydantic",
@@ -14,22 +14,21 @@ test = "cov-test --no-cov"
1414

1515
[envs.lint]
1616
extra-dependencies = [
17-
"ruff==0.1.*",
18-
"black==23.12.*",
19-
"mypy==1.8.*",
17+
"ruff==0.3.*",
18+
"mypy==1.9.*",
2019
"doc8==1.1.*",
2120
"pygments==2.16.*",
2221
]
2322

2423
[envs.lint.scripts]
2524
typing = "mypy --install-types --non-interactive {args:schwifty tests}"
2625
style = [
27-
"black --check --diff {args:.}",
28-
"ruff {args:.}",
26+
"ruff format --check --diff {args:.}",
27+
"ruff check {args:.}",
2928
]
3029
fmt = [
31-
"black {args:.}",
32-
"ruff --fix {args:.}",
30+
"ruff format {args:.}",
31+
"ruff check --fix {args:.}",
3332
]
3433
docs = "doc8 docs/source"
3534

0 commit comments

Comments
 (0)