Skip to content

Commit

Permalink
Pre-commit hook (#17)
Browse files Browse the repository at this point in the history
Add pre-commit hook to run black formatter
  • Loading branch information
anton-seaice authored Apr 24, 2024
1 parent 1b6837d commit f5d137f
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
10 changes: 10 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -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]
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ requires = [
"setuptools_scm[toml]",
]


[tool.setuptools]
packages = ["esmgrids"]

Expand All @@ -43,6 +42,7 @@ write_to = "esmgrids/_version.py"
devel = [
"flake8",
"black",
"pre-commit"
]
test = [
"pytest",
Expand Down

0 comments on commit f5d137f

Please sign in to comment.