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
4 changes: 2 additions & 2 deletions .github/actions/build-pgo-wheel/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ outputs:
description: 'Path to the built wheel'
value: ${{ steps.find_wheel.outputs.path }}
runs:
using: "composite"
using: 'composite'
steps:
- name: prepare profiling directory
shell: bash
Expand Down Expand Up @@ -46,7 +46,7 @@ runs:

- name: merge pgo data
run: ${{ env.LLVM_PROFDATA }} merge -o ${{ github.workspace }}/merged.profdata ${{ github.workspace }}/profdata
shell: pwsh # because it handles paths on windows better, and works well enough on unix for this step
shell: pwsh # because it handles paths on windows better, and works well enough on unix for this step

- name: build pgo-optimized wheel
uses: PyO3/maturin-action@v1
Expand Down
43 changes: 18 additions & 25 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
branches:
- main
tags:
- "**"
- '**'
pull_request: {}

jobs:
Expand All @@ -19,7 +19,7 @@ jobs:
- name: set up python
uses: actions/setup-python@v6
with:
python-version: "3.13"
python-version: '3.13'

- name: resolve MSRV
id: resolve-msrv
Expand All @@ -33,13 +33,13 @@ jobs:
matrix:
rust-version: [stable]
runs-on: [ubuntu, macos]
python-version: [""]
python-version: ['']
include:
- rust-version: ${{ needs.resolve.outputs.MSRV }}
runs-on: ubuntu
- rust-version: stable
runs-on: ubuntu
python-version: "3.13t"
python-version: '3.13t'
- rust-version: nightly
runs-on: ubuntu

Expand Down Expand Up @@ -94,7 +94,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ["3.13", "3.13t", "graalpy3.12"]
python-version: ['3.13', '3.13t', 'graalpy3.12']

env:
RUNS_ON: ubuntu-latest
Expand Down Expand Up @@ -142,7 +142,7 @@ jobs:

- uses: astral-sh/setup-uv@v8.0.0
with:
python-version: "3.13"
python-version: '3.13'

- uses: moonrepo/setup-rust@v1
with:
Expand Down Expand Up @@ -208,7 +208,7 @@ jobs:

- uses: astral-sh/setup-uv@v8.0.0
with:
python-version: "3.13"
python-version: '3.13'

- name: Install dependencies
run: uv sync --all-packages --group linting
Expand Down Expand Up @@ -236,7 +236,7 @@ jobs:
- name: set up python
uses: actions/setup-python@v6
with:
python-version: "3.13"
python-version: '3.13'
- uses: PyO3/maturin-action@v1
with:
command: sdist
Expand Down Expand Up @@ -319,7 +319,7 @@ jobs:
- os: windows
target: aarch64
runs-on: windows-11-arm
interpreter: "3.11 3.12 3.13 3.13t 3.14 3.14t"
interpreter: '3.11 3.12 3.13 3.13t 3.14 3.14t'

runs-on: ${{ matrix.runs-on || format('{0}-latest', (matrix.os == 'linux' && 'ubuntu') || matrix.os) }}
steps:
Expand All @@ -328,7 +328,7 @@ jobs:
- name: set up python
uses: actions/setup-python@v6
with:
python-version: "3.13"
python-version: '3.13'

- name: install rust stable
uses: dtolnay/rust-toolchain@stable
Expand Down Expand Up @@ -360,20 +360,13 @@ jobs:
strategy:
fail-fast: false
matrix:
platform:
[
{ os: linux, runs-on: ubuntu-latest },
{ os: linux_aarch64, runs-on: ubuntu-24.04-arm },
{ os: windows, runs-on: windows-latest },
{ os: macos, runs-on: macos-latest },
]
interpreter:
["3.9", "3.10", "3.11", "3.12", "3.13", "3.13t", "3.14", "3.14t"]
platform: [{os: linux, runs-on: ubuntu-latest}, {os: linux_aarch64, runs-on: ubuntu-24.04-arm}, {os: windows, runs-on: windows-latest}, {os: macos, runs-on: macos-latest}]
interpreter: ['3.9', '3.10', '3.11', '3.12', '3.13', '3.13t', '3.14', '3.14t']
exclude:
# macos arm only supported from 3.10 and up
- platform:
os: macos
interpreter: "3.9"
interpreter: '3.9'

