From e53e99edba7ccda8319ebd4fe832637cbe9261cc Mon Sep 17 00:00:00 2001 From: David Robertson Date: Thu, 3 Mar 2022 18:31:24 +0000 Subject: 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. --- tox.ini | 30 +----------------------------- 1 file changed, 1 insertion(+), 29 deletions(-) (limited to 'tox.ini') 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 -- cgit 1.5.1