Commit graph

4 commits

Author SHA1 Message Date
Griatch
ca341278e9 Ran black on sources 2020-04-12 12:17:06 +02:00
Griatch
db506dc58c Fix typo in makefile 2019-09-28 19:09:38 +02:00
Griatch
c2c7fa311a Format code with black. Add makefile to run fmt/tests 2019-09-28 18:18:11 +02:00
Greg Taylor
ac810054aa Add auto-formatting via black
Introduce black, a Python code formatter. Also a Makefile that
includes two common targets:

* fmt (auto-format the code)
* lint (lint the code and return non-zero if out of spec)

We can re-use the latter in CI.

By introducing a code formatter, we can cut down on stylistic
variations across a now-large codebase. We can also avoid most style
discussions in PR if we just have this thing enforce it for us.
2019-09-22 10:23:28 +02:00