runs-on: ${{ matrix.platform.runs-on }}
steps:
Expand Down Expand Up @@ -433,7 +426,7 @@ jobs:
# NOTE!: as per https://github.com/pydantic/pydantic-core/pull/149 this version needs to match the version
# in node_modules/pyodide/repodata.json, to get the version, run:
# `cat node_modules/pyodide/repodata.json | python -m json.tool | rg platform`
version: "3.1.58"
version: '3.1.58'
actions-cache-folder: emsdk-cache

- name: install deps
Expand All @@ -445,7 +438,7 @@ jobs:

- uses: actions/setup-node@v4
with:
node-version: "18"
node-version: '18'

- run: npm install
working-directory: crates/jiter-python
Expand Down Expand Up @@ -503,7 +496,7 @@ jobs:
fail-fast: false
matrix:
target: [aarch64, armv7, s390x, ppc64le]
distro: ["ubuntu22.04"]
distro: ['ubuntu22.04']
include:
- target: aarch64
distro: alpine_latest
Expand Down Expand Up @@ -564,7 +557,7 @@ jobs:
id: setup-python
uses: astral-sh/setup-uv@v8.0.0
with:
python-version: "3.13"
python-version: '3.13'

- name: get dist artifacts
uses: actions/download-artifact@v4
Expand Down Expand Up @@ -631,7 +624,7 @@ jobs:
- name: set up python
uses: actions/setup-python@v6
with:
python-version: "3.13"
python-version: '3.13'

- name: get dist artifacts
uses: actions/download-artifact@v4
Expand Down
87 changes: 46 additions & 41 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,45 +1,50 @@
fail_fast: true

repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.0.1
hooks:
- id: check-yaml
- id: check-toml
- id: end-of-file-fixer
exclude: 'benches/.*\.json'
- id: trailing-whitespace
- id: check-added-large-files
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
- id: check-yaml
- id: check-toml
- id: end-of-file-fixer
exclude: 'benches/.*\.json'
- id: trailing-whitespace
- id: check-added-large-files

- repo: local
hooks:
- id: format-check
name: Format Check
entry: cargo fmt
types: [rust]
language: system
pass_filenames: false
- id: clippy
name: Clippy
entry: cargo clippy -F python --workspace --all-targets -- -D warnings
types: [rust]
language: system
pass_filenames: false
- id: lint-python
name: Lint python
entry: make lint-python
types: [python]
language: system
pass_filenames: false
- id: check-without-num-bigint
name: Check without num-bigint feature
entry: cargo check --no-default-features --package jiter
types: [rust]
language: system
pass_filenames: false
- id: test
name: Test
entry: cargo test --test main
types: [rust]
language: system
pass_filenames: false
- repo: https://github.com/google/yamlfmt
rev: v0.21.0
hooks:
- id: yamlfmt

- repo: local
hooks:
- id: format-check
name: Format Check
entry: cargo fmt
types: [rust]
language: system
pass_filenames: false
- id: clippy
name: Clippy
entry: cargo clippy -F python --workspace --all-targets -- -D warnings
types: [rust]
language: system
pass_filenames: false
- id: lint-python
name: Lint python
entry: make lint-python
types: [python]
language: system
pass_filenames: false
- id: check-without-num-bigint
name: Check without num-bigint feature
entry: cargo check --no-default-features --package jiter
types: [rust]
language: system
pass_filenames: false
- id: test
name: Test
entry: cargo test --test main
types: [rust]
language: system
pass_filenames: false
5 changes: 5 additions & 0 deletions .yamlfmt.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
formatter:
type: basic
retain_line_breaks_single: true
scan_folded_as_literal: true
force_quote_style: single
Loading