Skip to content

Commit

Permalink
use gepetuto in pre-commit hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
TheoMF committed Aug 16, 2023
1 parent fcff02c commit fd8cfce
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
6 changes: 6 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
repos:
- repo: https://github.com/Gepetto/gepetuto
rev: v1.0.0
hooks:
- id: generate-action
- id: lint-action
- id: test-action
- repo: https://github.com/PyCQA/isort
rev: 5.12.0
hooks:
Expand Down
6 changes: 3 additions & 3 deletions .pre-commit-hooks.yaml
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
- id: generate-action
name: generate-action
entry: gepetuto -a generate
entry: gepetuto -a generate -f
language: python
description: Add snippet code in generated folder, add them in .ipynb file if written to load them.
- id: lint-action
name: lint-action
entry: gepetuto -a lint
entry: gepetuto -a lint -f
language: python
description: Prevent from linting errors.
- id: test-action
name: test-action
entry: gepetuto -a test
entry: gepetuto -a test -f
language: python
description: Prevent from errors in python scripts.

0 comments on commit fd8cfce

Please sign in to comment.