Skip to content

Commit d8df5f6

Browse files
committed
tox: use ruff as linter
1 parent aca9b53 commit d8df5f6

File tree

2 files changed

+18
-3
lines changed

2 files changed

+18
-3
lines changed

pyproject.toml

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
[tool.ruff.lint]
2+
select = [
3+
# pycodestyle
4+
"E",
5+
# Pyflakes
6+
"F",
7+
# pyupgrade
8+
"UP",
9+
# flake8-bugbear
10+
"B",
11+
# flake8-simplify
12+
"SIM",
13+
# isort
14+
"I",
15+
]
16+
ignore = ["F401"]

tox.ini

+2-3
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,8 @@ setenv =
1919

2020
[testenv:qa]
2121
deps =
22-
flake8
23-
mccabe
24-
commands = flake8 --max-complexity=10 setup.py pyrepl tests pythoni pythoni1
22+
ruff
23+
commands = ruff check setup.py pyrepl tests pythoni pythoni1
2524

2625
[pytest]
2726
testpaths = tests

0 commit comments

Comments
 (0)