Debian Codegraph @

Makefile

raw
1 .PHONY: test
2 test:
3 pytest --pdb --cov-report term-missing --cov=eagerpy --verbose
4 pytest --pdb --cov-report term-missing --cov=eagerpy --cov-append --verbose --backend numpy
5 pytest --pdb --cov-report term-missing --cov=eagerpy --cov-append --verbose --backend pytorch
6 pytest --pdb --cov-report term-missing --cov=eagerpy --cov-append --verbose --backend jax
7 pytest --pdb --cov-report term-missing --cov=eagerpy --cov-append --verbose --backend tensorflow
8 pytest --pdb --cov-report term-missing --cov=eagerpy --cov-append --verbose --backend pytorch-gpu
9
10 .PHONY: black
11 black:
12 black .
13
14 .PHONY: blackcheck
15 blackcheck:
16 black --check .
17
18 .PHONY: flake8
19 flake8:
20 flake8
21
22 .PHONY: mypy
23 mypy:
24 mypy -p eagerpy
25 mypy tests/
26
27 .PHONY: docs
28 docs:
29 pydocmd generate
30 cd docs && vuepress build --temp /tmp/
31
32 .PHONY: installvuepress
33 installvuepress:
34 curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
35 echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
36 sudo apt update && sudo apt install yarn
37 sudo yarn global add vuepress
38
39 .PHONY: servedocs
40 servedocs:
41 cd docs/.vuepress/dist/ && python3 -m http.server 9999
42
43 .PHONY: devdocs
44 devdocs:
45 cd docs && vuepress dev --temp /tmp/ --port 9999
46
47 .PHONY: pushdocs
48 pushdocs:
49 cd docs/.vuepress/dist/ && git init && git add -A && git commit -m 'deploy'
50 cd docs/.vuepress/dist/ && git push -f [email protected]:jonasrauber/eagerpy.git master:gh-pages
51
52 .PHONY: install
53 install:
54 pip3 install -e .
55
56 .PHONY: devsetup
57 devsetup:
58 pre-commit install
59
60 .PHONY: build
61 build:
62 python3 setup.py sdist
63
64 .PHONY: commit
65 commit:
66 git add eagerpy/VERSION
67 git commit -m 'Version $(shell cat eagerpy/VERSION)'
68
69 .PHONY: release
70 release: build
71 twine upload dist/eagerpy-$(shell cat eagerpy/VERSION).tar.gz
72
73 .PHONY: pyre
74 pyre:
75 pyre --source-directory . check
76
77 .PHONY: pytype
78 pytype:
79 pytype .
80
81 .PHONY: pyright
82 pyright:
83 pyright .
84
85 .PHONY: mypyreport
86 mypyreport:
87 -mypy . --html-report build
88 python3 -m http.server 9999