Skip to content

Instantly share code, notes, and snippets.

@seahrh
Created February 10, 2022 03:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save seahrh/77fbe1e2633a2e6ba30ba9bfaa4261b8 to your computer and use it in GitHub Desktop.
Save seahrh/77fbe1e2633a2e6ba30ba9bfaa4261b8 to your computer and use it in GitHub Desktop.
Example .pre-commit-config.yaml
exclude: "docs|.git"
default_stages: [commit]
fail_fast: true
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.3.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
exclude: deploy/templates/*
- repo: http://github.com/PyCQA/isort
rev: 5.6.4
hooks:
- id: isort
- repo: https://github.com/psf/black
rev: 20.8b1
hooks:
- id: black
- repo: https://gitlab.com/pycqa/flake8
rev: 3.8.4
hooks:
- id: flake8
args: ["--config=setup.cfg"]
additional_dependencies: [flake8-isort]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment