2024-12-13 02:23:38 +08:00
|
|
|
fail_fast: true
|
|
|
|
repos:
|
2024-12-14 01:15:29 +08:00
|
|
|
- repo: local
|
|
|
|
hooks:
|
|
|
|
- id: check-filenames
|
|
|
|
name: Check Python Filenames
|
|
|
|
entry: python ./.pre-commit/check_filename.py
|
|
|
|
language: python
|
|
|
|
files: \.py$
|
|
|
|
|
2024-12-13 04:55:06 +08:00
|
|
|
- repo: https://github.com/psf/black
|
|
|
|
rev: 24.4.2
|
|
|
|
hooks:
|
|
|
|
- id: black
|
|
|
|
args: [--config=./pyproject.toml]
|
2024-12-13 02:23:38 +08:00
|
|
|
|
2024-12-13 19:05:17 +08:00
|
|
|
- repo: https://github.com/timothycrosley/isort
|
|
|
|
rev: 5.13.2
|
|
|
|
hooks:
|
|
|
|
- id: isort
|
|
|
|
args: ["--profile", "black"]
|
|
|
|
|
2024-12-13 02:40:55 +08:00
|
|
|
- repo: https://github.com/pre-commit/mirrors-mypy
|
|
|
|
rev: v1.13.0
|
|
|
|
hooks:
|
|
|
|
- id: mypy
|
2024-12-13 02:23:38 +08:00
|
|
|
|
2024-12-14 05:27:22 +08:00
|
|
|
# - repo: https://github.com/pre-commit/pre-commit-hooks
|
|
|
|
# rev: v4.0.1
|
|
|
|
# hooks:
|
|
|
|
# - id: trailing-whitespace
|
|
|
|
# - id: end-of-file-fixer
|
|
|
|
# - id: check-yaml
|
|
|
|
# - id: check-added-large-files
|