mirror of
https://github.com/varun-r-mallya/py-libp2p.git
synced 2026-02-12 08:00:54 +00:00
add lint check for .rst files incorrectly placed in the top-level dir, also bump blocklint version
This commit is contained in:
@ -49,7 +49,15 @@ repos:
|
|||||||
- id: mypy
|
- id: mypy
|
||||||
exclude: tests/
|
exclude: tests/
|
||||||
- repo: https://github.com/PrincetonUniversity/blocklint
|
- repo: https://github.com/PrincetonUniversity/blocklint
|
||||||
rev: v0.2.4
|
rev: v0.2.5
|
||||||
hooks:
|
hooks:
|
||||||
- id: blocklint
|
- id: blocklint
|
||||||
exclude: 'docs/Makefile|docs/release_notes.rst|tox.ini'
|
exclude: 'docs/Makefile|docs/release_notes.rst|tox.ini'
|
||||||
|
- repo: local
|
||||||
|
hooks:
|
||||||
|
- id: check-rst-files
|
||||||
|
name: Check for .rst files in the top-level directory
|
||||||
|
entry: sh -c 'ls *.rst 1>/dev/null 2>&1 && { echo "found .rst file in top-level folder"; exit 1; } || exit 0'
|
||||||
|
language: system
|
||||||
|
always_run: true
|
||||||
|
pass_filenames: false
|
||||||
|
|||||||
Reference in New Issue
Block a user