Skip to content

Commit 2df3d78

Browse files
committed
Update PR check workflow: replace pip with uv and simplify ruff commands
1 parent b5e78b0 commit 2df3d78

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

.github/workflows/pr_check.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,10 @@ jobs:
2525
with:
2626
enable-cache: true
2727
- name: Install dependencies
28-
run: uv pip install --system -e ".[dev]"
28+
run: uv sync --all-extras
2929
- name: Run ruff linter
30-
run: uv run ruff check pyosmo/
30+
run: uv run ruff check
3131
- name: Run ruff formatter check
32-
run: uv run ruff format --check pyosmo/
32+
run: uv run ruff format --check
3333
- name: Test with pytest
3434
run: uv run pytest pyosmo/tests/

model-creator/generator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -426,4 +426,4 @@ def get_statistics(self) -> dict:
426426
'state_variables': len(self.state_variables),
427427
'login_actions': len([a for a in self.actions if a.get('is_login')]),
428428
'logout_actions': len([a for a in self.actions if a.get('is_logout')]),
429-
}
429+
}

0 commit comments

Comments
 (0)