mirror of
https://github.com/varun-r-mallya/py-libp2p.git
synced 2025-12-31 20:36:24 +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
|
||||
exclude: tests/
|
||||
- repo: https://github.com/PrincetonUniversity/blocklint
|
||||
rev: v0.2.4
|
||||
rev: v0.2.5
|
||||
hooks:
|
||||
- id: blocklint
|
||||
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