Skip to content

Commit

Permalink
detect common mock errors (#2723)
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Elion authored Oct 11, 2019
1 parent e394da3 commit 64a0df7
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ repos:
.*_pb2.py|
.*_pb2_grpc.py
)$
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v0.720
hooks:
Expand All @@ -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:
Expand All @@ -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:
Expand Down

0 comments on commit 64a0df7

Please sign in to comment.