Skip to content

Commit af4af7d

Browse files
committed
Force E226 linting in invoke lint
E226 means "missing whitespace around arithmetic operator".
1 parent 4bb921c commit af4af7d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tasks.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,9 +225,10 @@ def test():
225225
@invoke.task
226226
def lint():
227227
"""Lint the source code"""
228+
FLAKE8_OPTIONS = "--select=E226"
228229
env = create_env("lint", requirements=True)
229230

230-
invoke.run("%s/bin/flake8 %s" % (env, PROJECT))
231+
invoke.run("%s/bin/flake8 %s %s" % (env, FLAKE8_OPTIONS, PROJECT))
231232

232233

233234
#

0 commit comments

Comments
 (0)