forked from GazzolaLab/PyElastica
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update makefile for automatic formatting(issue GazzolaLab#92) (Gazzol…
…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
1 parent
1305604
commit 3b0ba97
Showing
3 changed files
with
3 additions
and
279 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |