generated from Ramil-cyber/Data-Engineering-template
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Ramil Mammadov
committed
Sep 21, 2024
1 parent
07f136e
commit dd8d95a
Showing
5 changed files
with
1,030 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|
Oops, something went wrong.