Skip to content

Commit 7e26d8c

Browse files
author
Thiago Perrotta
committed
infra: run flake8 in webdriver/
Bug: web-platform-tests/rfcs#171
1 parent 884acb0 commit 7e26d8c

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

tools/flake8.ini

+2-1
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,15 @@ select = E,W,F,N
1010
# E303: too many blank lines (3)
1111
# E305: expected 2 blank lines after end of function or class
1212
# E402: module level import not at top of file
13+
# E501: line too long
1314
# E731: do not assign a lambda expression, use a def
1415
# W504: line break after binary operator
1516
# W601: .has_key() is deprecated, use ‘in’
1617
# N801: class names should use CapWords convention
1718
# N802: function name should be lowercase
1819
# N806: variable in function should be lowercase
1920
# N818: exception should be named with an Error suffix
20-
ignore = E128,E129,E226,E231,E251,E265,E302,E303,E305,E402,E731,W504,W601,N801,N802,N806,N818
21+
ignore = E128,E129,E226,E231,E251,E265,E302,E303,E305,E402,E501,E731,W504,W601,N801,N802,N806,N818
2122
exclude =
2223
.tox,
2324
third_party,

tools/tox.ini

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ changedir =
1515

1616
commands =
1717
!flake8-!mypy: pytest --cov=tools --cov-report=term {posargs}
18-
flake8: flake8 --append-config={toxinidir}/flake8.ini {posargs}
18+
flake8: flake8 --append-config={toxinidir}/flake8.ini {toxinidir} {toxinidir}/../webdriver {posargs}
1919
mypy: mypy --config-file={toxinidir}/mypy.ini --explicit-package-bases tools
2020

2121
passenv =

0 commit comments

Comments
 (0)