Skip to content

Commit

Permalink
Pre-commit hook
Browse files Browse the repository at this point in the history
  • Loading branch information
anton-seaice committed Apr 22, 2024
1 parent 1b6837d commit 5191fb5
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
11 changes: 11 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# 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
args: ['esmgrids', 'test']
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 5191fb5

Please sign in to comment.