Skip to content

Commit e33b236

Browse files
committed
bugfix -> ignoring empty lines and comments
1 parent 21e3b2f commit e33b236

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.pre-commit-hooks.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33
description: Fails if a requirement does not specify the version
44
language: pygrep
55
files: requirements.*\.txt$
6-
entry: ^(?!.+(?:={2,3}|!=|~=|>=?|<=?)[\S]+).*
6+
entry: ^(?!\s*$)(?!#)(?!.+(?:={2,3}|!=|~=|>=?|<=?)[\S]+).*

0 commit comments

Comments
 (0)