Skip to content

Commit b66e2da

Browse files
committed
small adjustment
1 parent 20cfb0c commit b66e2da

File tree

3 files changed

+41
-32
lines changed

3 files changed

+41
-32
lines changed

.github/workflows/code-quality.yml

Lines changed: 12 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -12,56 +12,36 @@ jobs:
1212
steps:
1313
- uses: actions/checkout@v4
1414
- uses: ./.github/actions/setup
15-
- name: Verify Lock File
16-
run: uv lock --locked
15+
- run: uv lock --locked
1716

1817
linting:
1918
runs-on: ubuntu-latest
2019
needs: [lock_file]
2120
steps:
2221
- uses: actions/checkout@v4
2322
- uses: ./.github/actions/setup
24-
- name: Cache UV's global directory
25-
uses: actions/cache@v4
26-
with:
27-
path: ~/.cache/uv
28-
key: ${{ runner.os }}-uv-${{ hashFiles('**/uv.lock') }}
29-
- name: Run Linter
30-
shell: bash
31-
run: |
32-
source .venv/bin/activate
33-
make check_format
23+
- run: make check_format
3424

3525
formatting:
3626
runs-on: ubuntu-latest
3727
needs: [lock_file]
3828
steps:
3929
- uses: actions/checkout@v4
4030
- uses: ./.github/actions/setup
41-
- name: Cache UV's global directory
42-
uses: actions/cache@v4
43-
with:
44-
path: ~/.cache/uv
45-
key: ${{ runner.os }}-uv-${{ hashFiles('**/uv.lock') }}
46-
- name: Run Formatter Check
47-
shell: bash
48-
run: |
49-
source .venv/bin/activate
50-
make check_formatting
31+
- run: make check_formatting
5132

5233
type_consistency:
5334
runs-on: ubuntu-latest
5435
needs: [lock_file]
5536
steps:
5637
- uses: actions/checkout@v4
5738
- uses: ./.github/actions/setup
58-
- name: Cache UV's global directory
59-
uses: actions/cache@v4
60-
with:
61-
path: ~/.cache/uv
62-
key: ${{ runner.os }}-uv-${{ hashFiles('**/uv.lock') }}
63-
- name: Run Type Checker
64-
shell: bash
65-
run: |
66-
source .venv/bin/activate
67-
make mypy
39+
- run: make mypy
40+
41+
build:
42+
runs-on: ubuntu-latest
43+
needs: [linting, formatting, type_consistency]
44+
steps:
45+
- uses: actions/checkout@v4
46+
- uses: ./.github/actions/setup
47+
- run: uv build

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ dependencies = [
1717
"scipy>=1.15.2",
1818
"sentence-transformers>=4.1.0",
1919
"stubs>=1.0.0",
20+
"ruff>=0.9.3",
2021
"torch>=2.6.0",
2122
"transformers>=4.48.3",
2223
]

uv.lock

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

0 commit comments

Comments
 (0)