mirror of
https://github.com/frappe/frappe_docker.git
synced 2026-06-25 16:55:08 +00:00
Update .pre-commit-config.yaml to expand exclusion patterns for linting hooks
- Added additional file types to the exclusion list for the end-of-file-fixer and prettier hooks, including shell scripts, YAML files, and Docker-related files. - This enhances the linting process by preventing unnecessary checks on specific file types.
This commit is contained in:
parent
feda1b1b62
commit
9f2ef9bbc2
1 changed files with 2 additions and 2 deletions
|
|
@ -5,7 +5,7 @@ repos:
|
||||||
- id: trailing-whitespace
|
- id: trailing-whitespace
|
||||||
exclude: "\\.(md|txt)$"
|
exclude: "\\.(md|txt)$"
|
||||||
- id: end-of-file-fixer
|
- id: end-of-file-fixer
|
||||||
exclude: "(dokploy/VERSION|\\.md|\\.json)$"
|
exclude: "(dokploy/VERSION|\\.md|\\.json|\\.sh|\\.yml|\\.yaml|Dockerfile|Containerfile|\\.dockerignore|\\.gitignore)$"
|
||||||
- id: check-yaml
|
- id: check-yaml
|
||||||
exclude: "(docker-compose.*\\.yml|overrides/.*\\.yaml)$"
|
exclude: "(docker-compose.*\\.yml|overrides/.*\\.yaml)$"
|
||||||
- id: check-added-large-files
|
- id: check-added-large-files
|
||||||
|
|
@ -27,7 +27,7 @@ repos:
|
||||||
hooks:
|
hooks:
|
||||||
- id: prettier
|
- id: prettier
|
||||||
types_or: [yaml]
|
types_or: [yaml]
|
||||||
exclude: "(yarn\\.lock|\\.lock|apps\\.json|dokploy\\.json|docker-compose.*\\.yml|overrides/.*\\.yaml|\\.github/workflows/.*\\.yml)$"
|
exclude: "(yarn\\.lock|\\.lock|apps\\.json|dokploy\\.json|docker-compose.*\\.yml|overrides/.*\\.yaml|\\.github/workflows/.*\\.yml|\\.pre-commit-config\\.yaml)$"
|
||||||
|
|
||||||
- repo: https://github.com/jumanjihouse/pre-commit-hooks
|
- repo: https://github.com/jumanjihouse/pre-commit-hooks
|
||||||
rev: 3.0.0
|
rev: 3.0.0
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue