frappe_docker/.pre-commit-config.yaml
ubden 9f2ef9bbc2 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.
2025-10-13 23:57:08 +03:00

37 lines
1.5 KiB
YAML

repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: trailing-whitespace
exclude: "\\.(md|txt)$"
- id: end-of-file-fixer
exclude: "(dokploy/VERSION|\\.md|\\.json|\\.sh|\\.yml|\\.yaml|Dockerfile|Containerfile|\\.dockerignore|\\.gitignore)$"
- id: check-yaml
exclude: "(docker-compose.*\\.yml|overrides/.*\\.yaml)$"
- id: check-added-large-files
- id: check-merge-conflict
- id: check-executables-have-shebangs
exclude: "(resources/.*|dokploy/install\\.sh)$"
- id: check-shebang-scripts-are-executable
exclude: "(resources/.*|dokploy/install\\.sh)$"
- repo: https://github.com/codespell-project/codespell
rev: v2.2.6
hooks:
- id: codespell
args: ["--skip=*.json,*.lock,*.min.js,*.min.css,*.svg,yarn.lock", "--ignore-words-list=nd,ist,ue,bu,manuel,sistem,paket,gir,standart"]
exclude: "(dokploy/.*\\.md|DOKPLOY.*\\.md|MODULAR.*\\.md|\\.github/.*\\.md)"
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v3.1.0
hooks:
- id: prettier
types_or: [yaml]
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
rev: 3.0.0
hooks:
- id: shellcheck
args: ["-x"]
exclude: "resources/nginx-entrypoint\\.sh$"