Skip to content
This repository was archived by the owner on Jul 11, 2022. It is now read-only.

Commit 38524ad

Browse files
authored
Unpin flake8 to allow v3 (#231)
* Unpin flake8 to allow v3 Signed-off-by: Yuri Shkuro <[email protected]> * Pin test module Signed-off-by: Yuri Shkuro <[email protected]>
1 parent 24603de commit 38524ad

File tree

5 files changed

+15
-13
lines changed

5 files changed

+15
-13
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ clean:
6666

6767
.PHONY: lint
6868
lint:
69-
$(flake8) $(projects) tests
69+
$(flake8) $(projects)
7070
./scripts/check-license.sh
7171

7272
.PHONY: shell

crossdock/server/serializer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ def traceresponse_from_struct(json_obj):
7676
def traceresponse_from_json(json_str):
7777
try:
7878
return traceresponse_from_struct(json.loads(json_str))
79-
except:
79+
except: # noqa: E722
8080
logging.exception('Failed to parse JSON')
8181
raise
8282

jaeger_client/config.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -230,36 +230,36 @@ def local_agent_enabled(self):
230230
return get_boolean(self.local_agent_group().get('enabled',
231231
LOCAL_AGENT_DEFAULT_ENABLED),
232232
LOCAL_AGENT_DEFAULT_ENABLED)
233-
except:
233+
except: # noqa: E722
234234
return LOCAL_AGENT_DEFAULT_ENABLED
235235

236236
@property
237237
def local_agent_sampling_port(self):
238238
# noinspection PyBroadException
239239
try:
240240
return int(self.local_agent_group()['sampling_port'])
241-
except:
241+
except: # noqa: E722
242242
return DEFAULT_SAMPLING_PORT
243243

244244
@property
245245
def local_agent_reporting_port(self):
246246
# noinspection PyBroadException
247247
try:
248248
return int(self.local_agent_group()['reporting_port'])
249-
except:
249+
except: # noqa: E722
250250
pass
251251

252252
try:
253253
return int(os.getenv('JAEGER_AGENT_PORT'))
254-
except:
254+
except: # noqa: E722
255255
return DEFAULT_REPORTING_PORT
256256

257257
@property
258258
def local_agent_reporting_host(self):
259259
# noinspection PyBroadException
260260
try:
261261
return self.local_agent_group()['reporting_host']
262-
except:
262+
except: # noqa: E722
263263
pass
264264

265265
if os.getenv('JAEGER_AGENT_HOST') is not None:
@@ -304,7 +304,7 @@ def throttler_port(self):
304304
# noinspection PyBroadException
305305
try:
306306
return int(throttler_config['port'])
307-
except:
307+
except: # noqa: E722
308308
return DEFAULT_THROTTLER_PORT
309309

310310
@property
@@ -315,7 +315,7 @@ def throttler_refresh_interval(self):
315315
# noinspection PyBroadException
316316
try:
317317
return int(throttler_config['refresh_interval'])
318-
except:
318+
except: # noqa: E722
319319
return DEFAULT_THROTTLER_REFRESH_INTERVAL
320320

321321
@staticmethod

jaeger_client/sampler.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,9 @@ def close(self):
7171
raise NotImplementedError()
7272

7373
def __eq__(self, other):
74-
return (isinstance(other, self.__class__) and
75-
self.__dict__ == other.__dict__)
74+
return (
75+
isinstance(other, self.__class__) and self.__dict__ == other.__dict__
76+
)
7677

7778
def __ne__(self, other):
7879
return not self.__eq__(other)

setup.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,10 @@
6060
'coverage<4.4', # can remove after https://bitbucket.org/ned/coveragepy/issues/581/44b1-44-breaking-in-ci
6161
'pytest-timeout==1.3.1',
6262
'pytest-tornado',
63-
'pytest-benchmark[histogram]>=3.0.0rc1',
63+
# pin <3.2 as otherwise it requires pytest>=3.8
64+
'pytest-benchmark[histogram]>=3.0.0rc1,<3.2',
6465
'pytest-localserver',
65-
'flake8<3', # see https://github.com/zheller/flake8-quotes/issues/29
66+
'flake8',
6667
'flake8-quotes',
6768
'codecov',
6869
'tchannel>=0.27', # This is only used in python 2

0 commit comments

Comments
 (0)