Skip to content

Commit

Permalink
Update flake8-import-order for flake8 v3 compat
Browse files Browse the repository at this point in the history
  • Loading branch information
Jerjou Cheng committed Jul 25, 2016
1 parent 7bac057 commit f033152
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion nox.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,12 @@
REPO_TOOLS_REQ =\
'git+https://github.com/GoogleCloudPlatform/python-repo-tools.git'

# flake8 3 has some breaking changes that broke flake8-import-order v0.8
FLAKE8_IMPORT_ORDER=(
'git+https://github.com/PyCQA/flake8-import-order.git'
'@f0166a7'
'#egg=flake8-import-order')

# Arguments used for every invocation of py.test.
COMMON_PYTEST_ARGS = [
'-x', '--no-success-flaky-report', '--cov', '--cov-config',
Expand Down Expand Up @@ -243,7 +249,7 @@ def session_travis(session, subsession):

def session_lint(session):
"""Lints each sample."""
session.install('flake8', 'flake8-import-order')
session.install('flake8', FLAKE8_IMPORT_ORDER)
session.run(
'flake8', '--builtin=gettext', '--max-complexity=10',
'--import-order-style=google',
Expand Down

0 comments on commit f033152

Please sign in to comment.