diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 0000000..6394f57 --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,8 @@ +# See https://pre-commit.com for more information +# See https://pre-commit.com/hooks.html for more hooks +repos: + - repo: https://github.com/psf/black + rev: 24.4.0 + hooks: + - id: black + language_version: python3 diff --git a/pyproject.toml b/pyproject.toml index 592ef96..4e75848 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -26,6 +26,7 @@ write_to = "om3utils/_version.py" devel = [ "flake8", "black", + "pre-commit", ] test = [ "pytest",