Skip to content


Ignore comments in requirements files. #2

merged 1 commit into from

2 participants


Hi David. Thanks for another interesting app.

We sometimes use comments in our requirements files. This little patch handles them.

@dcramer dcramer merged commit 2818158 into dcramer:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on May 4, 2012
  1. @ryankask
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/piplint/
2 src/piplint/
@@ -59,7 +59,7 @@ def valid_version(version, compare, r_version):
with open(fname) as fp:
for line in fp:
line = line.strip()
- if not line or line.startswith('-'):
+ if not line or line.startswith('-') or line.startswith('#'):
Something went wrong with that request. Please try again.