Skip to content

Commit 1b61701

Browse files
committed
Changed regex to ignore parameters specified in requirements.txt
1 parent e33b236 commit 1b61701

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.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)