diff --git a/requirements.txt b/requirements.txt index 598b6a6..eee7113 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,4 +1,5 @@ pre-commit==3.3.3 +ruff==0.0.286 pytest==7.4.0 pytest-cov==4.1.0 pytest-mock==3.11.1 # https://github.com/pytest-dev/pytest-mock/ diff --git a/tox.ini b/tox.ini index 42be371..bed99cb 100644 --- a/tox.ini +++ b/tox.ini @@ -18,16 +18,10 @@ commands = deps = -r{toxinidir}/requirements.txt -[testenv:flake8] +[testenv:ruff] basepython=python +skip_install=true deps= - flake8 - flake8_docstrings + ruff commands= - flake8 src/pydiscourse --docstring-convention google --ignore D415 - -[flake8] -ignore = E126,E128 -max-line-length = 119 -exclude = .ropeproject -max-complexity = 10 + ruff .