Created
May 2, 2022 15:08
-
-
Save vergeev/d16eee2c7c5e5210d3f579fccb6a438c to your computer and use it in GitHub Desktop.
pre-commit config that I like
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
repos: | |
- repo: https://github.com/psf/black | |
rev: 21.12b0 | |
hooks: | |
- id: black | |
language_version: python3.10 | |
- repo: https://github.com/pre-commit/mirrors-mypy | |
rev: v0.920 | |
hooks: | |
- id: mypy | |
- repo: https://github.com/hadialqattan/pycln | |
rev: v1.1.0 | |
hooks: | |
- id: pycln | |
args: [ --all ] | |
- repo: https://github.com/pycqa/isort | |
rev: 5.10.1 | |
hooks: | |
- id: isort | |
files: "\\.(py)$" | |
args: [ --profile=black ] | |
- repo: https://github.com/pre-commit/pre-commit-hooks | |
rev: v3.4.0 | |
hooks: | |
- id: trailing-whitespace | |
- id: end-of-file-fixer |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment