Skip to content

Commit 07eaea6

Browse files
[pre-commit.ci] pre-commit autoupdate (#124)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Philipp A. <flying-sheep@web.de>
1 parent 46eb3b8 commit 07eaea6

File tree

3 files changed

+25
-29
lines changed

3 files changed

+25
-29
lines changed

.pre-commit-config.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,19 @@ repos:
55
- id: trailing-whitespace
66
- id: end-of-file-fixer
77
- repo: https://github.com/astral-sh/ruff-pre-commit
8-
rev: v0.14.14
8+
rev: v0.15.0
99
hooks:
1010
- id: ruff
1111
args: [--fix, --exit-non-zero-on-fix]
1212
- id: ruff
1313
args: [--preview, --select=CPY]
1414
- id: ruff-format
1515
- repo: https://github.com/biomejs/pre-commit
16-
rev: v2.3.10
16+
rev: v2.3.14
1717
hooks:
1818
- id: biome-format
1919
- repo: https://github.com/tox-dev/pyproject-fmt
20-
rev: v2.12.1
20+
rev: v2.15.1
2121
hooks:
2222
- id: pyproject-fmt
2323
- repo: https://github.com/pre-commit/mirrors-mypy

pyproject.toml

Lines changed: 21 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,11 @@ name = "legacy-api-wrap"
77
readme = "README.rst"
88
license = "MPL-2.0"
99
authors = [ { name = "Philipp A.", email = "flying-sheep@web.de" } ]
10-
requires-python = ">=3.9"
10+
requires-python = ">=3.10"
1111
classifiers = [
1212
"Development Status :: 5 - Production/Stable",
1313
"Intended Audience :: Developers",
1414
"Programming Language :: Python :: 3 :: Only",
15-
"Programming Language :: Python :: 3.9",
1615
"Programming Language :: Python :: 3.10",
1716
"Programming Language :: Python :: 3.11",
1817
"Programming Language :: Python :: 3.12",
@@ -22,7 +21,7 @@ classifiers = [
2221
"Typing :: Typed",
2322
]
2423
dynamic = [ "description", "version" ]
25-
dependencies = [ ]
24+
dependencies = []
2625
optional-dependencies.test = [
2726
"anyconfig[toml]>=0.14", # coverage-rich uses anyconfig
2827
"coverage",
@@ -32,23 +31,18 @@ optional-dependencies.test = [
3231
]
3332
urls.Source = "https://github.com/flying-sheep/legacy-api-wrap"
3433

35-
[tool.hatch.build.targets.wheel]
36-
packages = [ "src/legacy_api_wrap", "src/testing/legacy_api_wrap" ]
37-
[tool.hatch.envs.hatch-test]
38-
default-args = [ ]
39-
features = [ "test" ]
40-
extra-dependencies = [ "ipython" ]
41-
scripts.run = "pytest{env:HATCH_TEST_ARGS:} {args}"
42-
scripts.run-cov = "coverage run -m pytest{env:HATCH_TEST_ARGS:} {args}"
43-
scripts.cov-combine = "coverage combine"
44-
scripts.cov-report = "coverage-rich report"
45-
[[tool.hatch.envs.hatch-test.matrix]]
46-
python = [ "3.9", "3.14" ]
47-
48-
[tool.hatch.metadata.hooks.docstring-description]
49-
50-
[tool.hatch.version]
51-
source = "vcs"
34+
[tool.hatch]
35+
build.targets.wheel.packages = [ "src/legacy_api_wrap", "src/testing/legacy_api_wrap" ]
36+
envs.hatch-test.default-args = []
37+
envs.hatch-test.features = [ "test" ]
38+
envs.hatch-test.extra-dependencies = [ "ipython" ]
39+
envs.hatch-test.scripts.run = "pytest{env:HATCH_TEST_ARGS:} {args}"
40+
envs.hatch-test.scripts.run-cov = "coverage run -m pytest{env:HATCH_TEST_ARGS:} {args}"
41+
envs.hatch-test.scripts.cov-combine = "coverage combine"
42+
envs.hatch-test.scripts.cov-report = "coverage-rich report"
43+
envs.hatch-test.matrix = [ { python = [ "3.14", "3.10" ] } ]
44+
metadata.hooks.docstring-description = {}
45+
version.source = "vcs"
5246

5347
[tool.ruff]
5448
line-length = 100
@@ -72,22 +66,24 @@ lint.flake8-copyright.notice-rgx = "SPDX-License-Identifier: MPL-2\\.0"
7266
lint.isort.known-first-party = [ "legacy_api_wrap" ]
7367
lint.isort.required-imports = [ "from __future__ import annotations" ]
7468

75-
[tool.pytest.ini_options]
69+
[tool.pytest]
70+
strict = true
7671
addopts = [
7772
"--import-mode=importlib",
78-
"--strict-markers",
79-
"-Werror",
8073
"-ptesting.legacy_api_wrap.pytest",
8174
"--doctest-modules",
8275
"--doctest-glob=*.rst",
8376
]
77+
filterwarnings = [
78+
"error",
79+
]
8480

8581
[tool.coverage]
8682
run.data_file = "test-data/coverage"
87-
xml.output = "test-data/coverage.xml"
88-
html.directory = "test-data/htmlcov"
8983
run.omit = [ "src/testing/*", "tests/*" ]
9084
report.exclude_also = [ "if TYPE_CHECKING:" ]
85+
html.directory = "test-data/htmlcov"
86+
xml.output = "test-data/coverage.xml"
9187

9288
[tool.mypy]
9389
strict = true

src/legacy_api_wrap/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ def fn_compatible(*args_all: P.args, **kw: P.kwargs) -> R:
108108
else {}
109109
),
110110
)
111-
kw_new = {**kw, **dict(zip(old_positionals, args_rest))}
111+
kw_new = {**kw, **dict(zip(old_positionals, args_rest, strict=False))}
112112

113113
return fn(*args_pos, **kw_new) # type: ignore[arg-type]
114114

0 commit comments

Comments
 (0)