Skip to content

Commit

Permalink
add pre commit hook
Browse files Browse the repository at this point in the history
  • Loading branch information
louisabraham committed Aug 25, 2024
1 parent 53e1116 commit 6d69d54
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 1 deletion.
26 changes: 26 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
repos:
- repo: local
hooks:
- id: black
name: Black Formatter
entry: black .
language: system
types: [python]

- id: isort
name: isort
entry: isort --profile=black .
language: system
types: [python]

- id: make-docs
name: Generate Docs
entry: make docs
language: system
pass_filenames: false

- id: add-docs
name: Stage Docs
entry: git add docs/api/
language: system
pass_filenames: false
1 change: 0 additions & 1 deletion experiments/data_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
# https://github.com/mfbalin/Concrete-Autoencoders/blob/master/experiments/generate_comparison_figures.py



def load_mice(one_hot=False):
filling_value = -100000
X = np.genfromtxt(
Expand Down
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ def read(fname):
],
extras_require={
"dev": [
"pre-commit",
"sphinx",
"black",
]
Expand Down

0 comments on commit 6d69d54

Please sign in to comment.