qiskit/tools
Matthew Treinish 2eee56616d
Switch to using black for code formatting (#6361)
* make compatible with pylint and pycodestyle

* black config

* flake8 compatible config

* Missing newline

* Add black check to CI and dev requirements

This commit updates the CI configuration and local tox configuration to
leverage black instead of pycodestyle. It adds a check job to ci and the
tox lint job so we can quickly check if black has been run. A tox job
named 'black' is added to run black on all the code in the repo.

* Run black on everything

This commit reformats all the code in the qiskit-terra repository to use
black. It changes no functionality in the project and just adjusts the
code formatting to be consistent and automated. If you are looking at
this commit in the git log you can likely safely ignore any diff from
this commit as it is just the result of running '`black' on the repo
and instead you should look at any commits before or after this for
functional changes.

Co-authored-by: Lev S. Bishop <18673315+levbishop@users.noreply.github.com>
2021-05-05 09:53:39 -04:00
..
find_optional_imports.py Switch to using black for code formatting (#6361) 2021-05-05 09:53:39 -04:00
report_ci_failure.py Switch to using black for code formatting (#6361) 2021-05-05 09:53:39 -04:00
subunit_to_junit.py Switch to using black for code formatting (#6361) 2021-05-05 09:53:39 -04:00
update_fake_backends.py Switch to using black for code formatting (#6361) 2021-05-05 09:53:39 -04:00
verify_headers.py Switch to using black for code formatting (#6361) 2021-05-05 09:53:39 -04:00