summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSviatoslav Sydorenko <wk@sydorenko.org.ua>2023-01-05 04:45:48 +0100
committerSviatoslav Sydorenko <wk@sydorenko.org.ua>2023-01-05 05:18:34 +0100
commit7a954647055692594cec50eccb2eaf61726bac0f (patch)
treee821678c3c312e2d3998a3ec33f27ea1a76d5f14
parentabe6a12fdf5b48e6e086177b023f09073a52b4a5 (diff)
downloadcherrypy-git-7a954647055692594cec50eccb2eaf61726bac0f.tar.gz
🎨 Normalize YAML indents in pre-commit config
-rw-r--r--.pre-commit-config-pep257.yaml8
-rw-r--r--.pre-commit-config.yaml112
2 files changed, 60 insertions, 60 deletions
diff --git a/.pre-commit-config-pep257.yaml b/.pre-commit-config-pep257.yaml
index d9cb0f42..17287463 100644
--- a/.pre-commit-config-pep257.yaml
+++ b/.pre-commit-config-pep257.yaml
@@ -1,9 +1,9 @@
---
repos:
-- repo: git://github.com/chewse/pre-commit-mirrors-pydocstyle
- rev: v2.1.1
- hooks:
- - id: pydocstyle
+- repo: git://github.com/chewse/pre-commit-mirrors-pydocstyle
+ rev: v2.1.1
+ hooks:
+ - id: pydocstyle
...
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 8562415d..27a356a1 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -1,66 +1,66 @@
---
repos:
-- 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
- # disabled due to pre-commit/pre-commit-hooks#159
- #- id: check-docstring-first
- - 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/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
+ # disabled due to pre-commit/pre-commit-hooks#159
+ #- id: check-docstring-first
+ - 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/chewse/pre-commit-mirrors-pydocstyle.git
- rev: v2.1.1
- hooks:
- - id: pydocstyle
- exclude: |
- (?x)
- tests/dist|
- cherrypy/(
- _cp(
- compat|modpy|logging|error|wsgi|dispatch|tools|reqbody|request
+- repo: https://github.com/chewse/pre-commit-mirrors-pydocstyle.git
+ rev: v2.1.1
+ 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
)|
- (
- 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
- )
+ process/(plugins|servers|win32)
+ ).py|
+ test|tutorial
+ )
-- repo: https://github.com/Lucas-C/pre-commit-hooks.git
- rev: v1.1.12
- hooks:
- - id: remove-tabs
+- repo: https://github.com/Lucas-C/pre-commit-hooks.git
+ rev: v1.1.12
+ 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/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.27.1