Skip to content

Commit a3be278

Browse files
committed
Use ruff as a tool via uvx
1 parent 1632bc5 commit a3be278

File tree

4 files changed

+8
-38
lines changed

4 files changed

+8
-38
lines changed

.github/workflows/api-style.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,12 @@ jobs:
3030
uses: actions/setup-python@v6
3131
with:
3232
python-version-file: "./Tekst-API/pyproject.toml"
33-
- name: Install dependencies
34-
run: uv sync
3533
- name: Cancel on setup error
3634
if: failure()
3735
uses: andymckay/cancel-action@0.5
3836
- name: Lint code base
3937
if: always()
40-
run: uv run ruff check . --extend-select N
38+
run: uvx ruff check . --extend-select N
4139
- name: Check code formatting
4240
if: always()
43-
run: uv run ruff format . --check
41+
run: uvx ruff format . --check

Tekst-API/.justfile

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,14 @@ install:
1414

1515
# format code base, fix linting errors
1616
fix:
17-
uv run ruff format .
18-
uv run ruff check . --fix
17+
uvx ruff format .
18+
uvx ruff check . --fix
1919

2020
# check code formatting and style
2121
check:
22-
uv run ruff format . --check
23-
uv run ruff check . --extend-select N
22+
uvx ruff format . --check
23+
uvx ruff check . --extend-select N
24+
uvx ty check
2425

2526
# run static type checker
2627
# (this is a separate task for now because the
@@ -72,7 +73,7 @@ services-down SCOPE="test":
7273

7374
# clean up generated files
7475
cleanup:
75-
uv run ruff clean
76+
uvx ruff clean
7677
rm -rf \
7778
*/**/__pycache__ \
7879
*/**/.pytest_cache \

Tekst-API/pyproject.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,6 @@ dev = [
6565
"pytest-dotenv<1.0.0,>=0.5.2",
6666
"httpx<1.0.0,>=0.28.0",
6767
"asgi-lifespan<3.0.0,>=2.1.0",
68-
"ruff<1.0.0,>=0.8.0",
6968
"pytest-env<2.0.0,>=1.1.1",
7069
"uvicorn[standard]>=0.34.2",
7170
"fastapi-cli>=0.0.7",

Tekst-API/uv.lock

Lines changed: 0 additions & 28 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)