datadog-sdk-testing 0.8.1 → 0.8.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/tasks/ci/hooks/pre-commit.py +6 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 371cb72459d26349c8e06f7ebc9db0be8edd87ee
|
4
|
+
data.tar.gz: 28a8cd39817105f08e6c5756b098bf2e83004334
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f6c05f8135efa41c870ddac29956f8c95f5c6546bc51ae35c0ddb974d06c2418d15855dfef5039f31423e0d1af8a6e1d38aab3597097baed4a2f744543f67d70
|
7
|
+
data.tar.gz: a6e03ad8e47538ef30c9d959489b2c96ce0d743762e526a181849470425ebfd4489bed655d96a4c05d17572b58415b43c738c84ac576f8c1a05524159c4d59de
|
@@ -33,6 +33,7 @@ class RequirementsAnalyzer(object):
|
|
33
33
|
SPECIFIERS = ['==', '!=' '<=', '>=', '<', '>']
|
34
34
|
COMMENT = '#'
|
35
35
|
HASH_SWITCH = '--hash'
|
36
|
+
LINEBREAK = '\\'
|
36
37
|
|
37
38
|
def __init__(self, remote, local, patterns=['requirements.txt'],
|
38
39
|
ignorable=[], verbose=False):
|
@@ -163,6 +164,11 @@ class RequirementsAnalyzer(object):
|
|
163
164
|
if not line:
|
164
165
|
continue
|
165
166
|
|
167
|
+
# remove any "linebreak"
|
168
|
+
break_idx = line.find(self.LINEBREAK)
|
169
|
+
if break_idx >= 0:
|
170
|
+
line = line[:break_idx]
|
171
|
+
|
166
172
|
line = "".join(line.split())
|
167
173
|
comment_idx = line.find(self.COMMENT)
|
168
174
|
if comment_idx >= 0:
|