Skip to content
Merged
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
5 changes: 3 additions & 2 deletions .github/workflows/autofix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,13 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with: { fetch-depth: 0, filter: "blob:none", persist-credentials: false }
with:
{ fetch-depth: 0, filter: "blob:none", persist-credentials: false }
- uses: astral-sh/setup-uv@v10.3.3
with:
enable-cache: true
- run: uv tool install hatch
- name: Run pre-commit hooks
run: uvx prek run --all-files --show-diff-on-failure --color=always
- uses: autofix-ci/action@v1.3.4
if: '!cancelled()'
if: "!cancelled()"
6 changes: 3 additions & 3 deletions .github/workflows/ci-gpu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ jobs:
needs: check
permissions:
contents: read
id-token: write # for codecov OIDC
pull-requests: write # for removing the label
id-token: write # for codecov OIDC
pull-requests: write # for removing the label
runs-on: "cirun-aws-gpu--${{ github.run_id }}"
timeout-minutes: 30
steps:
Expand All @@ -50,7 +50,7 @@ jobs:
python-version: "3.13"
- uses: astral-sh/setup-uv@v10.3.3
with:
enable-cache: true # "auto" is `false` on non-GitHub runners
enable-cache: true # "auto" is `false` on non-GitHub runners
- name: Install package
run: uv pip install --system --group=test -e .[full] cupy-cuda13x --extra-index-url=https://pypi.nvidia.com --index-strategy=unsafe-best-match
- name: List installed packages
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ jobs:
name: Tests
needs: get-environments
permissions:
id-token: write # for codecov OIDC
id-token: write # for codecov OIDC
runs-on: ${{ matrix.os }}
strategy:
matrix:
Expand Down Expand Up @@ -81,19 +81,19 @@ jobs:
bench:
name: CPU Benchmarks
permissions:
id-token: write # for codspeed OIDC
id-token: write # for codspeed OIDC
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
with: { fetch-depth: 0, filter: "blob:none" }
- uses: actions/setup-python@v7.1.0
with:
python-version: '3.14'
python-version: "3.14"
- uses: astral-sh/setup-uv@v10.3.3
- run: uv pip install --system --group=test -e .[full]
- uses: CodSpeedHQ/action@v5.6.0
env:
OMP_WAIT_POLICY: passive # spinning omp barriers make instruction counts noisy
OMP_WAIT_POLICY: passive # spinning omp barriers make instruction counts noisy
with:
mode: simulation
run: pytest -m benchmark --codspeed -n auto
Expand All @@ -105,7 +105,7 @@ jobs:
with: { fetch-depth: 0, filter: "blob:none" }
- uses: actions/setup-python@v7.1.0
with:
python-version: '3.14'
python-version: "3.14"
- uses: astral-sh/setup-uv@v10.3.3
- run: uv pip install --system -e .
- run: python -c 'import fast_array_utils as fau; print(fau.__all__)'
Expand Down
74 changes: 37 additions & 37 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,38 +1,38 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
- id: end-of-file-fixer
groups: [format]
- id: trailing-whitespace
groups: [format]
- id: no-commit-to-branch
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.17.2
hooks:
- id: ruff-check
args: [--fix, --exit-non-zero-on-fix]
- id: ruff-check
args: [--preview, --select=CPY]
- id: ruff-format
groups: [format]
- repo: https://github.com/tox-dev/pyproject-fmt
rev: v2.30.3
hooks:
- id: pyproject-fmt
groups: [format]
- repo: https://github.com/biomejs/pre-commit
rev: v2.6.2
hooks:
- id: biome-format
groups: [format]
- repo: local
hooks:
- id: mypy
name: mypy
entry: hatch check types
language: system
types_or: [python, pyi]
require_serial: true
pass_filenames: false
groups: [typecheck]
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
- id: end-of-file-fixer
groups: [format]
- id: trailing-whitespace
groups: [format]
- id: no-commit-to-branch
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.17.3
hooks:
- id: ruff-check
args: [--fix, --exit-non-zero-on-fix]
- id: ruff-check
args: [--preview, --select=CPY]
- id: ruff-format
groups: [format]
- repo: https://github.com/tox-dev/pyproject-fmt
rev: v2.30.3
hooks:
- id: pyproject-fmt
groups: [format]
- repo: https://github.com/biomejs/pre-commit
rev: v2.6.4
hooks:
- id: biome-format
groups: [format]
- repo: local
hooks:
- id: mypy
name: mypy
entry: hatch check types
language: system
types_or: [python, pyi]
require_serial: true
pass_filenames: false
groups: [typecheck]
Loading