Skip to content

Commit 36679f3

Browse files
authored
pre-commit version updates and released python 3.14 (#785)
1 parent 585826f commit 36679f3

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

.github/workflows/tests.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
runs-on: ubuntu-latest
2020
strategy:
2121
matrix:
22-
python: ["3.9", "3.10", "3.11", "3.12", "3.13", "3.14-dev"]
22+
python: ["3.9", "3.10", "3.11", "3.12", "3.13", "3.14"]
2323
steps:
2424
- uses: actions/checkout@v5
2525
- uses: actions/setup-python@v5
@@ -59,7 +59,7 @@ jobs:
5959
strategy:
6060
fail-fast: false
6161
matrix:
62-
python: ["3.9", "3.10", "3.11", "3.12", "3.13", "3.14-dev"]
62+
python: ["3.9", "3.10", "3.11", "3.12", "3.13", "3.14"]
6363
steps:
6464
- uses: actions/checkout@v5
6565
- uses: actions/setup-python@v5
@@ -74,7 +74,7 @@ jobs:
7474
strategy:
7575
fail-fast: false
7676
matrix:
77-
python: ["3.10", "3.12", "3.14-dev"]
77+
python: ["3.10", "3.12", "3.14"]
7878
steps:
7979
- uses: actions/checkout@v5
8080
- uses: actions/setup-python@v5

.pre-commit-config.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,12 @@ repos:
2626
exclude: .bumpversion.cfg
2727

2828
- repo: https://github.com/psf/black
29-
rev: 25.1.0
29+
rev: 25.9.0
3030
hooks:
3131
- id: black
3232

3333
- repo: https://github.com/astral-sh/ruff-pre-commit
34-
rev: v0.12.10
34+
rev: v0.14.0
3535
hooks:
3636
- id: ruff
3737
args: ["--fix"]
@@ -42,14 +42,14 @@ repos:
4242
- id: yesqa
4343

4444
- repo: https://github.com/crate-ci/typos
45-
rev: v1.35.5
45+
rev: v1.38.1
4646
hooks:
4747
- id: typos
4848
args: []
4949
verbose: true
5050

5151
- repo: https://github.com/pre-commit/mirrors-mypy
52-
rev: v1.17.1
52+
rev: v1.18.2
5353
hooks:
5454
- id: mypy
5555
files: jsonargparse.*/.*.py

jsonargparse/_parameter_resolvers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ class ParamData:
4747

4848

4949
ParamList = List[ParamData]
50-
parameter_attributes = [s[1:] for s in inspect.Parameter.__slots__] # type: ignore[attr-defined]
50+
parameter_attributes = [s[1:] for s in inspect.Parameter.__slots__]
5151
kinds = inspect._ParameterKind
5252
ast_assign_type: Tuple[Type[ast.AST], ...] = (ast.AnnAssign, ast.Assign)
5353
param_kwargs_pop_or_get = "**.pop|get():"

jsonargparse/_postponed_annotations.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ def get_types(obj: Any, logger: Optional[logging.Logger] = None) -> dict:
254254
if isinstance(types, Exception):
255255
if logger:
256256
logger.debug(f"Failed to parse the source code for {obj}", exc_info=ex2)
257-
raise type(types)(f"{repr(types)} + {repr(ex2)}") from ex2 # type: ignore[arg-type]
257+
raise type(types)(f"{repr(types)} + {repr(ex2)}") from ex2
258258
return types
259259

260260
aliases = __builtins__.copy() # type: ignore[attr-defined]

0 commit comments

Comments
 (0)