From 4640422b6142f3524a25572bc4e23cb07cfd4048 Mon Sep 17 00:00:00 2001 From: Paulus Schoutsen Date: Wed, 31 Jul 2019 15:49:08 -0700 Subject: [PATCH] Add blog post for black --- website/blog/2019-07-31-black.md | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 website/blog/2019-07-31-black.md diff --git a/website/blog/2019-07-31-black.md b/website/blog/2019-07-31-black.md new file mode 100644 index 00000000..cd043c47 --- /dev/null +++ b/website/blog/2019-07-31-black.md @@ -0,0 +1,22 @@ +--- +author: Paulus Schoutsen +authorURL: https://twitter.com/balloob +authorImageURL: /img/profile/paulus.jpg +authorTwitter: balloob +title: Adopting Black +--- + +Today we have officially adopted Black. All code has been formatted with Black and all future contributions will be checked to make sure that they are using Black. + +As part of adopting Black, all style checks in flake8 and pylint have been disabled. + +To make sure that all files are Black when you commit your changes, we are using [`pre-commit`](https://pre-commit.com/). The hook is automatically installed for new dev environments (as part of `script/setup`). + +If you have an existing developer installation, please run: + +``` +pip install pre-commit +pre-commit install +``` + +`pre-commit` does not change your files, but merely confirms that the changed files are formatted by Black. We suggest that you set up your editor to automatically format files with Black when you hit save. Instructions for various editors can be found [here](https://github.com/psf/black#editor-integration).