Add black formatter #444
@@ Coverage Diff @@ ## master #444 +/- ## ======================================= Coverage 95.52% 95.52% ======================================= Files 20 20 Lines 2458 2458 Branches 420 420 ======================================= Hits 2348 2348 Misses 48 48 Partials 62 62
Flags with carried forward coverage won't be shown. Click here to find out more.
After thinking about this for a bit, I'm not quite sure this is a step in the right direction.
Of course I'm willing to be convinced otherwise. There are two very good aspects in this PR that I'd like to keep though: specifying a code formatter, and simplifying invocation of flake8 by using a config file.
Flake9 only because flake8 doesn't support pyproject.toml. I thought one configuration to configure all tools would be fine. I think it will be better to document onla that flake8 is used and the options are fixed in a configuration (maybe setup.py).
If we start to use black it should be added to the tests and a reformat of all files is needed one time.
The runtime requirements are configured in
The simplifying of the invocation is a big advantage.