From db449c5b85d52a24254ae91ad64495af59917f7d Mon Sep 17 00:00:00 2001 From: Wylie Campbell Date: Mon, 26 Oct 2026 20:38:48 +1100 Subject: [PATCH] Add typer to project --- pyproject.toml | 4 +++- src/cs50_final_project/__init__.py | 7 +++++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index ecf26bd..c59082c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -7,7 +7,9 @@ authors = [ { name = "Wylie Campbell", email = "wylie@kitsch.digital" } ] requires-python = ">=3.14" -dependencies = [] +dependencies = [ + "typer>=0.27.3", +] [project.scripts] cs50-final-project = "cs50_final_project:main" diff --git a/src/cs50_final_project/__init__.py b/src/cs50_final_project/__init__.py index cbf447e..fe9c7ed 100644 --- a/src/cs50_final_project/__init__.py +++ b/src/cs50_final_project/__init__.py @@ -1,7 +1,14 @@ + import sqlite3 +import typer + from .helpers import create_db def main() -> None: db = sqlite3.connect("events") + + db.autocommit = True + + create_db(db)