Skip to content

Commit 7ba2871

Browse files
committed
merged main. updated
2 parents 583a5a8 + 8653d3e commit 7ba2871

58 files changed

Lines changed: 5491 additions & 861 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/meta-labeler.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
runs-on: ubuntu-latest
1818
steps:
1919
- name: Generate Token
20-
uses: actions/create-github-app-token@3ff1caaa28b64c9cc276ce0a02e2ff584f3900c5 # v2.0.2
20+
uses: actions/create-github-app-token@df432ceedc7162793a195dd1713ff69aefc7379e # v2.0.6
2121
id: app-token
2222
with:
2323
app-id: "${{ secrets.BOT_APP_ID }}"

.github/workflows/meta-sync-labels.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
runs-on: ubuntu-latest
1919
steps:
2020
- name: Generate Token
21-
uses: actions/create-github-app-token@3ff1caaa28b64c9cc276ce0a02e2ff584f3900c5 # v2.0.2
21+
uses: actions/create-github-app-token@df432ceedc7162793a195dd1713ff69aefc7379e # v2.0.6
2222
id: app-token
2323
with:
2424
app-id: "${{ secrets.BOT_APP_ID }}"

.github/workflows/pre-commit.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ jobs:
4141
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
4242

4343
- name: Set up Python
44-
uses: actions/setup-python@8d9ed9ac5c53483de85588cdf95a591a75ab9f55 # v5.5.0
44+
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
4545
with:
4646
python-version: ${{ env.PYTHON_VERSION }}
4747

.github/workflows/publish.yaml

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
name: Build and Publish
2+
3+
on:
4+
push:
5+
tags: ["v*"]
6+
7+
jobs:
8+
build-and-publish:
9+
name: Build and Publish
10+
environment: protected
11+
permissions:
12+
contents: read
13+
id-token: write
14+
runs-on: ubuntu-latest
15+
steps:
16+
- name: Checkout code
17+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
18+
19+
- name: Setup Python
20+
uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b
21+
with:
22+
python-version: "3.10"
23+
24+
- name: Install Poetry
25+
uses: abatilo/actions-poetry@e78f54a89cb052fff327414dd9ff010b5d2b4dbd
26+
27+
- name: Configure Poetry
28+
run: |
29+
poetry config virtualenvs.create true --local
30+
poetry config virtualenvs.in-project true --local
31+
32+
- name: Install package
33+
run: poetry install
34+
35+
- name: Validate version
36+
run: |
37+
TAG_VERSION=${GITHUB_REF#refs/tags/v}
38+
POETRY_VERSION=$(poetry version -s)
39+
40+
if [ "$TAG_VERSION" != "$POETRY_VERSION" ]; then
41+
echo "Tag ($TAG_VERSION) doesn't match pyproject.toml ($POETRY_VERSION)"
42+
exit 1
43+
fi
44+
45+
- name: Build package
46+
run: poetry build
47+
48+
- name: Publish to PyPI
49+
uses: pypa/gh-action-pypi-publish@15c56dba361d8335944d31a2ecd17d700fc7bcbc

.github/workflows/renovate.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ jobs:
5252
runs-on: ubuntu-latest
5353
steps:
5454
- name: Generate Token
55-
uses: actions/create-github-app-token@3ff1caaa28b64c9cc276ce0a02e2ff584f3900c5 # v2.0.2
55+
uses: actions/create-github-app-token@df432ceedc7162793a195dd1713ff69aefc7379e # v2.0.6
5656
id: app-token
5757
with:
5858
app-id: "${{ secrets.BOT_APP_ID }}"
@@ -80,7 +80,7 @@ jobs:
8080
GITHUB_TOKEN: "${{ steps.app-token.outputs.token }}"
8181

8282
- name: Renovate
83-
uses: renovatebot/github-action@df489653e39e161d9570cb30c90674f697e16742 # v41.0.19
83+
uses: renovatebot/github-action@e854b273e774bce1ef8cb05f128b8ce8aee2a887 # v42.0.1
8484
with:
8585
configurationFile: "${{ env.RENOVATE_ONBOARDING_CONFIG_FILE_NAME }}"
8686
token: "${{ steps.app-token.outputs.token }}"

.github/workflows/rigging_pr_description.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
fetch-depth: 0 # full history for proper diffing
1919

2020
- name: Set up Python
21-
uses: actions/setup-python@8d9ed9ac5c53483de85588cdf95a591a75ab9f55 # v5.5.0
21+
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
2222
with:
2323
python-version: "3.13"
2424

.github/workflows/semantic-release.yaml

Lines changed: 0 additions & 58 deletions
This file was deleted.

.github/workflows/semgrep.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
name: 🚨 Semgrep Analysis
2+
name: Semgrep Analysis
33
on:
44
merge_group:
55
pull_request:
@@ -28,7 +28,7 @@ permissions:
2828

2929
jobs:
3030
semgrep:
31-
name: 🚨 Semgrep Analysis
31+
name: Semgrep Analysis
3232
runs-on: ubuntu-latest
3333
container:
3434
image: returntocorp/semgrep

.github/workflows/template-sync.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ jobs:
4242
runs-on: ubuntu-latest
4343
steps:
4444
- name: Generate Token
45-
uses: actions/create-github-app-token@3ff1caaa28b64c9cc276ce0a02e2ff584f3900c5 # v2.0.2
45+
uses: actions/create-github-app-token@df432ceedc7162793a195dd1713ff69aefc7379e # v2.0.6
4646
id: app-token
4747
with:
4848
app-id: "${{ secrets.BOT_APP_ID }}"

.github/workflows/test.yaml

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
name: Tests
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
branches: [ main ]
8+
9+
jobs:
10+
python:
11+
name: Python - Lint, Typecheck, Test
12+
13+
strategy:
14+
fail-fast: false
15+
matrix:
16+
python-version: ["3.10", "3.11", "3.12", "3.13"]
17+
18+
runs-on: ubuntu-latest
19+
20+
steps:
21+
- name: Checkout code
22+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
23+
24+
- name: Setup Python ${{ matrix.python-version }}
25+
uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b
26+
with:
27+
python-version: ${{ matrix.python-version }}
28+
29+
- name: Install Poetry
30+
uses: abatilo/actions-poetry@e78f54a89cb052fff327414dd9ff010b5d2b4dbd
31+
32+
- name: Configure Poetry
33+
run: |
34+
poetry config virtualenvs.create true --local
35+
poetry config virtualenvs.in-project true --local
36+
37+
- name: Cache dependencies
38+
uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
39+
with:
40+
path: ./.venv
41+
key: venv-${{ runner.os }}-py${{ matrix.python-version }}-${{ hashFiles('poetry.lock') }}
42+
restore-keys: |
43+
venv-${{ runner.os }}-py${{ matrix.python-version }}-
44+
45+
- name: Install package
46+
run: poetry install --all-extras
47+
48+
- name: Lint
49+
run: poetry run ruff check --output-format=github .
50+
51+
- name: Typecheck
52+
run: poetry run mypy .
53+
54+
- name: Test
55+
run: poetry run pytest

0 commit comments

Comments
 (0)