Skip to content

Commit 078cba1

Browse files
Update pre-commit config
1 parent 237505c commit 078cba1

File tree

4 files changed

+113
-29
lines changed

4 files changed

+113
-29
lines changed

.isort.cfg

Lines changed: 0 additions & 6 deletions
This file was deleted.

.pre-commit-config.yaml

Lines changed: 6 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -2,30 +2,15 @@
22

33
repos:
44
- repo: https://github.com/pre-commit/pre-commit-hooks
5-
rev: v4.6.0
5+
rev: v5.0.0
66
hooks:
77
- id: check-yaml
88
- id: end-of-file-fixer
99
- id: trailing-whitespace
1010

11-
- repo: https://github.com/PyCQA/flake8
12-
rev: 7.1.1
11+
- repo: https://github.com/astral-sh/ruff-pre-commit
12+
rev: v0.12.2
1313
hooks:
14-
- id: flake8
15-
16-
- repo: https://github.com/pycqa/isort
17-
rev: 5.13.2
18-
hooks:
19-
- id: isort
20-
21-
# Allow tox to run isort as a linter.
22-
- id: isort
23-
alias: isort-check
24-
args: [--check]
25-
stages: [manual]
26-
27-
- repo: https://github.com/asottile/pyupgrade
28-
rev: v3.17.0
29-
hooks:
30-
- id: pyupgrade
31-
args: [--py39-plus]
14+
- id: ruff
15+
args: [--fix]
16+
- id: ruff-format

pyproject.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,9 @@ test_all = [
9494
"cryptography>=0.6",
9595
]
9696
dev = [
97-
"ruff>=0.1.0",
97+
"ruff>=0.12.0",
9898
"tox>=4.0.0",
99+
"pre-commit>=4.2.0",
99100
]
100101

101102
[tool.ruff]

0 commit comments

Comments
 (0)