aiohttp
/
.pre-commit-config.yaml
126 строк · 2.9 Кб
1repos:2- repo: local3hooks:4- id: changelogs-rst5name: changelog filenames6language: fail7entry: >-8Changelog files must be named
9####.(10bugfix
11| feature12| deprecation13| breaking14| doc15| packaging16| contrib17| misc18)(.#)?(.rst)?19exclude: >-20(?x)21^
22CHANGES/(
23\.gitignore
24|(\d+|[0-9a-f]{8}|[0-9a-f]{7}|[0-9a-f]{40})\.(25bugfix
26|feature27|deprecation28|breaking29|doc30|packaging31|contrib32|misc33)(\.\d+)?(\.rst)?34|README\.rst35|\.TEMPLATE\.rst36)
37$
38files: ^CHANGES/39- id: changelogs-user-role40name: Changelog files should use a non-broken :user:`name` role41language: pygrep42entry: :user:([^`]+`?|`[^`]+[\s,])43pass_filenames: true44types: [file, rst]45- id: check-changes46name: Check CHANGES47language: system48entry: ./tools/check_changes.py49pass_filenames: false50- repo: https://github.com/pre-commit/pre-commit-hooks51rev: 'v4.6.0'52hooks:53- id: check-merge-conflict54- repo: https://github.com/asottile/yesqa55rev: v1.5.056hooks:57- id: yesqa58- repo: https://github.com/PyCQA/isort59rev: '5.13.2'60hooks:61- id: isort62- repo: https://github.com/psf/black63rev: '24.8.0'64hooks:65- id: black66language_version: python3 # Should be a command that runs python67- repo: https://github.com/pre-commit/pre-commit-hooks68rev: 'v4.6.0'69hooks:70- id: end-of-file-fixer71exclude: >-72^docs/[^/]*\.svg$73- id: requirements-txt-fixer74files: requirements/.*\.in$75- id: trailing-whitespace76- id: file-contents-sorter77args: ['--ignore-case']78files: |79CONTRIBUTORS.txt|
80docs/spelling_wordlist.txt|
81.gitignore|
82.gitattributes
83- id: check-case-conflict84- id: check-json85- id: check-xml86- id: check-executables-have-shebangs87- id: check-toml88- id: check-yaml89- id: debug-statements90- id: check-added-large-files91- id: check-symlinks92- id: fix-byte-order-marker93- id: fix-encoding-pragma94args: ['--remove']95- id: detect-aws-credentials96args: ['--allow-missing-credentials']97- id: detect-private-key98exclude: ^examples/99- repo: https://github.com/asottile/pyupgrade100rev: 'v3.17.0'101hooks:102- id: pyupgrade103args: ['--py37-plus']104- repo: https://github.com/PyCQA/flake8105rev: '7.1.1'106hooks:107- id: flake8108additional_dependencies:109- flake8-docstrings==1.6.0110- flake8-no-implicit-concat==0.3.4111- flake8-requirements==1.7.8112exclude: "^docs/"113- repo: https://github.com/Lucas-C/pre-commit-hooks-markup114rev: v1.0.1115hooks:116- id: rst-linter117files: >-118^[^/]+[.]rst$119exclude: >-120^CHANGES\.rst$
121- repo: https://github.com/codespell-project/codespell122rev: v2.3.0123hooks:124- id: codespell125additional_dependencies:126- tomli127