first commit
This commit is contained in:
commit
7c175c87bd
7 files changed
+39
No files matched your search
@@ -0,0 +1,21 @@
|
|||||||
|
DATE := $(shell date +%_d)
|
||||||
|
|
||||||
|
install:
|
||||||
|
echo "Installing dependencies"
|
||||||
|
pip install --upgrade pip
|
||||||
|
pip install -r requirements.txt
|
||||||
|
|
||||||
|
save:
|
||||||
|
pip freeze > requirements.txt
|
||||||
|
|
||||||
|
run:
|
||||||
|
python src/main.py $(DAY)
|
||||||
|
|
||||||
|
today:
|
||||||
|
python src/main.py $(DATE)
|
||||||
|
|
||||||
|
test:
|
||||||
|
python -m pytest -v
|
||||||
|
|
||||||
|
setup:
|
||||||
|
python -m venv venv
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
ruff==0.16.4
|
||||||
@@ -0,0 +1,2 @@
|
|||||||
|
def run():
|
||||||
|
print("Test")
|
||||||
Binary file not shown.
@@ -0,0 +1,5 @@
|
|||||||
|
import pytest
|
||||||
|
|
||||||
|
def test_half():
|
||||||
|
input = [1,23]
|
||||||
|
assert input.__len__() == 2
|
||||||
+10
@@ -0,0 +1,10 @@
|
|||||||
|
import sys
|
||||||
|
|
||||||
|
if __name__ == "__main__":
|
||||||
|
if sys.argv.__len__() != 2:
|
||||||
|
print("[ERROR] Only the day should be specified")
|
||||||
|
sys.exit(-1)
|
||||||
|
|
||||||
|
module_selected = __import__(f"calendar.day_{sys.argv[1]}", fromlist=[""])
|
||||||
|
module_selected.run()
|
||||||
|
|
||||||
Reference in new issue
Block a user