Page MenuHomePhabricator

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

Authored by Fabien on Jul 30 2019, 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
Lint Not Applicable
Unit
Tests Not Applicable