From 08e4f66db5cbbc7ea819964d4353524d2fe6a423 Mon Sep 17 00:00:00 2001 From: AzulGarza Date: Fri, 25 Jul 2025 18:38:15 -0700 Subject: [PATCH 1/5] feat: run actions when pushing to main --- .github/workflows/ci.yaml | 2 ++ .github/workflows/lint.yaml | 2 ++ 2 files changed, 4 insertions(+) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 2ec35b7..c93ed05 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -1,6 +1,8 @@ name: CI on: + push: + branches: [main] pull_request: workflow_dispatch: diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint.yaml index 4e7418a..fde6abe 100644 --- a/.github/workflows/lint.yaml +++ b/.github/workflows/lint.yaml @@ -1,6 +1,8 @@ name: lint and style checks on: + push: + branches: [main] pull_request: workflow_dispatch: From 3e62566a27adbd8c62179a1dde920804aa67bee6 Mon Sep 17 00:00:00 2001 From: AzulGarza Date: Fri, 25 Jul 2025 18:38:28 -0700 Subject: [PATCH 2/5] fix: add missing requests types --- .pre-commit-config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 1a86b8f..2998b06 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -11,7 +11,7 @@ repos: hooks: - id: mypy args: [--ignore-missing-imports, --check-untyped-defs] - additional_dependencies: [types-PyYAML] + additional_dependencies: [types-PyYAML, types-requests] - repo: https://github.com/pappasam/toml-sort rev: v0.24.2 hooks: From 8a9bb6916587a9bc8bdf7227cf9a1b6cbe9d35b1 Mon Sep 17 00:00:00 2001 From: AzulGarza Date: Fri, 25 Jul 2025 18:38:37 -0700 Subject: [PATCH 3/5] feat: update pyproject structure --- pyproject.toml | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index fa81333..72a5587 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,12 +1,14 @@ [build-system] -requires = ["setuptools >= 61.0", "wheel"] -build-backend = "setuptools.build_meta" +requires = ["hatchling"] +build-backend = "hatchling.build" [project] name = "python_project" version = "0.0.1" -requires-python = ">=3.8" -dependencies = [ +requires-python = ">=3.10" + +[dependency-groups] +dev = [ "pre-commit", "pytest", "pytest-cov", @@ -25,6 +27,9 @@ omit = [ fail_under = 80 show_missing = true +[tool.hatch.metadata] +allow-direct-references = true + [tool.mypy] disable_error_code = ["no-redef"] # for fasthtml @@ -50,5 +55,3 @@ ignore = [ known-local-folder = ["src"] no-lines-before = ["local-folder"] -[tool.setuptools] -packages = ["src"] From 2ba3fdd8c4a5aff1e8d0b529c2473dc7f6a6d23f Mon Sep 17 00:00:00 2001 From: AzulGarza Date: Fri, 25 Jul 2025 18:38:51 -0700 Subject: [PATCH 4/5] feat: add default python version --- .python-version | 1 + 1 file changed, 1 insertion(+) create mode 100644 .python-version diff --git a/.python-version b/.python-version new file mode 100644 index 0000000..2c07333 --- /dev/null +++ b/.python-version @@ -0,0 +1 @@ +3.11 From 5bc201ee17fb4fb8fc725fb71bdbbd19d59f5b7d Mon Sep 17 00:00:00 2001 From: AzulGarza Date: Fri, 25 Jul 2025 18:41:38 -0700 Subject: [PATCH 5/5] fix: add target wheel --- pyproject.toml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pyproject.toml b/pyproject.toml index 72a5587..89bb585 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -27,6 +27,9 @@ omit = [ fail_under = 80 show_missing = true +[tool.hatch.build.targets.wheel] +packages = ["src"] + [tool.hatch.metadata] allow-direct-references = true