-
Notifications
You must be signed in to change notification settings - Fork 12
/
Makefile
69 lines (48 loc) · 1.45 KB
/
Makefile
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
help:
@echo 'make install: Install package, hook, notebooks and gdslib'
@echo 'make test: Run tests with pytest'
@echo 'make test-force: Rebuilds regression test'
@echo 'make docs: Build the docs and place them in ./site'
@echo 'make docs-serve: mkdocs serve the docs'
@echo 'make release-dr VERSION=MAJOR.MINOR.PATCH: Dry run for new release with version number v${MAJOR}.${MINOR}.${PATCH}'
@echo 'make release VERSION=MAJOR.MINOR.PATCH: Dry run for new release with version number v${MAJOR}.${MINOR}.${PATCH}'
install:
pip install -e .[docs,dev]
pre-commit install
docs-clean:
rm -rf site
docs:
mkdocs build -f docs/mkdocs.yml
docs-serve:
mkdocs serve -f docs/mkdocs.yml
test:
pytest -s
cov:
pytest --cov=kfactory
venv:
python3 -m venv env
lint:
flake8 .
pylint:
pylint kfactory
pydocstyle:
pydocstyle kfactory
doc8:
doc8 docs/
autopep8:
autopep8 --in-place --aggressive --aggressive **/*.py
codestyle:
pycodestyle --max-line-length=88
git-rm-merged:
git branch -D `git branch --merged | grep -v \* | xargs`
update-pre:
pre-commit autoupdate --bleeding-edge
release:
tbump ${VERSION}
release-dr:
tbump --dry-run ${VERSION}
gds-upload:
gh release upload v0.6.0 gds/gds_ref/*.gds --clobber
gds-download:
gh release download v0.6.0 -D gds/gds_ref/ --clobber
.PHONY: build docs