diff --git a/pyproject.toml b/pyproject.toml index 3bd98a7..edae853 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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 diff --git a/setup.cfg b/setup.cfg deleted file mode 100644 index c81ebeb..0000000 --- a/setup.cfg +++ /dev/null @@ -1,6 +0,0 @@ -[sdist] -group = users - -[flake8] -extend-ignore = E129, E741 -max-line-length = 160 diff --git a/tox.ini b/tox.ini index b58019f..366ee9d 100644 --- a/tox.ini +++ b/tox.ini @@ -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* @@ -19,6 +18,6 @@ commands = coverage run --source=zopfli -m unittest discover -s tests {posargs} coverage report # lint - flake8 + ruff check # type mypy zopfli