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 96ca5a1 commit 129036a
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 7 deletions.
19 changes: 19 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
[tool.ruff]
line-length = 88

[tool.ruff.lint]
select = [
# pycodestyle
"E",
# Pyflakes
"F",
# pyupgrade
"UP",
# flake8-bugbear
"B",
# flake8-simplify
"SIM",
# isort
"I",
]
ignore = ["F401", "E722"]
5 changes: 0 additions & 5 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
[bdist_wheel]
universal = 1

[flake8]
max-line-length = 88
# E722: base excepts
extend-ignore = E722

[tool:pytest]
testpaths = testing
addopts = -ra --tb short -p pytester
4 changes: 2 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,6 @@ commands = pytest {posargs}

[testenv:checkqa]
deps =
flake8
ruff
commands =
flake8 src testing
ruff src testing

0 comments on commit 129036a

Please sign in to comment.