Merge pull request 'test/ruff' (#10) from test/ruff into develop
Reviewed-on: https://www.kuhl-mann.de/git/git/jkuhl/corrlib/pulls/10 Add a ruff workflow
This commit is contained in:
commit
ce4d6d3dd5
2 changed files with 31 additions and 1 deletions
30
.github/workflows/ruff.yaml
vendored
Normal file
30
.github/workflows/ruff.yaml
vendored
Normal 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
|
||||||
|
|
@ -194,7 +194,7 @@ def _map_params(params: dict, spec_list: list) -> dict[str, Any]:
|
||||||
The parameters extracted from the parameter (input) file. in the dict form given by read_param.
|
The parameters extracted from the parameter (input) file. in the dict form given by read_param.
|
||||||
spec_list: list
|
spec_list: list
|
||||||
The list of specifications that belongs to the dorrelator in question.
|
The list of specifications that belongs to the dorrelator in question.
|
||||||
|
|
||||||
Return
|
Return
|
||||||
------
|
------
|
||||||
new_specs: dict
|
new_specs: dict
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue