Skip to content

Commit

Permalink
pre-commit config
Browse files Browse the repository at this point in the history
  • Loading branch information
astanziola committed Apr 11, 2022
1 parent 5cd9bb0 commit 927a6b5
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Matlab files
*.mat
*.asv
*.asv

# Environment
.venv
17 changes: 17 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: 'v4.1.0'
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- repo: https://github.com/hadialqattan/pycln
rev: 'v1.1.0'
hooks:
- id: pycln
args: [--config=pyproject.toml]
- repo: https://github.com/pycqa/isort
rev: '5.10.1'
hooks:
- id: isort
files: "\\.(py)$"
args: [--settings-path=pyproject.toml]

0 comments on commit 927a6b5

Please sign in to comment.