[V2] Upgrade ruff and mypy version, format files (#4474)

This commit is contained in:
Jahongir Qurbonov
2024-10-06 23:05:11 +05:00
committed by GitHub
parent 918f719ab2
commit 86d41e1f06
67 changed files with 177 additions and 118 deletions

View File

@@ -1,6 +1,7 @@
"""
Check formatting, type-check and run offline tests.
"""
import subprocess
import sys
import tempfile
@@ -15,9 +16,7 @@ def run(*args: str) -> int:
def main() -> None:
with tempfile.TemporaryDirectory() as tmp_dir:
exit(
run("isort", ".", "-c", "--profile", "black", "--gitignore")
or run("black", ".", "--check", "--extend-exclude", BLACK_IGNORE)
or run("mypy", "--strict", ".")
run("mypy", "--strict", ".")
or run("ruff", "check", ".")
or run("sphinx", "-M", "dummy", "client/doc", tmp_dir, "-n", "-W")
or run("pytest", ".", "-m", "not net")