This commit is contained in:
+33
-16
@@ -1,22 +1,39 @@
|
||||
repos:
|
||||
- repo: https://github.com/psf/black
|
||||
rev: 21.12b0
|
||||
hooks:
|
||||
- id: black
|
||||
args: [--line-length=80, --target-version=py38]
|
||||
- repo: https://gitlab.com/pycqa/flake8
|
||||
rev: 3.9.2
|
||||
hooks:
|
||||
- id: flake8
|
||||
- repo: https://github.com/pre-commit/pre-commit-hooks
|
||||
rev: v4.2.0
|
||||
- repo: local
|
||||
hooks:
|
||||
- id: ruff-check
|
||||
name: ruff check
|
||||
entry: uv run ruff check --fix
|
||||
language: system
|
||||
types_or: [python, pyi]
|
||||
- id: ruff-format
|
||||
name: ruff format
|
||||
entry: uv run ruff format
|
||||
language: system
|
||||
types_or: [python, pyi]
|
||||
- id: export-requirements
|
||||
name: export requirements.txt
|
||||
entry: uv export --format requirements-txt --no-dev --no-hashes --no-header --no-annotate --frozen --output-file requirements.txt
|
||||
language: system
|
||||
pass_filenames: false
|
||||
files: ^(pyproject\.toml|uv\.lock)$
|
||||
- id: check-yaml
|
||||
name: check yaml
|
||||
entry: uv run check-yaml
|
||||
language: system
|
||||
types: [yaml]
|
||||
- id: end-of-file-fixer
|
||||
name: end of file fixer
|
||||
entry: uv run end-of-file-fixer
|
||||
language: system
|
||||
types: [text]
|
||||
- id: trailing-whitespace
|
||||
name: trailing whitespace
|
||||
entry: uv run trailing-whitespace-fixer
|
||||
language: system
|
||||
types: [text]
|
||||
- id: check-json
|
||||
- repo: https://github.com/pycqa/isort
|
||||
rev: 5.10.1
|
||||
hooks:
|
||||
- id: isort
|
||||
args: ["--filter-files" ]
|
||||
name: check json
|
||||
entry: uv run check-json
|
||||
language: system
|
||||
types: [json]
|
||||
|
||||
Reference in New Issue
Block a user