Skip to content

Commit 3b9d90a

Browse files
committed
Replaced pep8 and pyflakes targets with flake8.
1 parent d97714b commit 3b9d90a

3 files changed

Lines changed: 8 additions & 11 deletions

File tree

Makefile

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,5 @@ test:
1010
task:
1111
python manage.py test celerytasks
1212

13-
pep8:
14-
pep8 api celerytasks deis web --exclude=migrations
15-
16-
pyflakes:
17-
pyflakes api celerytasks deis web
13+
flake8:
14+
flake8

client/deis/client.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -279,14 +279,14 @@ def auth_register(self, args):
279279
password = getpass('password: ')
280280
email = args.get('--email')
281281
if not email:
282-
email = raw_input ('email: ')
282+
email = raw_input('email: ')
283283
url = urlparse.urljoin(controller, '/api/register')
284284
payload = {'username': username, 'password': password, 'email': email}
285285
response = self._session.post(url, data=payload, allow_redirects=False)
286286
if response.status_code == requests.codes.created: # @UndefinedVariable
287287
self._settings['controller'] = controller
288288
self._settings.save()
289-
print('Registered {}'.format(username))
289+
print("Registered {}".format(username))
290290
login_args = {'--username': username, '--password': password,
291291
'<controller>': controller}
292292
# login after registering
@@ -319,7 +319,7 @@ def auth_login(self, args):
319319
if response.status_code == requests.codes.found: # @UndefinedVariable
320320
self._settings['controller'] = controller
321321
self._settings.save()
322-
print('Logged in as {}'.format(username))
322+
print("Logged in as {}".format(username))
323323
return True
324324
else:
325325
print('Login failed')
@@ -342,7 +342,7 @@ def backends_list(self, args):
342342
formation = args.get('--formation')
343343
if not formation:
344344
formation = self._session.formation
345-
response = self._dispatch('get','/formations/{}/backends'.format(formation))
345+
response = self._dispatch('get', "/formations/{}/backends".format(formation))
346346
if response.status_code == requests.codes.ok: # @UndefinedVariable
347347
print('=== {0}'.format(formation))
348348
data = response.json()
@@ -505,7 +505,7 @@ def keys_list(self, args):
505505
for key in data['results']:
506506
public = key['public']
507507
print('{0} {1}...{2}'.format(
508-
key['id'], public[0:16], public[-10:]))
508+
key['id'], public[0:16], public[-10:]))
509509
else:
510510
print('Error!', response.text)
511511

setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
[flake8]
22
max-line-length=100
33
exclude = */api/migrations/*,*/build/*,*/venv/*
4-
max-complexity = 10
4+
max-complexity = 12

0 commit comments

Comments
 (0)