Skip to content

Commit 8291ace

Browse files
chore(deps): pre-commit autoupdate (#502)
* chore(deps): pre-commit autoupdate updates: - [github.com/tox-dev/pyproject-fmt: v2.12.1 → v2.16.2](tox-dev/pyproject-fmt@v2.12.1...v2.16.2) - [github.com/astral-sh/ruff-pre-commit: v0.14.14 → v0.15.4](astral-sh/ruff-pre-commit@v0.14.14...v0.15.4) - [github.com/python-jsonschema/check-jsonschema: 0.36.1 → 0.37.0](python-jsonschema/check-jsonschema@0.36.1...0.37.0) - [github.com/astral-sh/uv-pre-commit: 0.10.4 → 0.10.7](astral-sh/uv-pre-commit@0.10.4...0.10.7) * [pre-commit.ci] auto fixes --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent 95b761e commit 8291ace

File tree

2 files changed

+24
-35
lines changed

2 files changed

+24
-35
lines changed

.pre-commit-config.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,12 @@ repos:
1919
- id: trailing-whitespace
2020

2121
- repo: https://github.com/tox-dev/pyproject-fmt
22-
rev: "v2.12.1"
22+
rev: "v2.16.2"
2323
hooks:
2424
- id: pyproject-fmt
2525

2626
- repo: https://github.com/astral-sh/ruff-pre-commit
27-
rev: "v0.14.14"
27+
rev: "v0.15.4"
2828
hooks:
2929
- id: ruff-check
3030
args: [--fix, --exit-non-zero-on-fix, --show-fixes]
@@ -36,7 +36,7 @@ repos:
3636
- id: validate_manifest
3737

3838
- repo: https://github.com/python-jsonschema/check-jsonschema
39-
rev: 0.36.1
39+
rev: 0.37.0
4040
hooks:
4141
- id: check-github-workflows
4242
- id: check-renovate
@@ -45,7 +45,7 @@ repos:
4545
- pyjson5==2.0.0
4646

4747
- repo: https://github.com/astral-sh/uv-pre-commit
48-
rev: 0.10.4
48+
rev: 0.10.7
4949
hooks:
5050
- id: uv-lock
5151
- id: uv-sync

pyproject.toml

Lines changed: 20 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -59,20 +59,19 @@ typing = [
5959
"types-requests",
6060
]
6161

62-
[tool.hatch.version]
63-
source = "vcs"
62+
[tool.hatch]
63+
version.source = "vcs"
6464

6565
[tool.uv]
66-
preview = true
6766
required-version = ">=0.5.19"
67+
preview = true
6868

6969
[tool.ruff]
7070
line-length = 88
7171
src = [
7272
"tap_shortcut",
7373
"tests",
7474
]
75-
7675
lint.select = [
7776
"ALL",
7877
]
@@ -81,7 +80,6 @@ lint.ignore = [
8180
"DJ", # flake8-django
8281
"ISC001", # single-line-implicit-string-concatenation
8382
]
84-
8583
lint.per-file-ignores."noxfile.py" = [
8684
"ANN",
8785
]
@@ -101,10 +99,10 @@ lint.isort.required-imports = [
10199
]
102100
lint.pydocstyle.convention = "google"
103101

104-
[tool.deptry.package_module_name_map]
105-
mypy = "mypy"
106-
ty = "ty"
107-
types-requests = "requests"
102+
[tool.deptry]
103+
package_module_name_map.mypy = "mypy"
104+
package_module_name_map.ty = "ty"
105+
package_module_name_map.types-requests = "requests"
108106

109107
[tool.pyproject-fmt]
110108
max_supported_python = "3.14"
@@ -126,26 +124,18 @@ env_list = [
126124
"3.13",
127125
"3.12",
128126
]
129-
130-
[tool.tox.env.dependencies]
131-
dependency_groups = [ "testing" ]
132-
commands = [ [ "deptry", "." ] ]
133-
134-
[tool.tox.env.sync]
135-
commands = [ [ "tap-shortcut", { replace = "posargs", default = [ "--config=ENV" ], extend = true } ] ]
136-
137-
[tool.tox.env.typing]
138-
dependency_groups = [ "testing", "typing" ]
139-
commands = [
127+
env.dependencies.dependency_groups = [ "testing" ]
128+
env.dependencies.commands = [ [ "deptry", "." ] ]
129+
env.sync.commands = [ [ "tap-shortcut", { replace = "posargs", default = [ "--config=ENV" ], extend = true } ] ]
130+
env.typing.dependency_groups = [ "testing", "typing" ]
131+
env.typing.commands = [
140132
[ "mypy", "--strict", { replace = "posargs", default = [ "tap_shortcut", "tests" ], extend = true } ],
141133
[ "ty", "check", { replace = "posargs", default = [ "tap_shortcut", "tests" ], extend = true } ],
142134
]
143-
144-
[tool.tox.env_run_base]
145-
runner = "uv-venv-lock-runner"
146-
pass_env = [ "TAP_SHORTCUT_*" ]
147-
dependency_groups = [ "testing" ]
148-
commands = [ [ "pytest", { replace = "posargs", default = [ "tests" ], extend = true } ] ]
135+
env_run_base.runner = "uv-venv-lock-runner"
136+
env_run_base.pass_env = [ "TAP_SHORTCUT_*" ]
137+
env_run_base.dependency_groups = [ "testing" ]
138+
env_run_base.commands = [ [ "pytest", { replace = "posargs", default = [ "tests" ], extend = true } ] ]
149139

150140
[tool.mypy]
151141
warn_redundant_casts = true
@@ -154,9 +144,8 @@ warn_no_return = true
154144
warn_unreachable = true
155145
warn_unused_configs = true
156146
warn_unused_ignores = true
157-
158-
[[tool.mypy.overrides]]
159-
ignore_missing_imports = true
160-
module = [
161-
"toolz.*", # https://github.com/pytoolz/toolz/issues/496
147+
overrides = [
148+
{ ignore_missing_imports = true, module = [
149+
"toolz.*", # https://github.com/pytoolz/toolz/issues/496
150+
] },
162151
]

0 commit comments

Comments
 (0)