Page MenuHomePhabricator

tests/tools: Enable additional Python flake8 rules for automatic linting
ClosedPublic

Authored by Fabien on Tue, Jul 30, 08:56.

Details

Summary
Enabled rules:

* E242: tab after ','
* E266: too many leading '#' for block comment
* E401: multiple imports on one line
* E402: module level import not at top of file
* E701: multiple statements on one line (colon)
* E901: SyntaxError: invalid syntax
* E902: TokenError: EOF in multi-line string
* F821: undefined name 'Foo'
* W293: blank line contains whitespace
* W606: 'async' and 'await' are reserved keywords starting with Python
3.7

Backport of core PR12987
https://github.com/bitcoin/bitcoin/pull/12987/files

Depends on D3770

Test Plan
./test/functional/test_runner.py interface_rest
arc lint --everything

Diff Detail

Repository
rABC Bitcoin ABC
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.