Skip to content

Commit f033152

Browse files
author
Jerjou Cheng
committed
Update flake8-import-order for flake8 v3 compat
1 parent 7bac057 commit f033152

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

nox.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,12 @@
4141
REPO_TOOLS_REQ =\
4242
'git+https://github.com/GoogleCloudPlatform/python-repo-tools.git'
4343

44+
# flake8 3 has some breaking changes that broke flake8-import-order v0.8
45+
FLAKE8_IMPORT_ORDER=(
46+
'git+https://github.com/PyCQA/flake8-import-order.git'
47+
'@f0166a7'
48+
'#egg=flake8-import-order')
49+
4450
# Arguments used for every invocation of py.test.
4551
COMMON_PYTEST_ARGS = [
4652
'-x', '--no-success-flaky-report', '--cov', '--cov-config',
@@ -243,7 +249,7 @@ def session_travis(session, subsession):
243249

244250
def session_lint(session):
245251
"""Lints each sample."""
246-
session.install('flake8', 'flake8-import-order')
252+
session.install('flake8', FLAKE8_IMPORT_ORDER)
247253
session.run(
248254
'flake8', '--builtin=gettext', '--max-complexity=10',
249255
'--import-order-style=google',

0 commit comments

Comments
 (0)