2022-12-19 22:12:47 +01:00
|
|
|
exclude: \.min\.(js|css)(\.map)?$|^\.idea/|/vendor/
|
2022-09-28 00:02:03 +02:00
|
|
|
ci:
|
2022-12-19 22:12:47 +01:00
|
|
|
skip: [mypy, pip-compile]
|
|
|
|
|
2020-08-14 14:53:30 +02:00
|
|
|
repos:
|
|
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
2022-11-29 03:48:39 +01:00
|
|
|
rev: v4.4.0
|
2020-08-14 14:53:30 +02:00
|
|
|
hooks:
|
|
|
|
- id: check-ast
|
2021-12-19 20:40:51 +01:00
|
|
|
- id: check-json
|
2020-08-14 14:53:30 +02:00
|
|
|
- id: check-toml
|
2021-12-19 20:40:51 +01:00
|
|
|
- id: check-xml
|
2020-11-24 22:11:13 +01:00
|
|
|
- id: check-yaml
|
2021-02-06 18:07:51 +01:00
|
|
|
args: [--allow-multiple-documents]
|
2020-08-14 14:53:30 +02:00
|
|
|
- id: end-of-file-fixer
|
2021-12-19 20:40:51 +01:00
|
|
|
- id: check-merge-conflict
|
|
|
|
- id: debug-statements
|
|
|
|
- id: detect-private-key
|
2020-08-14 14:53:30 +02:00
|
|
|
- id: pretty-format-json
|
|
|
|
args:
|
|
|
|
- --autofix
|
|
|
|
- --no-sort-keys
|
|
|
|
- id: trailing-whitespace
|
|
|
|
args:
|
|
|
|
- --markdown-linebreak-ext=md
|
2023-02-09 10:09:58 +01:00
|
|
|
- id: check-executables-have-shebangs
|
|
|
|
- id: check-shebang-scripts-are-executable
|
2021-12-27 22:57:05 +01:00
|
|
|
- repo: https://github.com/adamchainz/django-upgrade
|
2023-02-21 04:55:10 +01:00
|
|
|
rev: 1.13.0
|
2021-12-27 22:57:05 +01:00
|
|
|
hooks:
|
|
|
|
- id: django-upgrade
|
2022-09-23 22:45:29 +02:00
|
|
|
args: [--target-version, "4.1"]
|
2022-12-19 22:12:47 +01:00
|
|
|
- repo: https://github.com/psf/black
|
2023-02-07 06:50:19 +01:00
|
|
|
rev: 23.1.0
|
2022-12-19 22:12:47 +01:00
|
|
|
hooks:
|
|
|
|
- id: black
|
|
|
|
args: [--target-version, py311]
|
2021-12-27 22:57:05 +01:00
|
|
|
- repo: https://github.com/rtts/djhtml
|
2023-02-28 04:57:30 +01:00
|
|
|
rev: 3.0.2
|
2021-12-27 22:57:05 +01:00
|
|
|
hooks:
|
|
|
|
- id: djhtml
|
2023-01-30 20:58:18 +01:00
|
|
|
- repo: https://github.com/charliermarsh/ruff-pre-commit
|
2023-02-28 04:57:30 +01:00
|
|
|
rev: 'v0.0.253'
|
2021-12-19 20:40:51 +01:00
|
|
|
hooks:
|
2023-01-30 20:58:18 +01:00
|
|
|
- id: ruff
|
|
|
|
args: [--fix]
|
2021-12-27 22:57:05 +01:00
|
|
|
- repo: https://github.com/pre-commit/mirrors-prettier
|
2022-11-01 01:52:57 +01:00
|
|
|
rev: v3.0.0-alpha.4
|
2021-12-27 22:57:05 +01:00
|
|
|
hooks:
|
|
|
|
- id: prettier
|
|
|
|
types_or: [javascript, css]
|
|
|
|
- repo: https://github.com/pre-commit/mirrors-eslint
|
2023-02-28 04:57:30 +01:00
|
|
|
rev: v8.35.0
|
2021-12-27 22:57:05 +01:00
|
|
|
hooks:
|
|
|
|
- id: eslint
|
|
|
|
args: [--fix]
|
|
|
|
types_or: [javascript, css]
|
|
|
|
additional_dependencies:
|
2023-02-17 15:50:22 +01:00
|
|
|
- eslint@8.34.0
|
2022-12-19 22:12:47 +01:00
|
|
|
- eslint-config-prettier@8.5.0
|
|
|
|
- repo: https://github.com/jazzband/pip-tools
|
2023-02-07 06:50:19 +01:00
|
|
|
rev: 6.12.2
|
2022-12-19 22:12:47 +01:00
|
|
|
hooks:
|
|
|
|
- id: pip-compile
|
|
|
|
name: pip-compile requirements.txt
|
|
|
|
args: [-q, --allow-unsafe, --resolver=backtracking, --generate-hashes, requirements.in]
|
|
|
|
files: ^requirements\.(in|txt)$
|
|
|
|
- id: pip-compile
|
|
|
|
name: pip-compile constraints.txt
|
|
|
|
args: [-q, --allow-unsafe, --resolver=backtracking, --strip-extras, --output-file=constraints.txt, requirements.in]
|
|
|
|
files: ^requirements\.in|constraints\.txt$
|
|
|
|
- id: pip-compile
|
2023-01-30 20:58:18 +01:00
|
|
|
name: pip-compile requirements-dev.txt
|
2022-12-19 22:12:47 +01:00
|
|
|
args: [-q, --allow-unsafe, --resolver=backtracking, --generate-hashes, requirements-dev.in]
|
|
|
|
files: ^requirements-dev\.(in|txt)$
|
2021-12-29 16:19:31 +01:00
|
|
|
- repo: local
|
|
|
|
hooks:
|
|
|
|
- id: mypy
|
|
|
|
name: mypy
|
|
|
|
entry: mypy
|
|
|
|
language: system
|
2021-12-29 16:25:56 +01:00
|
|
|
types_or: [python, pyi]
|