Commit Graph

4 Commits

Author SHA1 Message Date
Joel Brobecker
9c970a4716 format testsuite/tests/* with black, include them in pre-commit checks
While many testcases don't meet flake8 requirements right now
(the most prevalent one is the "*" import, but we also have
expected output strings with lines longer than 88 characters),
we can still improve the testcases using black to format them.
If anything, this will avoid to break many of flake8's rules.

This commit changes the .pre-commit-config.yaml file to remove
the exclusion for testsuite/tests/*. From there, all the files
in testsuite/tests/ were reformatted via:

    $ pre-commit run --all

Change-Id: Ia4957899cabf909f401bb2a242ed7035d89f1df9
2021-06-27 10:07:36 -07:00
Joel Brobecker
8de30044a4 .pre-commit-config.yaml: Update to black version 21.5b1
This commit updates the pre-commit hook to black version 21.5b1.
The hooks where then re-run on all files to update their formatting
to this new version of black.

Change-Id: Ib0866745ef8432cf93380a4d83fa23a479eb4a49
2021-06-15 05:52:32 -07:00
Joel Brobecker
cb041c2ec9 .pre-commit-config.yaml: Switch to flake8 version 3.9.1
Change-Id: I45cdc1e1a254128b889742c536419953035a13aa
2021-06-12 08:43:50 -07:00
Joel Brobecker
b257af6fd2 Add pre-commit configuration, running black and flake8
Change-Id: I63361c4109a25c73ebc1ccec14fdd9b4f57cd945
2021-04-18 15:24:04 +04:00