Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,6 @@ orbs:
node: circleci/[email protected]
github-cli: circleci/[email protected]
slack: circleci/[email protected]






commands:
install-lfs:
steps:
Expand Down
17 changes: 4 additions & 13 deletions .github/actions/setup-backend/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,6 @@ inputs:
runs:
using: "composite"
steps:
# - name: ccache
# uses: hendrikmuhs/[email protected]
# with:
# create-symlink: true
# key: ${{ runner.os }}
- name: Install UV
uses: astral-sh/[email protected]
id: setup-uv
Expand All @@ -22,19 +17,15 @@ runs:
prune-cache: false
python-version: ${{ inputs.python-version }}
version: '0.5.20'
cache-suffix: ${{inputs.python-version}}
cache-suffix: ${{ inputs.python-version }}

- name: Install dependencies
shell: bash
run: |
uv sync --frozen --all-extras

- name: Install codecov
shell: bash
run: |
uv tool install codecov-cli --python 3.10
# - name: Configure AWS Credentials
# if: env.skip == '1'
# uses: aws-actions/configure-aws-credentials@v2
# with:
# aws-access-key-id: ${{ inputs.aws-access-key-id }}
# aws-secret-access-key: ${{ inputs.aws-secret-access-key }}
# aws-region: us-west-1

13 changes: 7 additions & 6 deletions .github/workflows/pre-commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ jobs:
repository: ${{ github.event.pull_request.head.repo.full_name }}
ref: ${{ github.event.pull_request.head.ref }}
token: ${{ secrets.REPO_SCOPED_TOKEN }}
lfs: true
ssh-key: ${{ secrets.SSH_KEY }}

- name: Setup backend
uses: ./.github/actions/setup-backend
Expand All @@ -38,9 +40,8 @@ jobs:
- run: uv run --frozen pre-commit run --show-diff-on-failure --color=always --all-files --source ${{ github.event.pull_request.base.sha }} --origin ${{github.event.pull_request.head.sha }} --show-diff-on-failure --color=always
shell: bash

# TODO: add back in
# - uses: stefanzweifel/git-auto-commit-action@v5
# # Always commit changes even if pre-commit failed
# if: always()
# with:
# commit_message: "Automated pre-commit update"
- uses: stefanzweifel/git-auto-commit-action@v5
if: always()
with:
commit_message: "Automated pre-commit update"

9 changes: 4 additions & 5 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ default_language_version:
python: python3.12
fail_fast: true
repos:

- repo: https://github.com/ComPWA/taplo-pre-commit
rev: v0.9.3
hooks:
- id: taplo-format

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.9.4
hooks:
Expand All @@ -25,6 +25,7 @@ repos:
- id: biome-check
additional_dependencies: ["@biomejs/[email protected]"]
exclude: (src/codemods/eval)|(tests/unit/skills/snapshots)|(tests/unit/codegen/sdk/output)|(tests/integration/verified_codemods)|(docs/samples)

- repo: https://github.com/MarcoGorelli/cython-lint
rev: v0.16.6
hooks:
Expand Down Expand Up @@ -80,23 +81,21 @@ repos:
rev: 39.158.1
hooks:
- id: renovate-config-validator

- repo: https://github.com/astral-sh/uv-pre-commit
rev: "0.5.26"
hooks:
- id: uv-sync
args: ["--frozen", "--all-packages", "--all-extras"]

- repo: https://github.com/zahorniak/pre-commit-circleci.git
rev: v1.1.0
hooks:
- id: circleci_validate
- repo: "local"
hooks:
- id: disallowed-words-check
name: Check for disallowed words
entry: scripts/disallowed-words-check.sh
language: script
files: '' # Check all files

- id: generate-runner-imports
name: Generate Runner Imports
entry: bash -c "uv run --frozen python -m codegen.gscli.cli generate runner-imports src/codegen/shared/compilation/function_imports.py"
Expand Down
Loading