2022-11-18 20:27:31 +00:00
|
|
|
---
|
|
|
|
# See https://pre-commit.com for more information
|
|
|
|
# See https://pre-commit.com/hooks.html for more hooks
|
|
|
|
repos:
|
|
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
2022-11-23 20:02:43 +00:00
|
|
|
rev: v4.4.0
|
2022-11-18 20:27:31 +00:00
|
|
|
hooks:
|
|
|
|
- id: check-added-large-files
|
|
|
|
- id: check-case-conflict
|
|
|
|
- id: check-executables-have-shebangs
|
|
|
|
- id: check-shebang-scripts-are-executable
|
|
|
|
- id: check-symlinks
|
|
|
|
- id: destroyed-symlinks
|
|
|
|
|
|
|
|
- id: check-json
|
|
|
|
- id: check-yaml
|
|
|
|
- id: check-xml
|
|
|
|
- id: check-toml
|
|
|
|
|
|
|
|
- id: check-vcs-permalinks
|
|
|
|
- id: check-merge-conflict
|
|
|
|
- id: end-of-file-fixer
|
2022-11-18 21:12:21 +00:00
|
|
|
exclude: ^(docs/locales/.*/LC_MESSAGES)
|
2022-11-18 20:27:31 +00:00
|
|
|
- id: mixed-line-ending
|
|
|
|
- id: trailing-whitespace
|
2022-11-19 15:38:51 +00:00
|
|
|
|
2023-05-08 10:52:46 +00:00
|
|
|
- repo: https://github.com/python-poetry/poetry
|
2023-06-08 16:02:17 +00:00
|
|
|
rev: 1.5.1
|
2023-05-08 10:52:46 +00:00
|
|
|
hooks:
|
|
|
|
- id: poetry-check
|
|
|
|
files: ^api/pyproject.toml$
|
|
|
|
args: [--directory=api]
|
|
|
|
|
|
|
|
- id: poetry-lock
|
|
|
|
files: ^api/pyproject.toml$
|
|
|
|
args: [--directory=api, --check]
|
|
|
|
|
2022-11-19 16:00:33 +00:00
|
|
|
- repo: https://github.com/asottile/pyupgrade
|
2023-09-01 12:09:58 +00:00
|
|
|
rev: v3.9.0
|
2022-11-19 16:00:33 +00:00
|
|
|
hooks:
|
|
|
|
- id: pyupgrade
|
2023-01-27 17:58:47 +00:00
|
|
|
args: [--py38-plus]
|
2022-11-19 16:00:33 +00:00
|
|
|
exclude: ^(api/.*/migrations/.*)
|
|
|
|
|
2022-11-19 14:27:03 +00:00
|
|
|
- repo: https://github.com/psf/black
|
2023-09-01 12:09:58 +00:00
|
|
|
rev: 23.7.0
|
2022-11-19 14:27:03 +00:00
|
|
|
hooks:
|
|
|
|
- id: black
|
|
|
|
|
2022-11-19 14:58:57 +00:00
|
|
|
- repo: https://github.com/pycqa/isort
|
2023-01-28 17:02:47 +00:00
|
|
|
rev: 5.12.0
|
2022-11-19 14:58:57 +00:00
|
|
|
hooks:
|
|
|
|
- id: isort
|
|
|
|
|
2022-11-19 15:38:51 +00:00
|
|
|
- repo: https://github.com/pycqa/flake8
|
2022-11-23 23:02:03 +00:00
|
|
|
rev: 6.0.0
|
2022-11-19 15:38:51 +00:00
|
|
|
hooks:
|
|
|
|
- id: flake8
|
2022-11-18 22:19:03 +00:00
|
|
|
|
|
|
|
- repo: https://github.com/pre-commit/mirrors-prettier
|
2023-09-01 12:09:58 +00:00
|
|
|
rev: v3.0.2
|
2022-11-18 22:19:03 +00:00
|
|
|
hooks:
|
|
|
|
- id: prettier
|
|
|
|
files: \.(md|yml|yaml|json)$
|
2022-11-19 16:10:10 +00:00
|
|
|
|
|
|
|
- repo: https://github.com/codespell-project/codespell
|
2023-06-26 11:01:53 +00:00
|
|
|
rev: v2.2.5
|
2022-11-19 16:10:10 +00:00
|
|
|
hooks:
|
|
|
|
- id: codespell
|
|
|
|
additional_dependencies: [tomli]
|
2022-11-24 01:45:01 +00:00
|
|
|
|
|
|
|
- repo: https://github.com/shellcheck-py/shellcheck-py
|
2023-06-09 08:30:22 +00:00
|
|
|
rev: v0.9.0.5
|
2022-11-24 01:45:01 +00:00
|
|
|
hooks:
|
|
|
|
- id: shellcheck
|
2022-12-17 17:21:41 +00:00
|
|
|
|
|
|
|
- repo: local
|
|
|
|
hooks:
|
|
|
|
- id: pwa-manifest.json
|
|
|
|
name: pwa-manifest.json
|
|
|
|
description: Sync pwa-manifest.json
|
|
|
|
entry: scripts/sync-pwa-manifest.sh
|
|
|
|
pass_filenames: false
|
|
|
|
language: script
|
|
|
|
files: pwa-manifest.json$
|