Skip to content

Commit

Permalink
tox: use ruff as linter
Browse files Browse the repository at this point in the history
  • Loading branch information
bretello committed Oct 29, 2023
1 parent e3054f1 commit ab0468a
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 3 deletions.
16 changes: 16 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
[tool.ruff.lint]
select = [
# pycodestyle
"E",
# Pyflakes
"F",
# pyupgrade
"UP",
# flake8-bugbear
"B",
# flake8-simplify
"SIM",
# isort
"I",
]
ignore = ["F401"]
5 changes: 2 additions & 3 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,8 @@ setenv =

[testenv:qa]
deps =
flake8
mccabe
commands = flake8 --max-complexity=10 setup.py pyrepl tests pythoni pythoni1
ruff
commands = ruff check setup.py pyrepl tests pythoni pythoni1

[pytest]
testpaths = tests
Expand Down

0 comments on commit ab0468a

Please sign in to comment.