This repository has been archived on 2023-05-31. You can view files and clone it, but cannot push or open issues or pull requests.
python-blog/.pre-commit-config.yaml

83 lines
2.4 KiB
YAML
Raw Normal View History

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
rev: v4.4.0
2020-08-14 14:53:30 +02:00
hooks:
- id: check-ast
- id: check-json
2020-08-14 14:53:30 +02:00
- id: check-toml
- 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
- 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
- repo: https://github.com/adamchainz/django-upgrade
rev: 1.13.0
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
rev: 23.3.0
2022-12-19 22:12:47 +01:00
hooks:
- id: black
args: [--target-version, py311]
- repo: https://github.com/rtts/djhtml
rev: 3.0.6
hooks:
- id: djhtml
2023-01-30 20:58:18 +01:00
- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: 'v0.0.270'
hooks:
2023-01-30 20:58:18 +01:00
- id: ruff
args: [--fix]
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v3.0.0-alpha.9-for-vscode
hooks:
- id: prettier
types_or: [javascript, css]
- repo: https://github.com/pre-commit/mirrors-eslint
rev: v8.41.0
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
rev: 6.13.0
2022-12-19 22:12:47 +01:00
hooks:
- id: pip-compile
name: pip-compile requirements.txt
args: [-q, --allow-unsafe, --resolver=backtracking, requirements.in]
2022-12-19 22:12:47 +01:00
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
args: [-q, --allow-unsafe, --resolver=backtracking, requirements-dev.in]
2022-12-19 22:12:47 +01:00
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]