diff options
author | kleph <kleph+gh@kleph.info> | 2020-10-28 13:49:08 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-28 08:49:08 -0400 |
commit | 29ce6d43b533634a8b743e16e99ef3d025802e96 (patch) | |
tree | c1da50aa1758b47bdabb32e2c2a9a8982d219bd4 | |
parent | Don't pull event from DB when handling replication traffic. (#8669) (diff) | |
download | synapse-29ce6d43b533634a8b743e16e99ef3d025802e96.tar.xz |
Run mypy as part of the lint.sh script. (#8633)
-rw-r--r-- | CONTRIBUTING.md | 4 | ||||
-rw-r--r-- | changelog.d/8633.misc | 1 | ||||
-rwxr-xr-x | scripts-dev/lint.sh | 1 |
3 files changed, 4 insertions, 2 deletions
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index c17e3b2399..f7bea79b0d 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -46,7 +46,7 @@ locally. You'll need python 3.6 or later, and to install a number of tools: ``` # Install the dependencies -pip install -e ".[lint]" +pip install -e ".[lint,mypy]" # Run the linter script ./scripts-dev/lint.sh @@ -63,7 +63,7 @@ run-time: ./scripts-dev/lint.sh path/to/file1.py path/to/file2.py path/to/folder ``` -You can also provided the `-d` option, which will lint the files that have been +You can also provide the `-d` option, which will lint the files that have been changed since the last git commit. This will often be significantly faster than linting the whole codebase. diff --git a/changelog.d/8633.misc b/changelog.d/8633.misc new file mode 100644 index 0000000000..8e1d006b36 --- /dev/null +++ b/changelog.d/8633.misc @@ -0,0 +1 @@ +Run `mypy` as part of the lint.sh script. diff --git a/scripts-dev/lint.sh b/scripts-dev/lint.sh index f2b65a2105..f141805519 100755 --- a/scripts-dev/lint.sh +++ b/scripts-dev/lint.sh @@ -94,3 +94,4 @@ isort "${files[@]}" python3 -m black "${files[@]}" ./scripts-dev/config-lint.sh flake8 "${files[@]}" +mypy |