nix-background-upgrade/.pre-commit-config.yaml
Evie Litherland-Smith c477ec58a9 Rename main.py -> cli.py and add poetry pre-commit hooks
Add apps section to flake.nix output to explicitly define CLI output
path
2024-05-26 10:52:54 +01:00

30 lines
817 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: v4.6.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-added-large-files
- repo: https://github.com/python-poetry/poetry
rev: "1.8.0" # add version here
hooks:
- id: poetry-check
- id: poetry-lock
- repo: https://github.com/psf/black-pre-commit-mirror
rev: 24.4.2
hooks:
- id: black
language_version: python3.11
- repo: https://github.com/pycqa/isort
rev: 5.13.2
hooks:
- id: isort
name: isort (python)
- repo: https://github.com/pre-commit/mirrors-mypy
rev: "v1.10.0"
hooks:
- id: mypy