Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
Ramil Mammadov committed Sep 21, 2024
1 parent 07f136e commit dd8d95a
Show file tree
Hide file tree
Showing 5 changed files with 1,030 additions and 0 deletions.
29 changes: 29 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
install:
pip install --upgrade pip && pip install -r requirements.txt

format:
black *.py

lint:
ruff check *.py

container-lint:
docker run --rm -i hadolint/hadolint < .devcontainer/Dockerfile

test:
python -m pytest -vv --nbval -cov=my_lib -cov=main test_*.py *.ipynb

all: install format lint container-lint test

generate_and_push:
python main.py
@if [ -n "$$(git status --porcelain)" ]; then \
git config --local user.email "[email protected]"; \
git config --local user.name "GitHub Action"; \
git add . \
git commit -m "Add generated plot and report"; \
git push; \
else \
echo "No changes to commit. Skipping commit and push."; \
fi

Loading

0 comments on commit dd8d95a

Please sign in to comment.