Skip to content

Commit

Permalink
Merge pull request #86 from flferretti/feature/pre-commit
Browse files Browse the repository at this point in the history
Add pre-commit configuration
  • Loading branch information
flferretti authored Feb 16, 2024
2 parents 0ea14af + a78d1d6 commit c749a3a
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: check-ast
- id: check-merge-conflict
- id: check-yaml
- id: end-of-file-fixer
- id: trailing-whitespace

- repo: https://github.com/psf/black-pre-commit-mirror
rev: 24.2.0
hooks:
- id: black
language_version: python3.11

- repo: https://github.com/pycqa/isort
rev: 5.13.2
hooks:
- id: isort
name: isort (python)
1 change: 1 addition & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ where = src
style =
black[jupyter]
isort
pre-commit
testing =
idyntree
pytest >= 6.0
Expand Down

0 comments on commit c749a3a

Please sign in to comment.