generated from nogibjj/arko_individual_project_1
-
Notifications
You must be signed in to change notification settings - Fork 0
/
makefile
36 lines (27 loc) · 806 Bytes
/
makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
venv:
python -m venv .venv
install: venv
.venv/bin/pip install --upgrade pip
.venv/bin/pip install -r requirements.txt
format:
.venv/bin/black lib/*.py test*.py main.py
lint:
.venv/bin/ruff lib/*.py test*.py main.py
test-notebook:
.venv/bin/pytest --nbval *.ipynb
test:
.venv/bin/python test*.py
run:
.venv/bin/python main.py
analyze:
.venv/bin/python generate_md.py
@if [ -n "$$(git status --porcelain)" ]; then \
git config --local user.email "action@github.com"; \
git config --local user.name "GitHub Action"; \
if [ -f images/plot.png ]; then git add images/plot.png; fi; \
if [ -f Data_summary.md ]; then git add Data_summary.md; fi; \
git commit -m "Add generated plot and report"; \
git push; \
else \
echo "No changes to commit. Skipping commit and push."; \
fi