Install the studio standard's tooling files

Add .ruff.toml, ty.toml, .coveragerc, .pytest.ini and .pre-commit-config.yaml, take
.editorconfig, .gitignore and the CI workflow from the standard (keeping the repository's
own CI steps, the byte-exact fixture attributes and the fixture ignore exceptions), and
reduce pyproject.toml to metadata plus the setuptools build mapping.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B8cL4zN4XpaQF5cBtASzfq
This commit is contained in:
alexmandClaude committed 2026-10-19 03:57:22 -04:00
1 parent b5f88d0177
commit 2cfa080393
11 files changed
+368 -105

No files matched your search

-21
View File
@@ -1,21 +0,0 @@
# Forgejo and Gitea Actions both read .github/workflows when their own folder is absent.
# On Forgejo, if the runner's default action mirror lacks setup-pixi, write it as
# https://github.com/prefix-dev/setup-pixi@v0.9.4.
# The tools need Python 3.14, which pixi.toml pins, so one environment covers every supported Python.
name: check
on:
push:
branches: [main]
pull_request:
jobs:
check:
runs-on: linux-base
container:
image: git.scient.ing/infra/linux-base:26.10.7
steps:
- uses: actions/checkout@v4
- name: Check the repository
run: pixi run check
- name: Stress the reference implementation
run: pixi run stress
+50
View File
@@ -0,0 +1,50 @@
# Continuous integration on Gitea Actions.
#
# Runner labels: `linux-base` is the label of this studio's runner. If your
# runner registers different labels, change the `os` matrix.
# Forgejo and Gitea Actions both read .github/workflows when their own folder is absent.
# On Forgejo, if the runner's default action mirror lacks setup-pixi, write it as
# https://github.com/prefix-dev/setup-pixi@v0.9.4.
# The checks need Python 3.14, which pixi.toml pins, so one environment covers every supported Python.
name: ci
on:
push:
branches: [main, dev]
pull_request:
workflow_dispatch:
# Cancels superseded runs on the same branch (Gitea 1.26+; older versions do
# not cancel).
concurrency:
group: ${{ gitea.workflow }}-${{ gitea.event_name }}-${{ gitea.ref }}
cancel-in-progress: true
permissions:
contents: read
jobs:
check:
strategy:
fail-fast: false
matrix:
os: [linux-base]
runs-on: ${{ matrix.os }}
# pixi comes with the job image, as in the site and publish workflows.
container:
image: git.scient.ing/infra/linux-base:26.10.7
timeout-minutes: 30
env:
PYTEST_ADDOPTS: --maxfail=0 # report every failure in CI
steps:
- uses: actions/checkout@v4
- run: pixi run fmt-check
- run: pixi run lint
- run: pixi run typecheck
- run: pixi run cov
# paperspec-specific: the repository checks the oracle exists to run.
- name: Lint the Markdown
run: pixi run lint-md
- name: Check the repository
run: pixi run verify
- name: Stress the reference implementation
run: pixi run stress