diff options
author | David Robertson <davidr@element.io> | 2022-03-03 18:31:24 +0000 |
---|---|---|
committer | David Robertson <davidr@element.io> | 2022-03-30 17:01:54 +0100 |
commit | e53e99edba7ccda8319ebd4fe832637cbe9261cc (patch) | |
tree | d320dc013ad4813c113b9f7b19fd29144cf12482 /tox.ini | |
parent | BUILDS: `poetry` in deb virtualenvs (diff) | |
download | synapse-e53e99edba7ccda8319ebd4fe832637cbe9261cc.tar.xz |
CI: Use common linting workflow
After #12107 it's much easier for black, isort and flake8 to find the scripts we want them to lint.
Diffstat (limited to '')
-rw-r--r-- | tox.ini | 30 |
1 files changed, 1 insertions, 29 deletions
diff --git a/tox.ini b/tox.ini index 3ffd2c3e97..44272ce348 100644 --- a/tox.ini +++ b/tox.ini @@ -1,5 +1,5 @@ [tox] -envlist = packaging, py37, py38, py39, py310, check_codestyle, check_isort +envlist = packaging, py37, py38, py39, py310 # we require tox>=2.3.2 for the fix to https://github.com/tox-dev/tox/issues/208 minversion = 2.3.2 @@ -32,19 +32,6 @@ deps = # install the "enum34" dependency of cryptography. pip>=10 -# directories/files we run the linters on. -# if you update this list, make sure to do the same in scripts-dev/lint.sh -lint_targets = - setup.py - synapse - tests - # annoyingly, black doesn't find these so we have to list them - scripts-dev - stubs - contrib - synmark - .ci - docker # default settings for all tox environments [testenv] @@ -146,18 +133,3 @@ deps = commands = check-manifest -[testenv:check_codestyle] -extras = lint -commands = - python -m black --check --diff {[base]lint_targets} - flake8 {[base]lint_targets} {env:PEP8SUFFIX:} - -[testenv:check_isort] -extras = lint -commands = isort -c --df {[base]lint_targets} - -[testenv:mypy] -deps = - {[base]deps} -extras = all,mypy -commands = mypy |