Skip to content

Instantly share code, notes, and snippets.

@sanjmen
Created October 2, 2024 18:13
Show Gist options
  • Save sanjmen/5228bf3cceb97cdc84bd642dab332663 to your computer and use it in GitHub Desktop.
Save sanjmen/5228bf3cceb97cdc84bd642dab332663 to your computer and use it in GitHub Desktop.
exclude: "^docs/|/migrations/"
default_stages: [commit]
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- repo: https://github.com/psf/black
rev: 23.9.1
hooks:
- id: black
- repo: https://github.com/PyCQA/isort
rev: 5.12.0
hooks:
- id: isort
- repo: https://github.com/PyCQA/flake8
rev: 6.1.0
hooks:
- id: flake8
args: ["--config=setup.cfg"]
additional_dependencies: [flake8-isort]
# sets up .pre-commit-ci.yaml to ensure pre-commit dependencies stay up to date
ci:
autoupdate_schedule: weekly
skip: []
submodules: false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment