diff --git a/CHANGES.rst b/CHANGES.rst index cdd2071..a15e1c7 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -14,7 +14,10 @@ New features: Bug fixes: -- *add item here* +- Black code style: + + - Format code with black (pure defaults). + - Add pre-commit-hook. 0.3.9 (2019-03-02) diff --git a/buildout.cfg b/buildout.cfg index f4269b1..021a662 100644 --- a/buildout.cfg +++ b/buildout.cfg @@ -2,11 +2,21 @@ develop = . parts = devpython test +[buildout:python3] +parts += + pre-commit + [devpython] recipe = zc.recipe.egg interpreter = devpython eggs = z3c.autoinclude[test] +[pre-commit:python3] +recipe = plone.recipe.command +command = + pip install pre-commit + pre-commit install + [test] recipe = zc.recipe.testrunner eggs = z3c.autoinclude[test]