3 Star 0 Fork 0

Gitee 极速下载 / djangoproject.com

Create your Gitee Account
Explore and code with more than 12 million developers,Free private repositories !:)
Sign up
此仓库是为了提升国内下载速度的镜像仓库,每日同步一次。 原始仓库: https://github.com/django/djangoproject.com
Clone or Download
.pre-commit-config.yaml 1.45 KB
Copy Edit Raw Blame History
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$
Python
1
https://gitee.com/mirrors/djangoproject.com.git
git@gitee.com:mirrors/djangoproject.com.git
mirrors
djangoproject.com
djangoproject.com
main

Search