Skip to content
This repository was archived by the owner on May 26, 2026. It is now read-only.

Commit b7c36de

Browse files
committed
adding var in Makefile
1 parent a1df00e commit b7c36de

1 file changed

Lines changed: 12 additions & 5 deletions

File tree

Makefile

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,36 @@
11
.PHONY: all lint test install environment
22

3+
SRC_DIR = examplepackage
4+
35
lint:
4-
flake8 examplepackage
5-
pydocstyle examplepackage
6+
flake8 $(SRC_DIR)
7+
pydocstyle $(SRC_DIR)
68

79
test:
8-
pytest examplepackage
10+
pytest $(SRC_DIR)
911

1012
install:
1113
pip install -r requirements.dev.txt
1214
pip install -e .
1315

1416
environment:
1517
(\
18+
echo "> Creating venv"; \
1619
python -m venv .venv; \
1720
source .venv/bin/activate; \
21+
echo "> Installing dev requirements"; \
1822
pip install -r requirements.dev.txt; \
23+
echo "> Installing local package in editable mode"; \
1924
pip install -e .; \
20-
python -m ipykernel install --name=examplepackage; \
25+
echo "> Making venv available in jupyter notebooks"; \
26+
python -m ipykernel install --name=$(SRC_DIR); \
2127
jupyter kernelspec list; \
28+
echo "> Installing pre-commit"; \
2229
pre-commit install; \
2330
)
2431

2532
clean:
2633
echo "> Removing virtual environment"
2734
rm -r .venv
2835
echo "> Uninstalling from jupyter"
29-
jupyter kernelspec uninstall examplepackage
36+
jupyter kernelspec uninstall $(SRC_DIR)

0 commit comments

Comments
 (0)