Skip to content

Commit

Permalink
chore: Update pre-commit hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
tomasfarias committed Jan 31, 2022
1 parent 08f0125 commit d188437
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion .pre-commit-config.yaml
@@ -1,8 +1,15 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.0.1
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer

- repo: https://github.com/psf/black
rev: 21.5b1
rev: 22.1.0
hooks:
- id: black
name: Python code formatting
types_or: [python, pyi]

- repo: https://gitlab.com/pycqa/flake8
Expand All @@ -11,17 +18,25 @@ repos:
- id: flake8
additional_dependencies: [flake8-docstrings]
args: ["--config", ".flake8"]
name: PEP8 enforcement
exclude: tests/

- repo: https://github.com/pre-commit/mirrors-mypy
rev: v0.902
hooks:
- id: mypy
name: Static type checking
additional_dependencies: ["types-freezegun==1.1.6"]

- repo: https://github.com/pycqa/isort
rev: 5.8.0
hooks:
- id: isort
name: isort (python)
name: Sort import statements
args: ["--profile", "black", "--filter-files"]

- repo: https://github.com/Yelp/detect-secrets
rev: v1.1.0
hooks:
- id: detect-secrets

0 comments on commit d188437

Please sign in to comment.