From cea619ad4297871fbf19fef35e22063982fe314a Mon Sep 17 00:00:00 2001 From: Alex Verrico Date: Sun, 30 Aug 2026 11:04:06 +1000 Subject: [PATCH 1/4] Move requirements to pyproject.toml - #295 Add dependencies from requirements.txt into pyproject.toml Add name & version to pyproject.toml Update .github/workflows/ci.yml to install dependencies from pyproject.toml Remove unused requirements.txt Add beeware_.github.egg-info to .gitignore --- .github/workflows/ci.yml | 2 +- .gitignore | 1 + pyproject.toml | 7 +++++++ requirements.txt | 1 - 4 files changed, 9 insertions(+), 2 deletions(-) delete mode 100644 requirements.txt diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c0ec7f59..a6a65054 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -27,7 +27,7 @@ jobs: name: Pre-commit Checks uses: ./.github/workflows/pre-commit-run.yml with: - pre-commit-source: -r requirements.txt + pre-commit-source: -e . test-docs-build-verify: name: Docs Build Verify diff --git a/.gitignore b/.gitignore index 84a511c9..bd13b63e 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ venv .envrc .idea *.pyc +beeware_.github.egg-info diff --git a/pyproject.toml b/pyproject.toml index 4980454a..4164ae27 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,3 +1,10 @@ +[project] +name = "beeware-.github" +version = "2026.8.1" +dependencies = [ + "pre-commit == 4.6.2" +] + [tool.rumdl] exclude = [".github/*.md"] respect-gitignore = true diff --git a/requirements.txt b/requirements.txt deleted file mode 100644 index 63656610..00000000 --- a/requirements.txt +++ /dev/null @@ -1 +0,0 @@ -pre-commit == 4.6.2 From abe2003e5c0cdc326a18a290a623438d48e5db97 Mon Sep 17 00:00:00 2001 From: Alex Verrico Date: Sun, 30 Aug 2026 11:57:39 +1000 Subject: [PATCH 2/4] Use a depeendency group --- .gitignore | 2 +- pyproject.toml | 8 ++------ 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/.gitignore b/.gitignore index bd13b63e..0c7c0b8b 100644 --- a/.gitignore +++ b/.gitignore @@ -2,4 +2,4 @@ venv .envrc .idea *.pyc -beeware_.github.egg-info +UNKNOWN.egg-info diff --git a/pyproject.toml b/pyproject.toml index 4164ae27..54e2bf2f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,9 +1,5 @@ -[project] -name = "beeware-.github" -version = "2026.8.1" -dependencies = [ - "pre-commit == 4.6.2" -] +[dependency-groups] +pre-commit = ["pre-commit == 4.6.2"] [tool.rumdl] exclude = [".github/*.md"] From 51aa110fcb53a9a49d8e8f7a1567826cc1c0a3cf Mon Sep 17 00:00:00 2001 From: Alex Verrico Date: Sun, 30 Aug 2026 11:59:28 +1000 Subject: [PATCH 3/4] Update ci.yml for dependency group --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a6a65054..acb03ac4 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -27,7 +27,7 @@ jobs: name: Pre-commit Checks uses: ./.github/workflows/pre-commit-run.yml with: - pre-commit-source: -e . + pre-commit-source: --group pre-commit . test-docs-build-verify: name: Docs Build Verify From 9394c01a4d544858e2f33849dbefad5811740c24 Mon Sep 17 00:00:00 2001 From: Russell Keith-Magee Date: Sun, 30 Aug 2026 15:07:34 +1000 Subject: [PATCH 4/4] Apply suggestions from code review --- .github/workflows/ci.yml | 2 +- .gitignore | 2 +- pyproject.toml | 4 +++- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index acb03ac4..0a74ddb5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -27,7 +27,7 @@ jobs: name: Pre-commit Checks uses: ./.github/workflows/pre-commit-run.yml with: - pre-commit-source: --group pre-commit . + pre-commit-source: --group pre-commit test-docs-build-verify: name: Docs Build Verify diff --git a/.gitignore b/.gitignore index 0c7c0b8b..06778a72 100644 --- a/.gitignore +++ b/.gitignore @@ -2,4 +2,4 @@ venv .envrc .idea *.pyc -UNKNOWN.egg-info +*.egg-info diff --git a/pyproject.toml b/pyproject.toml index 54e2bf2f..b9b7c02b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,5 +1,7 @@ [dependency-groups] -pre-commit = ["pre-commit == 4.6.2"] +pre-commit = [ + "pre-commit == 4.6.2" +] [tool.rumdl] exclude = [".github/*.md"]