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-releases-client.git
The following commit(s) were added to refs/heads/main by this push:
new 16df03b Add a pre-commit analysis workflow
16df03b is described below
commit 16df03b0d5d2e5719327c3b22df38a933e113304
Author: Sean B. Palmer <[email protected]>
AuthorDate: Fri Aug 29 15:21:44 2025 +0100
Add a pre-commit analysis workflow
---
.github/workflows/analyze.yml | 44 +++++++++++++++++++++++++++++++++++++++++++
pyproject.toml | 4 ++--
uv.lock | 4 ++--
3 files changed, 48 insertions(+), 4 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 d86ad33..3de33c9 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -11,7 +11,7 @@ build-backend = "hatchling.build"
[project]
name = "apache-trusted-releases"
-version = "0.20250829.1412"
+version = "0.20250829.1421"
description = "ATR CLI and Python API"
readme = "README.md"
requires-python = ">=3.13"
@@ -79,4 +79,4 @@ filterwarnings = [
]
[tool.uv]
-exclude-newer = "2025-08-29T14:12:00Z"
+exclude-newer = "2025-08-29T14:21:00Z"
diff --git a/uv.lock b/uv.lock
index e755aab..6f5b5a6 100644
--- a/uv.lock
+++ b/uv.lock
@@ -3,7 +3,7 @@ revision = 3
requires-python = ">=3.13"
[options]
-exclude-newer = "2025-08-29T14:12:00Z"
+exclude-newer = "2025-08-29T14:21:00Z"
[[package]]
name = "aiohappyeyeballs"
@@ -84,7 +84,7 @@ wheels = [
[[package]]
name = "apache-trusted-releases"
-version = "0.20250829.1412"
+version = "0.20250829.1421"
source = { editable = "." }
dependencies = [
{ name = "aiohttp" },
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]