-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
39 lines (34 loc) · 1.11 KB
/
Makefile
File metadata and controls
39 lines (34 loc) · 1.11 KB
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
lint:
python -m pip install --quiet --upgrade pycln isort ruff yamllint cython-lint
# python -m yamllint .
python fix_cython_whitespace.py
cython-lint draken/compiled/*.pyx
cython-lint draken/core/*.pyx
cython-lint draken/evaluators/*.pyx
cython-lint draken/morsels/*.pyx
cython-lint draken/vectors/*.pyx
python -m ruff check --fix --exit-zero
python -m pycln .
python -m isort .
python -m ruff format draken
update:
python -m pip install --upgrade pip uv
python -m uv pip install --upgrade -r pyproject.toml
#python -m uv pip install --upgrade -r pyproject.toml --extra=dev
coverage:
python -m pip install --quiet --upgrade pytest coverage
python -m coverage run -m pytest --color=yes
python -m coverage report --include=draken/** --fail-under=60 -m
test:
python -m pip install --quiet --upgrade pytest
python -m pytest -n 4 --color=yes
compile:
clear
python -m pip install --upgrade pip uv
python -m uv pip install --upgrade cython setuptools
find . -name '*.so' -delete
rm -rf build dist *.egg-info
python setup.py clean
python setup.py build_ext --inplace -j 8
c:
python setup.py build_ext --inplace