test_runner: revive flake8

This commit is contained in:
Alexander Bayandin
2022-08-18 13:42:06 +01:00
committed by Alexander Bayandin
parent 4c2bb43775
commit ae3227509c
6 changed files with 45 additions and 22 deletions

View File

@@ -50,6 +50,10 @@ def isort(fix_inplace: bool) -> str:
return cmd
def flake8() -> str:
return "poetry run flake8"
def mypy() -> str:
return "poetry run mypy"
@@ -122,6 +126,13 @@ if __name__ == "__main__":
changed_files=files,
no_color=args.no_color,
)
check(
name="flake8",
suffix=".py",
cmd=flake8(),
changed_files=files,
no_color=args.no_color,
)
check(
name="mypy",
suffix=".py",