-
Notifications
You must be signed in to change notification settings - Fork 0
/
justfile
32 lines (27 loc) · 935 Bytes
/
justfile
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
setup:
python -m pip install -U pip
python -m pip install -r requirements.dev.txt
python -m pip install -e .
mkdir -p .git/hooks
ln -f -s `pwd`/hooks/* .git/hooks
test:
maturin develop
pytest
dev:
maturin develop
pytest -m dev
lint:
isort --check python/tensorboars python/tests
black --check --include .py --exclude ".pyc|.pyi|.so" python/tensorboars python/tests
black --check --pyi --include .pyi --exclude ".pyc|.py|.so" python/tensorboars python/tests
cargo fmt --check
ruff python/
pyright python/tensorboars python/tests
fix:
isort python/tensorboars python/tests
black --include .py --exclude ".pyc|.pyi|.so" python/tensorboars python/tests
black --pyi --include .pyi --exclude ".pyc|.py|.so" python/tensorboars python/tests
cargo fmt
ruff --fix python/
list-todo:
pylint --disable=all --enable=fixme --score=no python/tensorboars python/tests