HomePhabricator

[lint] replace autopep8 with black (test/functional/abc-*)

Description

[lint] replace autopep8 with black (test/functional/abc-*)

Summary:
Add a new linter to run black on python files, and start applying it to some files. Remove these files from autopep8. The end goal is to entirely remove autopep8.

Some doc about black:

The --experimental-string-processing makes black split long strings into multiple lines. This seems important to me as not setting it would do the opposite: put the strings we already split back on a single line.

The flake8 E203 error code is incompatible with black, and not PEP8 compliant, so exclude it.

Test Plan:
arc lint -- test/functional

test/functional/test_runner.py abc-*

Reviewers: #bitcoin_abc, Fabien

Reviewed By: #bitcoin_abc, Fabien

Subscribers: Fabien

Differential Revision: https://reviews.bitcoinabc.org/D13876

Details

Provenance
PiRKAuthored on May 10 2023, 08:33
PiRKPushed on May 10 2023, 13:31
Reviewer
Restricted Project
Differential Revision
D13876: [lint] replace autopep8 with black (test/functional/abc-*)
Parents
rABC9231451954b8: Remove Makefile
Branches
Unknown
Tags
Unknown