Skip to content

Commit 496e9b4

Browse files
committedSep 4, 2017
enable flake8 and fix all linting errors
1 parent b33ceea commit 496e9b4

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+146
-175
lines changed
 

‎Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ reinstall-p3: ## Re-initialize the virtualenv with Python 3.x
100100
PIP_CMD=pip3 VENV_OPTS="-p `which python3`" make install
101101

102102
lint: ## Run code linter to check code style
103-
($(VENV_RUN); pep8 --max-line-length=120 --ignore=E128 --exclude=node_modules,$(VENV_DIR)*,dist .)
103+
($(VENV_RUN); flake8 --show-source --max-line-length=120 --ignore=E128 --exclude=node_modules,$(VENV_DIR)*,dist .)
104104

105105
clean: ## Clean up (npm dependencies, downloaded infrastructure code, compiled Java classes)
106106
rm -rf localstack/dashboard/web/node_modules/

‎localstack/config.py

+4-3
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
import os
33
import subprocess
44
import tempfile
5-
from six import iteritems
6-
from localstack.constants import *
75
from os.path import expanduser
6+
from six import iteritems
7+
from localstack.constants import DEFAULT_SERVICE_PORTS, LOCALHOST, PATH_USER_REQUEST
88

99
# randomly inject faults to Kinesis
1010
KINESIS_ERROR_PROBABILITY = float(os.environ.get('KINESIS_ERROR_PROBABILITY', '').strip() or 0.0)
@@ -134,4 +134,5 @@ def service_port(service_key):
134134

135135

136136
# set URL pattern of inbound API gateway
137-
INBOUND_GATEWAY_URL_PATTERN = '%s/restapis/{api_id}/{stage_name}/%s{path}' % (TEST_APIGATEWAY_URL, PATH_USER_REQUEST)
137+
INBOUND_GATEWAY_URL_PATTERN = ('%s/restapis/{api_id}/{stage_name}/%s{path}' %
138+
(TEST_APIGATEWAY_URL, PATH_USER_REQUEST)) # flake8: noqa

0 commit comments

Comments
 (0)