summaryrefslogtreecommitdiff
path: root/.pre-commit-config.yaml
diff options
context:
space:
mode:
authorPierre Sassoulas <pierre.sassoulas@gmail.com>2023-01-30 15:59:23 +0100
committerGitHub <noreply@github.com>2023-01-30 14:59:23 +0000
commit4036863950f8ad04d66b507ee3d851cec1dc066b (patch)
tree282a8b4068dc7ad9c4ae198ad14a3caeeca57b37 /.pre-commit-config.yaml
parentdf85f7a1b8d441555483ed8cc7f6ea89fb4803eb (diff)
downloadpylint-git-4036863950f8ad04d66b507ee3d851cec1dc066b.tar.gz
[doc] Make sure that doc examples are of a reasonable length (#8135)
And upgrade existing unreasonable length. Reading ease is drastically reduced on read the doc after 103 chars (Because of horizontal scrolling)
Diffstat (limited to '.pre-commit-config.yaml')
-rw-r--r--.pre-commit-config.yaml7
1 files changed, 7 insertions, 0 deletions
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index c6306e9f2..c2ba36f51 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -60,6 +60,13 @@ repos:
additional_dependencies:
[flake8-bugbear==23.1.20, flake8-typing-imports==1.14.0]
exclude: *fixtures
+ - repo: https://github.com/PyCQA/flake8
+ rev: 6.0.0
+ hooks:
+ - id: flake8
+ name: line-length-doc
+ files: doc/data/messages
+ args: ["--config", "doc/data/.flake8"]
- repo: local
hooks:
- id: pylint