summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoe Lombrozo <joe@djeebus.net>2014-11-03 16:51:30 -0800
committerJoe Lombrozo <joe@djeebus.net>2014-11-03 16:51:30 -0800
commit073c249d39064c5e338ea9049908025e54e6f778 (patch)
tree84407d417e3ad37f1512ebacf0238aa0c209162d
parent0a9ce3bd5e70590b0f5a0d9b02c61c8533d15e91 (diff)
downloadtox-073c249d39064c5e338ea9049908025e54e6f778.tar.gz
Ignore comments
-rw-r--r--tests/test_config.py5
-rw-r--r--tox/_config.py2
2 files changed, 6 insertions, 1 deletions
diff --git a/tests/test_config.py b/tests/test_config.py
index bcc1836..bc2410f 100644
--- a/tests/test_config.py
+++ b/tests/test_config.py
@@ -1400,7 +1400,10 @@ class TestCmdInvocation:
''',
'reqs.txt': '''
-e git://hello/world/git
- dep2>=2.0
+ # comment
+ dep2>=2.0 # comment
+
+
-i http://index.local/
dep3
dep4==4.0
diff --git a/tox/_config.py b/tox/_config.py
index de75e2b..1d2b817 100644
--- a/tox/_config.py
+++ b/tox/_config.py
@@ -400,6 +400,8 @@ class parseini:
else:
lines.append(req)
continue
+ elif req.startswith('#'):
+ continue
name = self._replace_forced_dep(req, config)
lines.append(name)