mirror of
https://github.com/varun-r-mallya/py-libp2p.git
synced 2025-12-31 20:36:24 +00:00
Fix check-rst-files hook to work cross-platform
This commit is contained in:
committed by
Paul Robinson
parent
6064c96563
commit
dc2f77ccbd
@ -55,7 +55,7 @@ repos:
|
|||||||
hooks:
|
hooks:
|
||||||
- id: check-rst-files
|
- id: check-rst-files
|
||||||
name: Check for .rst files in the top-level directory
|
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'
|
entry: python -c "import glob, sys; rst_files = glob.glob('*.rst'); sys.exit(1) if rst_files else sys.exit(0)"
|
||||||
language: system
|
language: system
|
||||||
always_run: true
|
always_run: true
|
||||||
pass_filenames: false
|
pass_filenames: false
|
||||||
|
|||||||
Reference in New Issue
Block a user