2021-10-09 20:17:25 +03:00
|
|
|
repos:
|
|
|
|
- repo: local
|
|
|
|
hooks:
|
|
|
|
- id: check-translation-tag
|
|
|
|
name: Check newline characters in <translation> tag
|
2023-04-21 21:55:21 +03:00
|
|
|
entry: .github/workflows/helper/pre-commit/check_translation_tag.py
|
2021-10-09 20:17:25 +03:00
|
|
|
language: script
|
2022-02-20 08:43:57 +03:00
|
|
|
exclude: |
|
|
|
|
(?x)^(
|
|
|
|
src/lang/.*
|
|
|
|
)$
|
2021-10-09 20:17:25 +03:00
|
|
|
types_or:
|
|
|
|
- ts
|
|
|
|
|
|
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks.git
|
2024-10-06 11:49:30 +03:00
|
|
|
rev: v4.6.0
|
2021-10-09 20:17:25 +03:00
|
|
|
hooks:
|
|
|
|
- id: check-json
|
|
|
|
name: Check JSON files
|
|
|
|
|
|
|
|
- id: check-yaml
|
|
|
|
name: Check YAML files
|
|
|
|
|
|
|
|
- id: fix-byte-order-marker
|
|
|
|
name: Check file encoding (UTF-8 without BOM)
|
|
|
|
exclude: |
|
|
|
|
(?x)^(
|
|
|
|
src/base/unicodestrings.h
|
|
|
|
)$
|
|
|
|
|
|
|
|
- id: mixed-line-ending
|
|
|
|
name: Check line ending character (LF)
|
|
|
|
args: ["--fix=lf"]
|
|
|
|
exclude: |
|
|
|
|
(?x)^(
|
2023-01-16 14:55:44 +03:00
|
|
|
src/webui/www/private/css/lib/.* |
|
2023-07-02 08:23:20 +03:00
|
|
|
src/webui/www/private/scripts/lib/.* |
|
2023-10-20 09:04:56 +03:00
|
|
|
dist/windows/license.txt |
|
2023-07-02 08:23:20 +03:00
|
|
|
test/testdata/crlf.txt
|
2021-10-09 20:17:25 +03:00
|
|
|
)$
|
|
|
|
|
|
|
|
- id: end-of-file-fixer
|
|
|
|
name: Check trailing newlines
|
|
|
|
exclude: |
|
|
|
|
(?x)^(
|
|
|
|
configure |
|
2023-01-16 14:55:44 +03:00
|
|
|
src/webui/www/private/css/lib/.* |
|
2023-07-02 08:23:20 +03:00
|
|
|
src/webui/www/private/scripts/lib/.* |
|
|
|
|
test/testdata/crlf.txt
|
2021-10-09 20:17:25 +03:00
|
|
|
)$
|
|
|
|
exclude_types:
|
|
|
|
- svg
|
|
|
|
- ts
|
|
|
|
|
|
|
|
- id: trailing-whitespace
|
|
|
|
name: Check trailing whitespaces
|
|
|
|
exclude: |
|
|
|
|
(?x)^(
|
2023-01-16 14:55:44 +03:00
|
|
|
src/webui/www/private/css/lib/.* |
|
2021-10-09 20:17:25 +03:00
|
|
|
src/webui/www/private/scripts/lib/.*
|
|
|
|
)$
|
|
|
|
exclude_types:
|
|
|
|
- ts
|
2023-06-25 10:03:17 +03:00
|
|
|
|
2023-10-16 09:51:43 +03:00
|
|
|
- repo: https://github.com/codespell-project/codespell.git
|
2024-10-06 11:49:30 +03:00
|
|
|
rev: v2.3.0
|
2023-06-25 10:03:17 +03:00
|
|
|
hooks:
|
|
|
|
- id: codespell
|
|
|
|
name: Check spelling (codespell)
|
2024-10-06 11:49:30 +03:00
|
|
|
args: ["--ignore-words-list", "additionals,categor,curren,fo,ist,ket,notin,searchin,sectionin,superseeding,te,ths"]
|
2023-06-25 10:03:17 +03:00
|
|
|
exclude: |
|
|
|
|
(?x)^(
|
|
|
|
.*\.desktop |
|
|
|
|
.*\.qrc |
|
|
|
|
Changelog |
|
|
|
|
dist/windows/installer-translations/.* |
|
|
|
|
src/base/3rdparty/.* |
|
|
|
|
src/searchengine/nova3/socks.py |
|
2024-09-06 10:38:31 +03:00
|
|
|
src/webui/www/private/scripts/lib/.*
|
2023-06-25 10:03:17 +03:00
|
|
|
)$
|
|
|
|
exclude_types:
|
|
|
|
- ts
|
2023-06-26 07:37:13 +03:00
|
|
|
|
2023-10-16 09:51:43 +03:00
|
|
|
- repo: https://github.com/crate-ci/typos.git
|
2024-10-06 11:49:30 +03:00
|
|
|
rev: v1.25.0
|
2023-06-26 07:37:13 +03:00
|
|
|
hooks:
|
|
|
|
- id: typos
|
|
|
|
name: Check spelling (typos)
|
|
|
|
args: ["--config", ".github/workflows/helper/pre-commit/.typos.toml"]
|
|
|
|
exclude: |
|
|
|
|
(?x)^(
|
|
|
|
.*\.asc |
|
|
|
|
.*\.desktop |
|
|
|
|
.*\.qrc |
|
|
|
|
\.pre-commit-config\.yaml |
|
|
|
|
Changelog |
|
|
|
|
dist/windows/installer-translations/.* |
|
|
|
|
src/base/3rdparty/.* |
|
|
|
|
src/searchengine/nova3/socks.py |
|
2024-09-06 10:38:31 +03:00
|
|
|
src/webui/www/private/scripts/lib/.*
|
2023-06-26 07:37:13 +03:00
|
|
|
)$
|
|
|
|
exclude_types:
|
|
|
|
- svg
|
|
|
|
- ts
|