Skip to content

Commit e91dc57

Browse files
committed
Use python local black/isort
Useful if you forgot to activate your venv
1 parent 12c4f7b commit e91dc57

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

scripts/checkstyle

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,16 @@ set -o errexit
44
set -o nounset
55
set -o pipefail
66

7-
black --check .
8-
isort --check .
9-
flake8
10-
mypy .
7+
python -m black --check .
8+
python -m isort --check .
9+
python -m flake8
10+
python -m mypy .
1111

1212
NOTEBOOKS="./examples/*.ipynb" # ./examples/dev/*.ipynb"
1313
for f in $NOTEBOOKS
1414
do
1515
NB=$(cat $f)
16-
FORMATTED_NB=$(jupyter nbconvert \
16+
FORMATTED_NB=$(python -m jupyter nbconvert \
1717
--clear-output \
1818
--stdout \
1919
--ClearOutputPreprocessor.enabled=True \

scripts/makestyle

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ set -o nounset
55
set -o pipefail
66
set -o xtrace
77

8-
black .
9-
isort .
10-
jupyter nbconvert \
8+
python -m black .
9+
python -m isort .
10+
python -m jupyter nbconvert \
1111
--clear-output \
1212
--inplace \
1313
--ClearOutputPreprocessor.enabled=True \

0 commit comments

Comments
 (0)