File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -38,3 +38,4 @@ nosetests.xml
3838/share
3939/include
4040.mypy_cache
41+ pyvenv.cfg
Original file line number Diff line number Diff line change 11SHELL =/bin/bash -e
22
33help :
4- @echo - make coverage
5- @echo - make test
6- @echo - make typecheck
7- @echo - make lint
8- @echo - make release
9- @echo - make clean
4+ @echo - make black ------ Format code
5+ @echo - make clean ------ Clean virtual environment
6+ @echo - make coverage --- Run tests coverage
7+ @echo - make docs ------- Make docs
8+ @echo - make lint ------- Run lint
9+ @echo - make test ------- Run test
10+ @echo - make typecheck -- Typecheck
11+ @echo - make venv ------- Create virtual environment
12+
13+ black :
14+ black -S cstruct tests setup.py
15+
16+ clean :
17+ -rm -rf build dist
18+ -rm -rf * .egg-info
19+ -rm -rf bin lib share pyvenv.cfg
1020
1121coverage :
1222 python3 -m coverage run --source=cstruct setup.py test && python3 -m coverage report -m
1323
24+ .PHONY : docs
25+ docs :
26+ cd docs; $(MAKE ) html
27+
28+ lint :
29+ flake8 cstruct tests
30+
1431test :
1532 python3 setup.py test
1633
1734typecheck :
1835 mypy --strict --no-warn-unused-ignores cstruct
1936
20- lint :
21- python setup.py flake8
22-
23- release :
24- python ./setup.py bdist_wheel
25- cd docs; $(MAKE ) html
26-
27- clean :
28- -rm -rf build dist
29- -rm -rf * .egg-info
30-
37+ venv :
38+ python3 -m virtualenv .
39+ . bin/activate; pip install -Ur requirements.txt
40+ . bin/activate; pip install -Ur requirements-dev.txt
You can’t perform that action at this time.
0 commit comments