Skip to content

Commit 6a6179e

Browse files
committed
Ignore I202 to accommodate region tags.
1 parent 5723d42 commit 6a6179e

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

nox.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,10 +135,13 @@ def _setup_appengine_sdk(session):
135135

136136
PYTEST_COMMON_ARGS = []
137137

138+
# Ignore I202 "Additional newline in a section of imports." to accommodate
139+
# region tags in import blocks.
138140
FLAKE8_COMMON_ARGS = [
139141
'--show-source', '--builtin', 'gettext', '--max-complexity', '20',
140-
'--import-order-style', 'google',
141-
'--exclude', '.nox,.cache,env,lib,generated_pb2,*_pb2.py,*_pb2_grpc.py',
142+
'--import-order-style', 'google', '--exclude',
143+
'.nox,.cache,env,lib,generated_pb2,*_pb2.py,*_pb2_grpc.py',
144+
'--ignore=I202',
142145
]
143146

144147

0 commit comments

Comments
 (0)