29 lines
741 B
YAML
29 lines
741 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
|
|
- id: poetry-export
|
|
args:
|
|
[
|
|
"-f",
|
|
"requirements.txt",
|
|
"-o",
|
|
"requirements.txt",
|
|
"--without-hashes",
|
|
]
|
|
- repo: https://github.com/psf/black
|
|
rev: 24.4.2
|
|
hooks:
|
|
- id: black
|