Skip to content

Commit

Permalink
Merge pull request #49 from TheoMF/gepetuto_hooks_#43
Browse files Browse the repository at this point in the history
Gepetuto hooks
  • Loading branch information
nim65s authored Aug 16, 2023
2 parents aa8d79c + fd8cfce commit ce4e76e
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 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
12 changes: 6 additions & 6 deletions .pre-commit-hooks.yaml
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
- id: generate-action
name: use the generate action on the repo
entry: gepetuto -a generate
name: generate-action
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: use the lint action on the repo
entry: gepetuto -a lint
name: lint-action
entry: gepetuto -a lint -f
language: python
description: Prevent from linting errors.
- id: test-action
name: use the test action on the repo
entry: gepetuto -a test
name: test-action
entry: gepetuto -a test -f
language: python
description: Prevent from errors in python scripts.

0 comments on commit ce4e76e

Please sign in to comment.