Skip to content

Commit

Permalink
chore(git): add pre-commit config
Browse files Browse the repository at this point in the history
  • Loading branch information
pivoshenko committed Sep 16, 2022
1 parent 4a595d6 commit 8234781
Showing 1 changed file with 62 additions and 0 deletions.
62 changes: 62 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
default_language_version:
python: python3.9

repos:
- repo: /~https://github.com/pre-commit/mirrors-prettier
rev: v2.7.1
hooks:
- id: prettier

- repo: /~https://github.com/pycqa/isort
rev: 5.10.1
hooks:
- id: isort

- repo: /~https://github.com/psf/black
rev: 22.6.0
hooks:
- id: black

- repo: /~https://github.com/pre-commit/pre-commit-hooks
rev: v4.3.0
hooks:
- id: trailing-whitespace
- id: check-merge-conflict
- id: check-case-conflict
- id: check-added-large-files
- id: check-ast
- id: check-json
- id: check-yaml
- id: check-toml
- id: debug-statements
- id: check-docstring-first
- id: detect-private-key

- repo: /~https://github.com/pre-commit/pygrep-hooks
rev: v1.9.0
hooks:
- id: python-use-type-annotations
- id: python-check-mock-methods
- id: python-check-blanket-noqa
- id: python-check-blanket-type-ignore

- repo: /~https://github.com/pre-commit/pre-commit
rev: v2.20.0
hooks:
- id: validate_manifest

- repo: /~https://github.com/pycqa/flake8
rev: 3.9.2
hooks:
- id: flake8
entry: pflake8
additional_dependencies:
- pyproject-flake8
- wemake-python-styleguide
- flake8-pytest-style

- repo: /~https://github.com/pre-commit/mirrors-mypy
rev: v0.971
hooks:
- id: mypy
exclude: ^tests/

0 comments on commit 8234781

Please sign in to comment.