diff options
author | Rob Hudson <robhudson@mozilla.com> | 2023-05-17 09:19:14 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-17 23:19:14 +0700 |
commit | ea063edf0a790630d0800808fe6236b3e9ddcf22 (patch) | |
tree | ead2cb88df0fd1a7b4d03f578d9aa9692381e566 /tox.ini | |
parent | bbfeb8c8ed2913e980412ee7606c171fdf37e713 (diff) | |
download | rq-ea063edf0a790630d0800808fe6236b3e9ddcf22.tar.gz |
Update linting configuration (#1915)
* Update linting configuration
This removes flake8 in favor of ruff, which also provides isort support, and
updates all files to be black, isort, and ruff compliant. This also adds black
and ruff checks to the tox and Github linting workflow.
* Tweak the code coverage config and calls
Diffstat (limited to 'tox.ini')
-rw-r--r-- | tox.ini | 15 |
1 files changed, 8 insertions, 7 deletions
@@ -1,8 +1,8 @@ [tox] -envlist=py36,py37,py38,py39,py310,flake8 +envlist=lint,py36,py37,py38,py39,py310 [testenv] -commands=pytest --cov rq --durations=5 {posargs} +commands=pytest --cov rq --cov-config=.coveragerc --durations=5 {posargs} deps= pytest pytest-cov @@ -13,13 +13,14 @@ passenv= RUN_SSL_TESTS RUN_SLOW_TESTS_TOO -[testenv:flake8] -basepython = python3.6 +[testenv:lint] +basepython = python3.10 deps = - flake8 + black + ruff commands = - flake8 rq tests - + black --check rq tests + ruff check rq tests [testenv:py36] skipdist = True |