Skip to content

Commit

Permalink
Update to match template repo
Browse files Browse the repository at this point in the history
  • Loading branch information
jordanpadams committed Jun 27, 2022
1 parent 162db8f commit 612f7d4
Showing 1 changed file with 17 additions and 21 deletions.
38 changes: 17 additions & 21 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@ repos:
rev: v4.0.1
hooks:
- id: trailing-whitespace
exclude: REQUIREMENTS\.md$
- id: end-of-file-fixer
exclude: REQUIREMENTS\.md$
- id: check-executables-have-shebangs
- id: check-merge-conflict
- id: debug-statements
Expand All @@ -16,36 +18,30 @@ repos:
- id: reorder-python-imports
files: ^src/|tests/

- repo: https://github.com/pre-commit/mirrors-mypy.git
rev: v0.910
- repo: local
hooks:
- id: mypy
files: ^src/|tests/
# 😔 These `additional_dependencies` mirror those in the `dev` extra of `setup.cfg` and are needed
# to run `mypy` under `tox`. This violates "DRY" but we don't have a better way of doing this—yet.
additional_dependencies: [
lxml-stubs,
pandas-stubs,
types-flask,
types-jsonschema,
types-pkg_resources,
types-python-dateutil,
types-requests,
types-six,
types-waitress
]
name: mypy
entry: mypy src
language: system
pass_filenames: false

- repo: https://github.com/python/black
rev: 22.3.0
- repo: local
hooks:
- id: black
name: black
entry: black
files: ^src/|tests/
language: system
types: [python]

- repo: https://gitlab.com/pycqa/flake8
rev: 3.9.2
- repo: local
hooks:
- id: flake8
files: ^src/|tests/
name: flake8
entry: flake8 src
language: system
pass_filenames: false

- repo: local
hooks:
Expand Down

0 comments on commit 612f7d4

Please sign in to comment.