Skip to content

Commit ab54813

Browse files
committed
Update pre-commit hooks
1 parent 1a30044 commit ab54813

17 files changed

Lines changed: 32 additions & 36 deletions

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,7 @@ about: Create a report to help us improve
44
title: ''
55
labels: bug
66
assignees: ''
7-
87
---
9-
108
**Describe the bug**
119
A clear and concise description of what the bug is.
1210

.github/ISSUE_TEMPLATE/feature_request.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,7 @@ about: Suggest an idea for this project
44
title: ''
55
labels: ''
66
assignees: ''
7-
87
---
9-
108
**Is your feature request related to a problem? Please describe.**
119
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
1210

.pre-commit-config.yaml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
repos:
22
- repo: https://github.com/pre-commit/pre-commit-hooks
3-
rev: v4.4.0
3+
rev: v6.0.0
44
hooks:
55
- id: trailing-whitespace
66
- id: end-of-file-fixer
77
- id: check-yaml
88
- id: check-added-large-files
99

1010
- repo: https://github.com/psf/black
11-
rev: 23.3.0
11+
rev: 25.1.0
1212
hooks:
1313
- id: black
1414

1515
- repo: https://github.com/pre-commit/mirrors-mypy
16-
rev: v1.5.1
16+
rev: v1.17.1
1717
hooks:
1818
- id: mypy
1919
additional_dependencies:
@@ -24,29 +24,29 @@ repos:
2424

2525

2626
- repo: https://github.com/charliermarsh/ruff-pre-commit
27-
rev: "v0.0.289"
27+
rev: "v0.12.8"
2828
hooks:
2929
- id: ruff
3030

3131
- repo: https://github.com/python-poetry/poetry
32-
rev: "1.6.1" # Keep this version synced with POETRY_VERSION in check_code.yml
32+
rev: "2.1.3" # Keep this version synced with POETRY_VERSION in check_code.yml
3333
hooks:
3434
- id: poetry-check
3535

3636
- repo: https://github.com/Lucas-C/pre-commit-hooks-nodejs
37-
rev: v1.1.0
37+
rev: v1.1.2
3838
hooks:
3939
- id: markdown-toc
4040

4141
- repo: https://github.com/compilerla/conventional-pre-commit
42-
rev: "v2.3.0"
42+
rev: "v4.2.0"
4343
hooks:
4444
- id: conventional-pre-commit
4545
stages: [commit-msg]
4646
args: []
4747

4848
- repo: https://github.com/PyCQA/bandit
49-
rev: '1.7.4'
49+
rev: '1.8.6'
5050
hooks:
5151
- id: bandit
5252
args: ["-c", "pyproject.toml"]

pyartifactory/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"""
22
Import all object definitions here.
33
"""
4+
45
from __future__ import annotations
56

67
import contextlib

pyartifactory/exception.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"""
22
Definition of all exceptions.
33
"""
4+
45
from __future__ import annotations
56

67

pyartifactory/models/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"""
22
Import all models here.
33
"""
4+
45
from __future__ import annotations
56

67
from typing import Union

pyartifactory/models/artifact.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"""
22
Definition of all artifact models.
33
"""
4+
45
from __future__ import annotations
56

67
import hashlib

pyartifactory/models/auth.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"""
22
Definition of all auth models.
33
"""
4+
45
from __future__ import annotations
56

67
from typing import Optional, Tuple, Union

pyartifactory/models/build.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"""
22
Definition of all build models.
33
"""
4+
45
from __future__ import annotations
56

67
from typing import Dict, List, Optional

pyartifactory/models/group.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"""
22
Definition of all group models.
33
"""
4+
45
from __future__ import annotations
56

67
from typing import List, Optional

0 commit comments

Comments
 (0)