-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathMakefile
More file actions
25 lines (17 loc) · 750 Bytes
/
Copy pathMakefile
File metadata and controls
25 lines (17 loc) · 750 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
UV ?= uv
test: test-data test-model test-toolkit test-train
# pytest returns error code 5 if no test is collected.
test-data:
OMP_NUM_THREADS=4 ${UV} run pytest -vv -n 4 --dist load --disable-warnings ./byteff2/tests/data
test-model:
OMP_NUM_THREADS=4 ${UV} run pytest -vv -n 4 --dist load --disable-warnings ./byteff2/tests/model
test-toolkit:
OMP_NUM_THREADS=4 ${UV} run pytest -vv -n 4 --dist load --disable-warnings ./byteff2/tests/toolkit
test-train:
OMP_NUM_THREADS=4 ${UV} run pytest -vv -n 4 --dist load --disable-warnings ./byteff2/tests/train
lint:
${UV} run --no-project --with ruff ruff check .
format:
${UV} run --no-project --with ruff ruff format .
format-check:
${UV} run --no-project --with ruff ruff format --check .