diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 0000000..9b92a6c --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,10 @@ +# See https://pre-commit.com for more information +# See https://pre-commit.com/hooks.html for more hooks +repos: + - repo: local + hooks: + - id: black + name: black + entry: black + language: system + types: [python] \ No newline at end of file diff --git a/pyproject.toml b/pyproject.toml index 0eab91d..5f20e32 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -32,7 +32,6 @@ requires = [ "setuptools_scm[toml]", ] - [tool.setuptools] packages = ["esmgrids"] @@ -43,6 +42,7 @@ write_to = "esmgrids/_version.py" devel = [ "flake8", "black", + "pre-commit" ] test = [ "pytest",