diff --git a/.circleci/config.yml b/.circleci/config.yml index 7aa07b2dc..796a35f21 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -22,12 +22,6 @@ orbs: node: circleci/node@7.0.0 github-cli: circleci/github-cli@2.6.2 slack: circleci/slack@5.1.1 - - - - - - commands: install-lfs: steps: diff --git a/.github/actions/setup-backend/action.yml b/.github/actions/setup-backend/action.yml index 269ee76ed..3c28b6594 100644 --- a/.github/actions/setup-backend/action.yml +++ b/.github/actions/setup-backend/action.yml @@ -9,11 +9,6 @@ inputs: runs: using: "composite" steps: -# - name: ccache -# uses: hendrikmuhs/ccache-action@v1.2 -# with: -# create-symlink: true -# key: ${{ runner.os }} - name: Install UV uses: astral-sh/setup-uv@v5.2 id: setup-uv @@ -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 + diff --git a/.github/workflows/pre-commit.yml b/.github/workflows/pre-commit.yml index 5868c7b18..8dee08692 100644 --- a/.github/workflows/pre-commit.yml +++ b/.github/workflows/pre-commit.yml @@ -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 @@ -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" + diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 7dd855ee5..e14301834 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -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: @@ -25,6 +25,7 @@ repos: - id: biome-check additional_dependencies: ["@biomejs/biome@1.9.4"] 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: @@ -80,16 +81,13 @@ 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 @@ -97,6 +95,7 @@ repos: 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"