Fetch the repository succeeded.
exclude: '(\/migrations\/|^djangoproject\/static\/.*$)'
default_language_version:
python: python3
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: "v4.6.0"
hooks:
- id: debug-statements
- id: detect-private-key
- id: end-of-file-fixer
exclude_types: [json, sql]
- id: file-contents-sorter
files: ^(requirements/\w*.txt)$
args: ["--ignore-case", "--unique"]
- id: fix-encoding-pragma
args: ["--remove"]
- id: trailing-whitespace
- repo: https://github.com/asottile/pyupgrade
rev: "v3.15.2"
hooks:
- id: pyupgrade
args: [--py38-plus]
- repo: https://github.com/adamchainz/django-upgrade
rev: "1.16.0"
hooks:
- id: django-upgrade
args: [--target-version, "3.2"]
- repo: https://github.com/psf/black
rev: 24.4.2
hooks:
- id: black
- repo: https://github.com/pre-commit/mirrors-prettier
rev: "v4.0.0-alpha.8"
hooks:
- id: prettier
exclude_types: [html, json, scss]
- repo: https://github.com/pycqa/isort
rev: "5.13.2"
hooks:
- id: isort
- repo: https://github.com/pycqa/flake8
rev: "7.0.0"
hooks:
- id: flake8
- repo: https://github.com/rtts/djhtml
rev: "3.0.6"
hooks:
- id: djhtml
files: .*/templates/.*\.html$
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。