Skip to content

Commit

Permalink
Add precommit
Browse files Browse the repository at this point in the history
  • Loading branch information
lbesnard committed Oct 16, 2024
1 parent 24ff4ba commit 096529a
Show file tree
Hide file tree
Showing 4 changed files with 1,233 additions and 146 deletions.
30 changes: 30 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
default_install_hook_types:
- pre-commit
- commit-msg
- pre-push

repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.3.0
hooks:
- id: end-of-file-fixer
- id: trailing-whitespace
- id: check-toml

- repo: https://github.com/psf/black
rev: 22.10.0
hooks:
- id: black
#exclude: ^aodn_cloud_optimised/bin/create_aws_registry_dataset.py$ # issue with black!

- repo: https://github.com/python-poetry/poetry
rev: '1.8.3'
hooks:
- id: poetry-check
args: ["--lock", "--quiet"] # Add --quiet to run poetry-check quietly
verbose: false
- id: poetry-lock
args: ["--no-update"]
verbose: true
- id: poetry-install
args: ["--quiet"]
Loading

0 comments on commit 096529a

Please sign in to comment.