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 diff --git a/.github/workflows/python-tests.yml b/.github/workflows/python-tests.yml index 1eb93ca..832c91e 100644 --- a/.github/workflows/python-tests.yml +++ b/.github/workflows/python-tests.yml @@ -12,16 +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: - # - "macos-latest" - # - "windows-latest" - - "ubuntu-latest" + - "${{ needs.set-statics.outputs.linux-version }}" python-version: - "3.11" - "3.12" @@ -36,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 @@ -53,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" @@ -62,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" @@ -81,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" @@ -89,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" 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 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" },