2023-10-10 15:25:53 +00:00
|
|
|
repos:
|
|
|
|
# lint yaml, line and whitespace
|
|
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
2024-10-13 01:54:29 +00:00
|
|
|
rev: v5.0.0
|
2023-10-10 15:25:53 +00:00
|
|
|
hooks:
|
|
|
|
- id: check-yaml
|
|
|
|
- id: end-of-file-fixer
|
|
|
|
- id: trailing-whitespace
|
|
|
|
- id: requirements-txt-fixer
|
|
|
|
- id: mixed-line-ending
|
|
|
|
- id: check-executables-have-shebangs
|
|
|
|
- id: check-shebang-scripts-are-executable
|
|
|
|
|
|
|
|
# lint the dockerfiles
|
|
|
|
- repo: https://github.com/hadolint/hadolint
|
2024-10-13 01:54:29 +00:00
|
|
|
rev: v2.13.1-beta
|
2023-10-10 15:25:53 +00:00
|
|
|
hooks:
|
|
|
|
- id: hadolint
|
|
|
|
|
|
|
|
# prettier
|
|
|
|
- repo: https://github.com/pre-commit/mirrors-prettier
|
2023-12-24 01:25:27 +00:00
|
|
|
rev: "v4.0.0-alpha.8" # Use the sha / tag you want to point at
|
2023-10-10 15:25:53 +00:00
|
|
|
hooks:
|
|
|
|
- id: prettier
|
|
|
|
types_or: [file, bash, sh, javascript, jsx, ts, tsx]
|
|
|
|
additional_dependencies:
|
|
|
|
- prettier@2.5.1
|
|
|
|
exclude: ^(Dockerfile*)
|
|
|
|
|
|
|
|
- repo: https://github.com/codespell-project/codespell.git
|
2024-05-26 01:35:07 +00:00
|
|
|
rev: "v2.3.0" # Use the sha / tag you want to point at
|
2023-10-10 15:25:53 +00:00
|
|
|
hooks:
|
|
|
|
- id: codespell
|
|
|
|
types: [text]
|
|
|
|
args: [--ignore-words=.dictionary.txt]
|
|
|
|
exclude: ^(Dockerfile*)
|
|
|
|
|
|
|
|
- repo: https://github.com/shellcheck-py/shellcheck-py
|
2024-03-24 01:23:49 +00:00
|
|
|
rev: v0.10.0.1
|
2023-10-10 15:25:53 +00:00
|
|
|
hooks:
|
|
|
|
- id: shellcheck
|
|
|
|
|
|
|
|
- repo: https://github.com/sirosen/check-jsonschema
|
2024-12-01 02:16:35 +00:00
|
|
|
rev: 0.30.0
|
2023-10-10 15:25:53 +00:00
|
|
|
hooks:
|
|
|
|
- id: check-github-actions
|
|
|
|
- id: check-github-workflows
|
|
|
|
|
|
|
|
- repo: https://github.com/doublify/pre-commit-rust
|
|
|
|
rev: v1.0
|
|
|
|
hooks:
|
|
|
|
- id: fmt
|
|
|
|
- id: cargo-check
|
|
|
|
|
|
|
|
# lint python formatting
|
|
|
|
- repo: https://github.com/psf/black
|
2024-10-13 01:54:29 +00:00
|
|
|
rev: 24.10.0
|
2023-10-10 15:25:53 +00:00
|
|
|
hooks:
|
|
|
|
- id: black
|
|
|
|
|
|
|
|
- repo: https://github.com/pycqa/flake8
|
2024-08-11 01:44:14 +00:00
|
|
|
rev: "7.1.1" # pick a git hash / tag to point to
|
2023-10-10 15:25:53 +00:00
|
|
|
hooks:
|
|
|
|
- id: flake8
|
|
|
|
args: ["--extend-ignore=W503,W504,E501"]
|