Skip to content

Commit

Permalink
Update makefile for automatic formatting(issue GazzolaLab#92) (Gazzol…
Browse files Browse the repository at this point in the history
…aLab#96)

* update on makefile for formatting
    * remove pylint, isort code and change the folders for black and flake8 formatting.
    * remove: apt.txt file
    * remove: .pylintd
  • Loading branch information
armantekinalp authored Dec 21, 2021
1 parent 1305604 commit 3b0ba97
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 279 deletions.
252 changes: 0 additions & 252 deletions .pylintrc

This file was deleted.

29 changes: 3 additions & 26 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,40 +1,17 @@
black:
@black --version

@black elastica tests examples
@black elastica tests


black_check:
@black --version
@find . -maxdepth 3 -name '*.py'\
| while read -r src; do black --check "$$src"; done

isort:
@isort --version
@isort --recursive .

isort_check:
@isort --version
@isort --recursive --check-only

flake8:
@flake8 --version
@flake8 elastica tests

@flake8 elastica tests examples


clean_notebooks:
# This finds Ipython jupyter notebooks in the code
# base and cleans only its output results. This
# results in
@jupyter nbconvert --version
@find . -maxdepth 3 -name '*.ipynb'\
| while read -r src; do jupyter nbconvert --ClearOutputPreprocessor.enabled=True --inplace "$$src"; done

pylint:
@pylint --version
@find . -maxdepth 3 -name '*.py'\
| while read -r src; do pylint -rn "$$src"; done

all:black pylint flake8
all:black flake8
ci:black_check flake8
1 change: 0 additions & 1 deletion apt.txt

This file was deleted.

0 comments on commit 3b0ba97

Please sign in to comment.