Skip to content

Commit 357c3f7

Browse files
committed
Makefile updated
1 parent c0158ed commit 357c3f7

2 files changed

Lines changed: 28 additions & 17 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,3 +38,4 @@ nosetests.xml
3838
/share
3939
/include
4040
.mypy_cache
41+
pyvenv.cfg

Makefile

Lines changed: 27 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,40 @@
11
SHELL=/bin/bash -e
22

33
help:
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

1121
coverage:
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+
1431
test:
1532
python3 setup.py test
1633

1734
typecheck:
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

0 commit comments

Comments
 (0)