-
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 (25 loc) · 1.44 KB
/
.pre-commit-config.yaml
File metadata and controls
27 lines (25 loc) · 1.44 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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: "v5.0.0"
hooks:
- id: check-case-conflict
- id: check-merge-conflict
- id: check-toml
- id: check-yaml
- id: check-json
exclude: ^.devcontainer/devcontainer.json
- id: pretty-format-json
exclude: ^(.devcontainer/devcontainer.json|tatrapayplus_api_sandbox\.json)$
args: [--autofix]
- id: end-of-file-fixer
exclude: ^(.devcontainer/devcontainer\.json|docs/conf\.py|pyproject\.toml|ECID_PUBLIC_KEY_2023\.txt|\.github/workflows/on-release-main\.yml|tatrapayplus_api_sandbox\.json|\.pre-commit-config\.yaml)$
- id: trailing-whitespace
exclude: ^(.devcontainer/devcontainer\.json|docs/conf\.py|pyproject\.toml|ECID_PUBLIC_KEY_2023\.txt|\.github/workflows/on-release-main\.yml|tatrapayplus_api_sandbox\.json|\.pre-commit-config\.yaml)$
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: "v0.11.5"
hooks:
- id: ruff
args: [--exit-non-zero-on-fix]
exclude: ^(.devcontainer/devcontainer\.json|docs/conf\.py|pyproject\.toml|ECID_PUBLIC_KEY_2023\.txt|\.github/workflows/on-release-main\.yml|tatrapayplus_api_sandbox\.json|\.pre-commit-config\.yaml)$
- id: ruff-format
exclude: ^(.devcontainer/devcontainer\.json|docs/conf\.py|pyproject\.toml|ECID_PUBLIC_KEY_2023\.txt|\.github/workflows/on-release-main\.yml|tatrapayplus_api_sandbox\.json|\.pre-commit-config\.yaml)$