Skip to content

Commit 66a32ce

Browse files
committed
Autoupdate .pre-commit-config.yaml
1 parent bbfa9de commit 66a32ce

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

.pre-commit-config.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
repos:
22
- repo: https://github.com/pre-commit/pre-commit-hooks
3-
rev: v4.6.0
3+
rev: v6.0.0
44
hooks:
55
- id: check-added-large-files
66
- id: check-json
@@ -12,19 +12,19 @@ repos:
1212
exclude: '\.eml$'
1313

1414
- repo: https://github.com/psf/black
15-
rev: 24.4.2
15+
rev: 25.9.0
1616
hooks:
1717
- id: black
1818
exclude: ^test/data
1919

2020
- repo: https://github.com/PyCQA/isort
21-
rev: 5.13.2
21+
rev: 7.0.0
2222
hooks:
2323
- id: isort
2424
exclude: ^test/data
2525

2626
- repo: https://github.com/PyCQA/flake8
27-
rev: 7.0.0
27+
rev: 7.3.0
2828
hooks:
2929
- id: flake8
3030
additional_dependencies:

src/versioningit/errors.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ class NoConfigFileError(NotVersioningitError):
4141
def __init__(self, project_dir: Path) -> None:
4242
#: The path to the project directory
4343
self.project_dir: Path = project_dir
44+
super().__init__(project_dir)
4445

4546
def __str__(self) -> str:
4647
return f"No pyproject.toml or versioningit.toml file in {self.project_dir}"
@@ -58,6 +59,7 @@ class NoConfigSectionError(NotVersioningitError):
5859
def __init__(self, config_path: Path) -> None:
5960
#: The path to the configuration file
6061
self.config_path: Path = config_path
62+
super().__init__(config_path)
6163

6264
def __str__(self) -> str:
6365
return f"versioningit not configured in {self.config_path}"

src/versioningit/get_cmdclasses.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010

1111
def get_cmdclasses(
12-
bases: Optional[dict[str, type[Command]]] = None
12+
bases: Optional[dict[str, type[Command]]] = None,
1313
) -> dict[str, type[Command]]:
1414
"""
1515
.. versionadded:: 1.1.0

0 commit comments

Comments
 (0)