Py2exe-GUI/.pre-commit-config.yaml
muzing 8508aaa630 Add pre-commit config file
将 pre-commit 加入工作流
2023-11-11 20:14:35 +08:00

28 lines
545 B
YAML

fail_fast: false
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: check-toml
- id: check-yaml
- id: trailing-whitespace
- id: end-of-file-fixer
- repo: https://github.com/psf/black
rev: 23.10.1
hooks:
- id: black
args: [--config, "./pyproject.toml"]
- repo: https://github.com/pycqa/isort
rev: 5.12.0
hooks:
- id: isort
args: [--settings-path, "./pyproject.toml"]
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.1.4
hooks:
- id: ruff