gsuid_core/.pre-commit-config.yaml
2023-02-16 00:11:46 +08:00

45 lines
1.0 KiB
YAML

ci:
autofix_commit_msg: ":rotating_light: auto fix by pre-commit-ci"
autofix_prs: true
autoupdate_branch: master
autoupdate_schedule: monthly
autoupdate_commit_msg: ":arrow_up: auto update by pre-commit-ci"
repos:
- repo: https://github.com/hadialqattan/pycln
rev: v2.1.3
hooks:
- id: pycln
- repo: https://github.com/pycqa/isort
rev: 5.12.0
hooks:
- id: isort
- repo: https://github.com/psf/black
rev: 23.1.0
hooks:
- id: black
- repo: https://github.com/pycqa/flake8
rev: 6.0.0
hooks:
- id: flake8
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: https://github.com/python-poetry/poetry
rev: 1.3.0
hooks:
- id: poetry-check
# - id: poetry-export
# args: ["-f", "requirements.txt", "--without-hashes", "-o", "requirements.txt"]
# verbose: true
- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: 'v0.0.245'
hooks:
- id: ruff