Skip to content

Commit e0dde92

Browse files
committed
ruff-check release_management
1 parent 3ede647 commit e0dde92

3 files changed

Lines changed: 10 additions & 12 deletions

File tree

.pre-commit-config.yaml

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ default_stages: [pre-commit]
1212
repos:
1313
# General file checks and fixers
1414
- repo: https://github.com/pre-commit/pre-commit-hooks
15-
rev: v5.0.0
15+
rev: v6.0.0
1616
hooks:
1717
- id: end-of-file-fixer
1818
name: "Ensure files end with a single newline"
@@ -48,37 +48,34 @@ repos:
4848
name: "Check YAML"
4949

5050
- repo: https://github.com/psf/black-pre-commit-mirror
51-
rev: 24.10.0
51+
rev: 25.11.0
5252
hooks:
5353
- id: black
5454
name: "Format with Black"
5555
args:
56-
- '--target-version=py39'
5756
- '--target-version=py310'
5857
files: '^(peps/conf\.py|pep_sphinx_extensions/tests/.*)$'
5958

6059
- repo: https://github.com/astral-sh/ruff-pre-commit
61-
rev: v0.7.0
60+
rev: v0.14.4
6261
hooks:
63-
- id: ruff
62+
- id: ruff-check
6463
name: "Lint with Ruff"
6564
args:
6665
- '--exit-non-zero-on-fix'
67-
files: '^pep_sphinx_extensions/tests/'
66+
files: '^(pep_sphinx_extensions/tests/|release_management/)'
6867
- id: ruff-format
6968
name: "Format with Ruff"
70-
args:
71-
- '--check'
7269
files: '^release_management/'
7370

7471
- repo: https://github.com/tox-dev/tox-ini-fmt
75-
rev: 1.4.1
72+
rev: 1.7.0
7673
hooks:
7774
- id: tox-ini-fmt
7875
name: "Format tox.ini"
7976

8077
- repo: https://github.com/sphinx-contrib/sphinx-lint
81-
rev: v1.0.0
78+
rev: v1.0.1
8279
hooks:
8380
- id: sphinx-lint
8481
name: "Sphinx lint"
@@ -99,7 +96,7 @@ repos:
9996

10097
# Manual codespell check
10198
- repo: https://github.com/codespell-project/codespell
102-
rev: v2.3.0
99+
rev: v2.4.1
103100
hooks:
104101
- id: codespell
105102
name: "Check for common misspellings in text files"

.ruff.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
output-format = "full"
22
target-version = "py310"
3+
fix = true
34

45
[lint]
56
ignore = [

release_management/serialize.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import dataclasses
44
import json
55

6-
from release_management import ROOT_DIR, load_python_releases
6+
from release_management import load_python_releases
77

88
TYPE_CHECKING = False
99
if TYPE_CHECKING:

0 commit comments

Comments
 (0)