1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79
|
---
repos:
# - repo: https://github.com/PyCQA/docformatter.git
# rev: v1.7.5
# hooks:
# - id: docformatter
# args:
# - --in-place
- repo: https://github.com/pre-commit/pre-commit-hooks.git
rev: v1.1.1
hooks:
- id: trailing-whitespace
exclude: cherrypy/test/static/index.html
- id: flake8
- id: check-merge-conflict
- id: double-quote-string-fixer
- id: end-of-file-fixer
- id: name-tests-test
include: cherrypy/test/
args:
- --django
exclude: tests/dist-check.py
- id: debug-statements
- id: check-added-large-files
- id: check-ast
- id: check-byte-order-marker
- id: check-case-conflict
- id: check-json
include: .mention-bot
- id: check-symlinks
- id: check-yaml
- id: detect-private-key
exclude: cherrypy/test/test.pem
- id: requirements-txt-fixer
- repo: https://github.com/PyCQA/pydocstyle.git
rev: 6.3.0
hooks:
- id: pydocstyle
exclude: |
(?x)
tests/dist|
cherrypy/(
_cp(
compat|modpy|logging|error|wsgi|dispatch|tools|reqbody|request
)|
(
lib/(
auth|auth_basic|auth_digest|caching|covercp|
cpstats|cptools|encoding|gctools|httpauth|httputil|
jsontools|lockfile|locking|profiler|reprconf|sessions
)|
process/(plugins|servers|win32)
).py|
test|tutorial
)
- repo: https://github.com/Lucas-C/pre-commit-hooks.git
rev: v1.5.4
hooks:
- id: remove-tabs
- repo: https://github.com/Lucas-C/pre-commit-hooks-lxml.git
rev: v1.1.0
hooks:
- id: forbid-html-img-without-alt-text
- repo: https://github.com/adrienverge/yamllint.git
rev: v1.34.0
hooks:
- id: yamllint
files: \.(yaml|yml)$
types: [file, yaml]
args:
- --strict
...
|