Skip to content

Commit

Permalink
Change flake8 → Ruff
Browse files Browse the repository at this point in the history
  • Loading branch information
hattya committed Oct 20, 2024
1 parent dfa3faa commit 9f3b6b4
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 9 deletions.
19 changes: 19 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -70,3 +70,22 @@ disable_error_code = [
"override",
]
strict = true

[tool.ruff]
line-length = 160

[tool.ruff.lint]
select = [
"E",
"W",
"F",
"UP",
"B0",
"C4",
]
ignore = [
"E74",
]

[tool.ruff.lint.pyupgrade]
keep-runtime-typing = true
6 changes: 0 additions & 6 deletions setup.cfg

This file was deleted.

5 changes: 2 additions & 3 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@ isolated_build = True
deps =
coverage[toml] >= 5.0
setuptools >= 61.0
flake8 >= 3.6
flake8-bugbear
ruff
mypy
scmver[toml] >= 1.7
passenv = *FLAGS, INCLUDE, LC_*, LIB, MSSdk, Program*
Expand All @@ -19,6 +18,6 @@ commands =
coverage run --source=zopfli -m unittest discover -s tests {posargs}
coverage report
# lint
flake8
ruff check
# type
mypy zopfli

0 comments on commit 9f3b6b4

Please sign in to comment.