Skip to content

Instantly share code, notes, and snippets.

@Vadbeg
Created October 20, 2022 13:30
Show Gist options
  • Save Vadbeg/497fc7df9c0e734f96072eccf5844f46 to your computer and use it in GitHub Desktop.
Save Vadbeg/497fc7df9c0e734f96072eccf5844f46 to your computer and use it in GitHub Desktop.
exclude: _pb2\.py$
repos:
- repo: https://github.com/psf/black
rev: 22.3.0
hooks:
- id: black
args: [ --skip-string-normalization ]
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.0.1
hooks:
- id: check-docstring-first
- id: check-json
- id: check-merge-conflict
- id: check-yaml
- id: debug-statements
- id: end-of-file-fixer
- id: trailing-whitespace
- id: requirements-txt-fixer
- repo: https://github.com/pre-commit/pygrep-hooks
rev: v1.9.0
hooks:
- id: python-check-mock-methods
- id: python-use-type-annotations
- repo: https://github.com/pre-commit/mirrors-mypy
rev: 'v0.910'
hooks:
- id: mypy
args: [--ignore-missing-imports, --warn-no-return, --warn-redundant-casts, --disallow-incomplete-defs]
additional_dependencies: [types-all]
- repo: https://github.com/PyCQA/isort
rev: 5.9.3
hooks:
- id: isort
args: [ --profile, black, --filter-files ]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment