Skip to content

Commit 15075b7

Browse files
authored
Merge pull request #1260 from zacharyburnett/ruff
CI: use `ruff` for linting instead of `flake8`
2 parents 9c2f028 + 4bc01e8 commit 15075b7

File tree

3 files changed

+14
-14
lines changed

3 files changed

+14
-14
lines changed

.flake8

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

.pre-commit-config.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ repos:
1313
hooks:
1414
- id: isort
1515
name: isort (python)
16-
- repo: https://github.com/pycqa/flake8
17-
rev: 6.0.0
16+
- repo: https://github.com/charliermarsh/ruff-pre-commit
17+
rev: 'v0.0.257'
1818
hooks:
19-
- id: flake8
20-
exclude: ^(asv/extern|test/example_results/cheetah)
19+
- id: ruff
20+
args: ["--fix"]

pyproject.toml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ doc = [
6060
"sphinx_bootstrap_theme",
6161
]
6262
dev = [
63-
"flake8",
63+
"ruff",
6464
"isort >= 5.11.5",
6565
]
6666
hg = [
@@ -91,6 +91,15 @@ namespaces = false
9191
[tool.pytest.ini_options]
9292
addopts = "-p no:logging"
9393

94+
[tool.ruff]
95+
line-length = 99
96+
extend-ignore = [
97+
"E741", # Do not use variables named 'I', 'O', or 'l'
98+
]
99+
extend-exclude = [
100+
"test/example_results/cheetah",
101+
]
102+
94103
[tool.isort]
95104
line_length = 99
96105
only_sections = true

0 commit comments

Comments
 (0)