diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 000000000..47b80d18e --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,5 @@ +repos: +- repo: https://github.com/psf/black + rev: 22.1.0 + hooks: + - id: black diff --git a/setup.py b/setup.py index 86324fdcd..ff70a35de 100644 --- a/setup.py +++ b/setup.py @@ -132,6 +132,7 @@ setup( "pytest>=3", "sphinx", "sphinx_rtd_theme", + "pre-commit", ] }, include_package_data=True,