Skip to content

Commit

Permalink
clean code
Browse files Browse the repository at this point in the history
  • Loading branch information
Carl GENNETAIS committed Mar 22, 2024
1 parent b49f05f commit 912794e
Show file tree
Hide file tree
Showing 6 changed files with 270 additions and 244 deletions.
7 changes: 7 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,13 @@ clean:
find . -type f -name "*.py[co]" -delete
find . -type d -name "__pycache__" -delete

## Clean notebooks and python fils with black and isort
clean_code:
black .
isort .
nbqa autoflake --remove-all-unused-imports --remove-unused-variables -i notebooks/*.ipynb
nbqa isort notebooks/*.ipynb

## Lint using flake8
lint:
flake8 src
Expand Down
2 changes: 2 additions & 0 deletions dstools-requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,5 @@ jupyterlab-widgets
jupyterlab_code_formatter
jupyterlab_git
lckr_jupyterlab_variableinspector
nbqa
autoflake
Loading

0 comments on commit 912794e

Please sign in to comment.