This is an automated email from the ASF dual-hosted git repository.
sbp pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tooling-asf-example.git
The following commit(s) were added to refs/heads/main by this push:
new d1ec5f2 Add a pre-commit analysis workflow
d1ec5f2 is described below
commit d1ec5f266d3a0c526be2410d88b3e12cb44468f5
Author: Sean B. Palmer <[email protected]>
AuthorDate: Fri Aug 29 15:04:12 2025 +0100
Add a pre-commit analysis workflow
---
.github/workflows/analyze.yml | 44 +++++++++++++++++++++++++++++++++++++++++++
pyproject.toml | 4 ++--
src/asf/example/__init__.py | 2 +-
uv.lock | 4 ++--
4 files changed, 49 insertions(+), 5 deletions(-)
diff --git a/.github/workflows/analyze.yml b/.github/workflows/analyze.yml
new file mode 100644
index 0000000..9dc90c0
--- /dev/null
+++ b/.github/workflows/analyze.yml
@@ -0,0 +1,44 @@
+name: Analyze using pre-commit hooks
+
+on:
+ pull_request:
+ branches: [main]
+
+permissions:
+ contents: read
+
+env:
+ UV_VERSION: '0.7.12'
+
+jobs:
+ analyze:
+ runs-on: ubuntu-latest
+ strategy:
+ fail-fast: false
+ matrix:
+ python-version:
+ - '3.13'
+ steps:
+ - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 #
v4.2.2
+ with:
+ persist-credentials: false
+ - uses: actions/setup-python@42375524e23c412d93fb67b49958b491fce71c38 #
v5.4.0
+ with:
+ python-version: ${{ matrix.python-version }}
+ - name: Install uv
+ uses: astral-sh/setup-uv@4959332f0f014c5280e7eac8b70c90cb574c9f9b #
v6.6.0
+ with:
+ version: ${{ env.UV_VERSION }}
+
+ - name: Install dependencies
+ run: uv sync --dev
+
+ - name: Cache pre-commit data
+ uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
+ with:
+ path: ~/.cache/pre-commit
+ key: pre-commit-3|${{ env.pythonLocation }}|${{
hashFiles('.pre-commit-config.yaml') }}
+
+ - name: Run pre-commit
+ run: |
+ uv run pre-commit run --show-diff-on-failure --color=always
--all-files
diff --git a/pyproject.toml b/pyproject.toml
index 4e2b0f1..95be609 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -5,7 +5,7 @@ build-backend = "hatchling.build"
[project]
name = "asf-example"
# This is automatically updated
-version = "0.0.1-dev19"
+version = "0.0.1-dev20"
description = "Example package for ASF Tooling"
readme = "README.md"
requires-python = ">=3.13"
@@ -48,4 +48,4 @@ select = [
[tool.uv]
# This is automatically updated
-exclude-newer = "2025-08-29T13:29:53Z"
+exclude-newer = "2025-08-29T14:00:47Z"
diff --git a/src/asf/example/__init__.py b/src/asf/example/__init__.py
index ea8c92c..e7f62f9 100644
--- a/src/asf/example/__init__.py
+++ b/src/asf/example/__init__.py
@@ -37,7 +37,7 @@ import tomlkit.items
PROJECT: Final[str] = "asf-example"
# This is automatically updated
-VERSION: Final[str] = "0.0.1-dev19"
+VERSION: Final[str] = "0.0.1-dev20"
class BumpMode(enum.Enum):
diff --git a/uv.lock b/uv.lock
index d1f7c1b..45433ab 100644
--- a/uv.lock
+++ b/uv.lock
@@ -3,11 +3,11 @@ revision = 3
requires-python = ">=3.13"
[options]
-exclude-newer = "2025-08-29T13:29:53Z"
+exclude-newer = "2025-08-29T14:00:47Z"
[[package]]
name = "asf-example"
-version = "0.0.1.dev19"
+version = "0.0.1.dev20"
source = { editable = "." }
dependencies = [
{ name = "pygit2" },
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]