Skip to content

Commit 63760c1

Browse files
committed
Use ruff
1 parent f6cb31f commit 63760c1

File tree

8 files changed

+81
-660
lines changed

8 files changed

+81
-660
lines changed

.pre-commit-config.yaml

Lines changed: 6 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,7 @@ repos:
77
hooks:
88
- id: check-added-large-files
99
args: [--maxkb=500]
10-
- id: check-executables-have-shebangs
1110
- id: check-merge-conflict
12-
- id: check-shebang-scripts-are-executable
1311
- id: check-symlinks
1412
- id: check-toml
1513
- id: check-yaml
@@ -40,32 +38,12 @@ repos:
4038
hooks:
4139
- id: fix-smartquotes
4240

43-
- repo: https://github.com/asottile/pyupgrade
44-
rev: v3.3.1
45-
hooks:
46-
- id: pyupgrade
47-
args: [--py311-plus]
48-
4941
- repo: https://github.com/psf/black
5042
rev: 23.1.0
5143
hooks:
5244
- id: black
5345
args: [--line-length=120]
5446

55-
- repo: https://github.com/PyCQA/flake8
56-
rev: 5.0.4 # Note we can't use 6 yet, because the dependencies don't support it
57-
hooks:
58-
- id: flake8
59-
additional_dependencies:
60-
[
61-
flake8-bandit,
62-
flake8-bugbear,
63-
flake8-debugger,
64-
flake8-eradicate,
65-
flake8-string-format,
66-
pep8-naming,
67-
]
68-
6947
- repo: https://github.com/PyCQA/isort
7048
rev: 5.12.0
7149
hooks:
@@ -76,3 +54,9 @@ repos:
7654
rev: v2.2.2
7755
hooks:
7856
- id: codespell
57+
58+
# Ruff replaces flake8 and pylint and more
59+
- repo: https://github.com/charliermarsh/ruff-pre-commit
60+
rev: v0.0.262
61+
hooks:
62+
- id: ruff

0 commit comments

Comments
 (0)