forked from gdsfactory/kfactory
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
51 lines (36 loc) · 775 Bytes
/
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
help:
@echo 'make install: Install package, hook, notebooks and gdslib'
@echo 'make test: Run tests with pytest'
@echo 'make test-force: Rebuilds regression test'
install:
pip install -e .[docs,dev]
pre-commit install
docs-clean:
rm -rf docs/_autosummary/
rm -rf docs/build
test:
pytest
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:
git push
git push origin --tags
.PHONY: build