forked from osprey-oss/cookiecutter-uv
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
27 lines (26 loc) · 1.06 KB
/
Copy path.pre-commit-config.yaml
File metadata and controls
27 lines (26 loc) · 1.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: "v5.0.0"
hooks:
- id: check-case-conflict
- id: check-merge-conflict
- id: end-of-file-fixer
- id: trailing-whitespace
- id: check-json
exclude: ^({{cookiecutter.project_name}}/\.devcontainer/devcontainer\.json|\.devcontainer/devcontainer\.json|{{cookiecutter.project_name}}/)$
- id: pretty-format-json
exclude: ^({{cookiecutter.project_name}}/\.devcontainer/devcontainer\.json|\.devcontainer/devcontainer\.json|{{cookiecutter.project_name}}/)$
args: [--autofix, --no-sort-keys]
- id: check-toml
exclude: ^{{cookiecutter.project_name}}/
- id: check-yaml
exclude: ^{{cookiecutter.project_name}}/
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: "v0.11.5"
hooks:
- id: ruff
args: [--exit-non-zero-on-fix, --config=pyproject.toml]
exclude: ^{{cookiecutter.project_name}}
- id: ruff-format
args: [--config=pyproject.toml]
exclude: ^{{cookiecutter.project_name}}