Skip to content

Commit 0df1210

Browse files
committed
add new requirements-dev file and Make init command
1 parent 42d8a15 commit 0df1210

File tree

4 files changed

+11
-6
lines changed

4 files changed

+11
-6
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,7 @@ jobs:
2525
run: |
2626
sudo apt-get install pandoc
2727
python -m pip install -U pip
28-
python -m pip install -r requirements.txt
29-
python -m pip install git+https://github.com/astropy/nbcollection
28+
python -m pip install -r requirements-dev.txt
3029
3130
- name: Execute the notebooks
3231
run: |

.github/workflows/prs.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,7 @@ jobs:
2929
run: |
3030
sudo apt-get install pandoc
3131
python -m pip install -U pip
32-
python -m pip install -r requirements.txt
33-
python -m pip install gitpython
34-
python -m pip install git+https://github.com/astropy/nbcollection
32+
python -m pip install -r requirements-dev.txt
3533
3634
# Run all tutorials if the label is present
3735
- name: Run all tutorials

Makefile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ MODIFIED := $(shell python .github/get_modified_tutorials.py --main-branch $(TUT
66
FLAGS = --flatten --build-path=. -v
77
CONVERTFLAGS = --make-index --preprocessors=nbconvert.preprocessors.ExtractOutputPreprocessor --index-template=templates/index.tpl
88

9+
init:
10+
python -m pip install -U -r requirements-dev.txt
11+
pre-commit install
12+
913
build: envcheck execute convert
1014
buildall: envcheck executeall convertall
1115

@@ -27,4 +31,4 @@ convertall:
2731
clean:
2832
rm -rf _build
2933

30-
.PHONY: all clean execute convert executeall convertall build buildall
34+
.PHONY: init all clean execute convert executeall convertall build buildall

requirements-dev.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
-r requirements.txt
2+
gitpython
3+
git+https://github.com/astropy/nbcollection
4+
pre-commit

0 commit comments

Comments
 (0)