-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
35 lines (25 loc) · 941 Bytes
/
Makefile
File metadata and controls
35 lines (25 loc) · 941 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
26
27
28
29
30
31
32
33
34
35
default: linter tests
install:
pip install -U pip
pip install numpy # installing numpy to deactivate stupid warnings for pytorch even when not used.
pip install -U git+https://github.com/facebookincubator/submitit@main#egg=submitit
pip install -U git+https://git@github.com/facebookresearch/dora#egg=dora-search
pip install -U -e '.[dev]'
install_ci:
pip install -U pip wheel setuptools
pip install torch --index-url https://download.pytorch.org/whl/cpu
pip install git+https://github.com/facebookincubator/submitit@main#egg=submitit
pip install --no-use-pep517 git+https://git@github.com/facebookresearch/dora#egg=dora-search
pip install -e '.[dev]'
linter:
flake8 flashy && mypy flashy
docs:
pdoc3 --html -o docs -f flashy
tests:
coverage run -m pytest tests
coverage report --include 'flashy/*'
upload: docs
rsync -ar docs bob:www/share/flashy/
dist:
python setup.py sdist
.PHONY: linter tests docs upload dist