Created
May 28, 2021 13:03
-
-
Save kodekracker/166b0376afd43c02fd63f67caa030ca4 to your computer and use it in GitHub Desktop.
Pre-commit config for python project
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# https://towardsdatascience.com/pre-commit-hooks-you-must-know-ff247f5feb7e | |
# Apply to all files without commiting: | |
# pre-commit run --all-files | |
# Update this file: | |
# pre-commit autoupdate | |
repos: | |
- repo: https://github.com/pre-commit/pre-commit-hooks | |
rev: v3.2.0 | |
hooks: | |
- id: check-ast | |
- id: check-byte-order-marker | |
- id: check-case-conflict | |
- id: check-docstring-first | |
- id: check-executables-have-shebangs | |
- id: check-json | |
- id: check-yaml | |
- id: debug-statements | |
- id: detect-aws-credentials | |
- id: detect-private-key | |
- id: end-of-file-fixer | |
- id: trailing-whitespace | |
- id: mixed-line-ending | |
- repo: https://github.com/pre-commit/mirrors-mypy | |
rev: v0.782 | |
hooks: | |
- id: mypy | |
args: [--ignore-missing-imports] | |
- repo: https://github.com/asottile/seed-isort-config | |
rev: v2.2.0 | |
hooks: | |
- id: seed-isort-config | |
- repo: https://github.com/pre-commit/mirrors-isort | |
rev: v5.4.2 | |
hooks: | |
- id: isort | |
- repo: https://github.com/psf/black | |
rev: 20.8b1 | |
hooks: | |
- id: black | |
- repo: https://github.com/asottile/pyupgrade | |
rev: v2.7.2 | |
hooks: | |
- id: pyupgrade | |
args: [--py36-plus] | |
- repo: https://github.com/asottile/blacken-docs | |
rev: v1.8.0 | |
hooks: | |
- id: blacken-docs | |
additional_dependencies: [black==20.8b1] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment