Compare commits

..

5 commits

Author SHA1 Message Date
ce4d6d3dd5 Merge pull request 'test/ruff' (#10) from test/ruff into develop
All checks were successful
Pytest / pytest (3.12) (push) Successful in 49s
Pytest / pytest (3.13) (push) Successful in 49s
Pytest / pytest (3.14) (push) Successful in 48s
Ruff / ruff (push) Successful in 34s
Reviewed-on: https://www.kuhl-mann.de/git/git/jkuhl/corrlib/pulls/10
Add a ruff workflow
2025-12-02 11:12:04 +01:00
ecfab2a897
correct sfcf ruff errors
All checks were successful
Pytest / pytest (3.12) (push) Successful in 50s
Pytest / pytest (3.13) (push) Successful in 48s
Pytest / pytest (3.14) (push) Successful in 49s
Ruff / ruff (push) Successful in 1m7s
Pytest / pytest (3.12) (pull_request) Successful in 52s
Pytest / pytest (3.13) (pull_request) Successful in 49s
Pytest / pytest (3.14) (pull_request) Successful in 51s
Ruff / ruff (pull_request) Successful in 33s
2025-12-02 10:50:42 +01:00
4447b2ebe6
set python version to 3.12
Some checks failed
Pytest / pytest (3.12) (push) Successful in 49s
Pytest / pytest (3.13) (push) Successful in 48s
Pytest / pytest (3.14) (push) Successful in 49s
Ruff / ruff (push) Failing after 33s
2025-12-02 10:42:43 +01:00
e2a3e7c727
no matrix
Some checks failed
Pytest / pytest (3.12) (push) Successful in 50s
Pytest / pytest (3.13) (push) Successful in 48s
Pytest / pytest (3.14) (push) Successful in 47s
Ruff / ruff (push) Failing after 17s
2025-12-02 10:38:07 +01:00
f342aef951
add ruff workflow
Some checks failed
Pytest / pytest (3.12) (push) Successful in 49s
Pytest / pytest (3.13) (push) Successful in 52s
Pytest / pytest (3.14) (push) Has been cancelled
2025-12-02 10:36:11 +01:00
2 changed files with 31 additions and 1 deletions

30
.github/workflows/ruff.yaml vendored Normal file
View file

@ -0,0 +1,30 @@
name: Ruff
on:
push:
pull_request:
workflow_dispatch:
jobs:
ruff:
runs-on: ubuntu-latest
env:
UV_CACHE_DIR: /tmp/.uv-cache
steps:
- name: Install git-annex
run: |
sudo apt-get update
sudo apt-get install -y git-annex
- name: Check out the repository
uses: https://github.com/RouxAntoine/checkout@v4.1.8
with:
show-progress: true
- name: Install uv
uses: astral-sh/setup-uv@v7
with:
enable-cache: true
- name: Install corrlib
run: uv sync --locked --all-extras --dev --python "3.12"
- name: Run tests
run: uv run ruff check corrlib