nixos/templates/python_package/pre-commit-config.yaml
2023-01-10 08:06:54 +00:00

28 lines
765 B
YAML

# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: stable
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-toml
- id: check-added-large-files
- repo: https://github.com/sqlalchemyorg/zimports/
rev: stable
hooks:
- id: zimports
name: "Reorganise Import Statements"
- repo: https://github.com/psf/black
rev: stable
hooks:
- id: black
name: "Reformat Code Using black"
- repo: https://gitlab.com/pycqa/flake8
rev: stable
hooks:
- id: flake8
name: "Check Code Style Using flake8"