Skip to content

Commit 98bd17d

Browse files
committed
Add Ruff to pre-commit
1 parent 23b5f53 commit 98bd17d

File tree

2 files changed

+14
-7
lines changed

2 files changed

+14
-7
lines changed

.pre-commit-config.yaml

Lines changed: 14 additions & 6 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-case-conflict
@@ -12,29 +12,37 @@ repos:
1212
- id: forbid-submodules
1313
- id: trailing-whitespace
1414

15+
- repo: https://github.com/astral-sh/ruff-pre-commit
16+
rev: v0.12.8
17+
hooks:
18+
- id: ruff-check
19+
args: [--exit-non-zero-on-fix]
20+
- id: ruff-format
21+
args: [--check]
22+
1523
- repo: https://github.com/python-jsonschema/check-jsonschema
16-
rev: 0.29.2
24+
rev: 0.33.2
1725
hooks:
1826
- id: check-dependabot
1927
- id: check-github-workflows
2028

2129
- repo: https://github.com/rhysd/actionlint
22-
rev: v1.7.2
30+
rev: v1.7.7
2331
hooks:
2432
- id: actionlint
2533

2634
- repo: https://github.com/tox-dev/pyproject-fmt
27-
rev: 2.2.4
35+
rev: v2.6.0
2836
hooks:
2937
- id: pyproject-fmt
3038

3139
- repo: https://github.com/abravalheri/validate-pyproject
32-
rev: v0.20.2
40+
rev: v0.24.1
3341
hooks:
3442
- id: validate-pyproject
3543

3644
- repo: https://github.com/tox-dev/tox-ini-fmt
37-
rev: 1.4.1
45+
rev: 1.6.0
3846
hooks:
3947
- id: tox-ini-fmt
4048

src/blurb/_cli.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ def initialise_subcommands() -> None:
3636
'merge': merge,
3737
'populate': populate,
3838
'release': release,
39-
4039
# Make 'blurb --help/--version/-V' work.
4140
'--help': help,
4241
'--version': version,

0 commit comments

Comments
 (0)