Skip to content

Commit 97d7473

Browse files
authored
Changed regex to ignore parameters specified in requirements.txt (#2)
1 parent de7bb4a commit 97d7473

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: ^(?!\s*$)(?!#)(?!.+(?:={2,3}|!=|~=|>=?|<=?)[\S]+).*
6+
entry: ^(?!\s*$)(?!#)(?!--)(?!.+(?:={2,3}|!=|~=|>=?|<=?)[\S]+).*

0 commit comments

Comments
 (0)