summary refs log tree commit diff
path: root/scripts-dev/lint.sh
diff options
context:
space:
mode:
authorDavid Robertson <davidr@element.io>2022-04-14 14:09:00 +0100
committerDavid Robertson <davidr@element.io>2022-04-14 14:09:00 +0100
commitcbdbcb0c37eca6852e5365cd3aebf32719c2c723 (patch)
tree099f55f21f32114864449d5573aca28ad27d905b /scripts-dev/lint.sh
parentMerge remote-tracking branch 'origin/develop' into dmr/pyproject-poetry (diff)
parentReplace `federation_reader` with `generic_worker` in docs (#12457) (diff)
downloadsynapse-github/dmr/pyproject-poetry.tar.xz
Merge remote-tracking branch 'origin/develop' into dmr/pyproject-poetry github/dmr/pyproject-poetry dmr/pyproject-poetry
Diffstat (limited to 'scripts-dev/lint.sh')
-rwxr-xr-xscripts-dev/lint.sh16
1 files changed, 14 insertions, 2 deletions
diff --git a/scripts-dev/lint.sh b/scripts-dev/lint.sh

index 4698d2d5be..91a704d982 100755 --- a/scripts-dev/lint.sh +++ b/scripts-dev/lint.sh
@@ -79,8 +79,20 @@ else # If we were not asked to lint changed files, and no paths were found as a result, # then lint everything! if [[ -z ${files+x} ]]; then - # Lint all source code files and directories - files=( "." ) + # CI runs each linter on the entire checkout, e.g. `black .`. So don't + # rely on this list to *find* lint targets if that misses a file; instead; + # use it to exclude files from linters when this can't be done by config. + # + # To check which files the linters examine, use: + # black --verbose . 2>&1 | \grep -v ignored + # isort --show-files . + # flake8 --verbose . # This isn't a great option + # mypy has explicit config in mypy.ini; there is also mypy --verbose + files=( + "synapse" "docker" "tests" + "scripts-dev" + "contrib" "setup.py" "synmark" "stubs" ".ci" + ) fi fi