Skip to content

Instantly share code, notes, and snippets.

@vergeev
Created May 2, 2022 15:08
Show Gist options
  • Save vergeev/d16eee2c7c5e5210d3f579fccb6a438c to your computer and use it in GitHub Desktop.
Save vergeev/d16eee2c7c5e5210d3f579fccb6a438c to your computer and use it in GitHub Desktop.
pre-commit config that I like
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