diff options
author | Andrew Morgan <1342360+anoadragon453@users.noreply.github.com> | 2021-03-30 10:30:43 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-30 10:30:43 +0100 |
commit | f380bb77d19e7dd4ee6f61cd489e240ee4aa8fc2 (patch) | |
tree | 2b0a723134b71a1d28fcc822e6c9b4b18295d00d | |
parent | Add type hints to DictionaryCache and TTLCache. (#9442) (diff) | |
download | synapse-f380bb77d19e7dd4ee6f61cd489e240ee4aa8fc2.tar.xz |
Use 'dmypy run' in lint.sh instead of 'mypy' (#9701)
For it's obvious performance benefits. `dmypy` support landed in #9692.
Diffstat (limited to '')
-rw-r--r-- | changelog.d/9701.misc | 1 | ||||
-rwxr-xr-x | scripts-dev/lint.sh | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/changelog.d/9701.misc b/changelog.d/9701.misc new file mode 100644 index 0000000000..49fa7b3593 --- /dev/null +++ b/changelog.d/9701.misc @@ -0,0 +1 @@ +Use `dmypy run` in lint script for improved performance in type-checking while developing. \ No newline at end of file diff --git a/scripts-dev/lint.sh b/scripts-dev/lint.sh index 9761e97594..41415ee07b 100755 --- a/scripts-dev/lint.sh +++ b/scripts-dev/lint.sh @@ -95,4 +95,4 @@ isort "${files[@]}" python3 -m black "${files[@]}" ./scripts-dev/config-lint.sh flake8 "${files[@]}" -mypy +dmypy run |