Skip to content

Instantly share code, notes, and snippets.

@iKlotho
Created March 6, 2023 15:17
Show Gist options
  • Save iKlotho/e396dbfd37604be98fb3c8bd485d8943 to your computer and use it in GitHub Desktop.
Save iKlotho/e396dbfd37604be98fb3c8bd485d8943 to your computer and use it in GitHub Desktop.
pre-commit python
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.3.0
hooks:
- id: check-ast
- id: check-builtin-literals
- id: check-docstring-first
- id: check-merge-conflict
- id: check-yaml
- id: check-toml
- id: debug-statements
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: https://github.com/pycqa/isort
rev: 5.12.0
hooks:
- id: isort
name: isort (python)
- repo: https://github.com/asottile/pyupgrade
rev: v3.3.1
hooks:
- id: pyupgrade
args: ["--exit-zero-even-if-changed", "--py310-plus"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment