We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6064c96 commit dc2f77cCopy full SHA for dc2f77c
.pre-commit-config.yaml
@@ -55,7 +55,7 @@ repos:
55
hooks:
56
- id: check-rst-files
57
name: Check for .rst files in the top-level directory
58
- 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)"
59
language: system
60
always_run: true
61
pass_filenames: false
0 commit comments