From d25bfa7d6dc0eabf1bd3f7591931da7bde075055 Mon Sep 17 00:00:00 2001 From: Preocts Date: Fri, 19 Jun 2026 23:25:47 -0400 Subject: [PATCH 1/5] Remove unused file --- .git-blame-ignore-revs | 9 --------- 1 file changed, 9 deletions(-) delete mode 100644 .git-blame-ignore-revs diff --git a/.git-blame-ignore-revs b/.git-blame-ignore-revs deleted file mode 100644 index 4f73c01..0000000 --- a/.git-blame-ignore-revs +++ /dev/null @@ -1,9 +0,0 @@ -# This file allows you to define specific revisions to ignore while looking a blames -# Single file ignore: -# $ git blame important.py --ignore-revs-file .git-blame-ignore-revs -# Set revision ignore file in local/global git config -# $ git config blame.ignoreRevsFile .git-blame-ignore-revs -# -# -# Corrected import orders after adjusting pre-commit reorder-python-imports cli args -34379bd717a055364758135b7579c7ba2d9fdcce From 911542ed0dcd20d348537b9b4de6c8cee2edcee0 Mon Sep 17 00:00:00 2001 From: Preocts Date: Fri, 19 Jun 2026 23:26:08 -0400 Subject: [PATCH 2/5] Pin build backend, remove extra fields --- init_template.py | 1 - pyproject.toml | 12 ++---------- 2 files changed, 2 insertions(+), 11 deletions(-) diff --git a/init_template.py b/init_template.py index 2b133e3..7be0190 100644 --- a/init_template.py +++ b/init_template.py @@ -30,7 +30,6 @@ class ProjectData: name: str = "module-name" module: str = "module_name" description: str = "Module Description" - author_email: str = "yourname@email.invalid" author_name: str = "[YOUR NAME]" org_name: str = "[ORG NAME]" repo_name: str = "[REPO NAME]" diff --git a/pyproject.toml b/pyproject.toml index aeac756..edadf77 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,24 +1,19 @@ [build-system] -requires = ["hatchling", "hatch-vcs"] +requires = ["hatchling==1.30.1"] build-backend = "hatchling.build" [project] name = "module-name" +version = "0.0.1" requires-python = ">=3.11" description = "Module Description" readme = "README.md" license = "MIT" -authors = [ - { email = "yourname@email.invalid", name = "[YOUR NAME]" }, -] -maintainers = [] -keywords = [] classifiers = [ "Programming Language :: Python :: 3", "Programming Language :: Python :: 3 :: Only", "Programming Language :: Python :: Implementation :: CPython", ] -dynamic = ["version"] dependencies = [ "requests>=2.34.2", ] @@ -45,9 +40,6 @@ homepage = "https://github.com/[ORG NAME]/[REPO NAME]" # [project.scripts] # python-src-example = "module_name.sample:main" -[tool.hatch.version] -source = "vcs" - [tool.black] line-length = 100 From 81ba63a8579f37d2e8818d7c3cba6bdd1fcf7196 Mon Sep 17 00:00:00 2001 From: Preocts Date: Fri, 19 Jun 2026 23:26:24 -0400 Subject: [PATCH 3/5] pin to ubunut 26.04 LTS --- .github/workflows/python-tests.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/python-tests.yml b/.github/workflows/python-tests.yml index 1eb93ca..d552973 100644 --- a/.github/workflows/python-tests.yml +++ b/.github/workflows/python-tests.yml @@ -19,9 +19,7 @@ jobs: fail-fast: false matrix: os: - # - "macos-latest" - # - "windows-latest" - - "ubuntu-latest" + - "ubuntu-26.04" python-version: - "3.11" - "3.12" From eb03fa85ac1f3ab079a8c8c5b595d84c46045884 Mon Sep 17 00:00:00 2001 From: Preocts Date: Fri, 19 Jun 2026 23:33:14 -0400 Subject: [PATCH 4/5] relock --- uv.lock | 1 + 1 file changed, 1 insertion(+) diff --git a/uv.lock b/uv.lock index 82e944b..29e0456 100644 --- a/uv.lock +++ b/uv.lock @@ -435,6 +435,7 @@ wheels = [ [[package]] name = "module-name" +version = "0.0.1" source = { editable = "." } dependencies = [ { name = "requests" }, From 649f2921b3848fff680ef0d53988e686fdc7ea9a Mon Sep 17 00:00:00 2001 From: Preocts Date: Fri, 19 Jun 2026 23:44:59 -0400 Subject: [PATCH 5/5] pin linux and uv versions --- .github/workflows/python-tests.yml | 27 ++++++++++++++++++++------- 1 file changed, 20 insertions(+), 7 deletions(-) diff --git a/.github/workflows/python-tests.yml b/.github/workflows/python-tests.yml index d552973..832c91e 100644 --- a/.github/workflows/python-tests.yml +++ b/.github/workflows/python-tests.yml @@ -12,14 +12,26 @@ on: - "main" jobs: + set-statics: + name: "Set static values" + runs-on: "ubuntu-slim" + outputs: + linux-version: "ubuntu-26.04" + uv-version: "0.11.23" + + steps: + - name: "Set Statics" + run: echo "" + run-tests-and-coverage: name: "Run nox for tests and coverage" + needs: "set-statics" runs-on: "${{ matrix.os }}" strategy: fail-fast: false matrix: os: - - "ubuntu-26.04" + - "${{ needs.set-statics.outputs.linux-version }}" python-version: - "3.11" - "3.12" @@ -34,7 +46,7 @@ jobs: - name: "Install the latest version of uv" uses: "astral-sh/setup-uv@08807647e7069bb48b6ef5acd8ec9567f424441b" with: - version: "latest" + version: "${{ needs.set-statics.outputs.uv-version }}" python-version: "${{ matrix.python-version }}" enable-cache: true @@ -51,8 +63,8 @@ jobs: coverage-compile: name: "coverage compile" - needs: "run-tests-and-coverage" - runs-on: "ubuntu-latest" + needs: ["set-statics", "run-tests-and-coverage"] + runs-on: "${{ needs.set-statics.outputs.linux-version }}" steps: - name: "Repo checkout" uses: "actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd" @@ -60,7 +72,7 @@ jobs: - name: "Install the latest version of uv" uses: "astral-sh/setup-uv@08807647e7069bb48b6ef5acd8ec9567f424441b" with: - version: "latest" + version: "${{ needs.set-statics.outputs.uv-version }}" enable-cache: true - name: "Download coverage artifacts" @@ -79,7 +91,8 @@ jobs: linters-and-formatters: name: "linters and formatters" - runs-on: "ubuntu-latest" + needs: "set-statics" + runs-on: "${{ needs.set-statics.outputs.linux-version }}" steps: - name: "Repo checkout" uses: "actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd" @@ -87,7 +100,7 @@ jobs: - name: "Install the latest version of uv" uses: "astral-sh/setup-uv@08807647e7069bb48b6ef5acd8ec9567f424441b" with: - version: "latest" + version: "${{ needs.set-statics.outputs.uv-version }}" enable-cache: true - name: "Run linters and formatters"