Skip to content

Commit

Permalink
Add git pre-commit hook.
Browse files Browse the repository at this point in the history
  • Loading branch information
micaeljtoliveira committed May 9, 2024
1 parent 2801bb2 commit d00d16f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -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
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ write_to = "om3utils/_version.py"
devel = [
"flake8",
"black",
"pre-commit",
]
test = [
"pytest",
Expand Down

0 comments on commit d00d16f

Please sign in to comment.