mirror of
https://github.com/muziing/Py2exe-GUI.git
synced 2025-01-27 17:02:55 +08:00
8508aaa630
将 pre-commit 加入工作流
28 lines
545 B
YAML
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
|