first commit

This commit is contained in:
dqnid committed 2026-08-24 22:29:50 +02:00
commit 7c175c87bd
7 files changed
+39

No files matched your search

+21
View File
@@ -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
View File
Whitespace-only changes.
+1
View File
@@ -0,0 +1 @@
ruff==0.16.4
+2
View File
@@ -0,0 +1,2 @@
def run():
print("Test")
+5
View File
@@ -0,0 +1,5 @@
import pytest
def test_half():
input = [1,23]
assert input.__len__() == 2
+10
View File
@@ -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()