Skip to content

Commit ee141f7

Browse files
committed
Use uv
1 parent 87afbd6 commit ee141f7

File tree

3 files changed

+147
-11
lines changed

3 files changed

+147
-11
lines changed

.github/workflows/test.yml

+11-11
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,15 @@ jobs:
1212

1313
steps:
1414
- uses: actions/checkout@v4
15-
- name: Set up Python
16-
uses: actions/setup-python@v5
17-
with:
18-
python-version: '3.12'
15+
- name: Install uv
16+
uses: astral-sh/setup-uv@v3
17+
- name: Install the project
18+
run: |
19+
uv sync --all-extras --dev
20+
uv tool install ruff
1921
- name: Ruff linter
20-
uses: astral-sh/ruff-action@v1
21-
with:
22-
args: "check --exclude generated/"
23-
- name: Ruff format check
24-
uses: astral-sh/ruff-action@v1
25-
with:
26-
args: "format --check --exclude generated/"
22+
run: uv run ruff check
23+
- name: Ruff formatter
24+
run: uv run ruff format --check
25+
# - name: Run tests
26+
# run: uv run pytest tests

pyproject.toml

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
[project]
2+
name = "linalg-language"
3+
version = "0.1.0"
4+
description = "A simple language for linear algebra."
5+
readme = "README.md"
6+
requires-python = ">=3.12"
7+
dependencies = [
8+
"antlr4-python3-runtime>=4.13.2",
9+
"typer>=0.13.0",
10+
]
11+
12+
[tool.ruff]
13+
exclude = ["generated"]

uv.lock

+123
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)