detect common mock errors (#2723)
This commit is contained in:
Родитель
e394da38fe
Коммит
64a0df77af
|
@ -8,6 +8,7 @@ repos:
|
|||
.*_pb2.py|
|
||||
.*_pb2_grpc.py
|
||||
)$
|
||||
|
||||
- repo: https://github.com/pre-commit/mirrors-mypy
|
||||
rev: v0.720
|
||||
hooks:
|
||||
|
@ -25,6 +26,7 @@ repos:
|
|||
name: mypy-gym-unity
|
||||
files: "gym-unity/.*"
|
||||
args: [--ignore-missing-imports, --disallow-incomplete-defs]
|
||||
|
||||
- repo: https://github.com/pre-commit/pre-commit-hooks
|
||||
rev: v2.2.3
|
||||
hooks:
|
||||
|
@ -43,6 +45,12 @@ repos:
|
|||
.*_pb2_grpc.py
|
||||
)$
|
||||
additional_dependencies: [flake8-comprehensions]
|
||||
|
||||
- repo: https://github.com/pre-commit/pygrep-hooks
|
||||
rev: v1.4.1 # Use the ref you want to point at
|
||||
hooks:
|
||||
- id: python-check-mock-methods
|
||||
|
||||
# "Local" hooks, see https://pre-commit.com/#repository-local-hooks
|
||||
- repo: local
|
||||
hooks:
|
||||
|
|
Загрузка…
Ссылка в новой задаче