-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathMakefile
More file actions
48 lines (36 loc) · 829 Bytes
/
Makefile
File metadata and controls
48 lines (36 loc) · 829 Bytes
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
SHELL=/bin/bash -e
help:
@echo - make coverage
@echo - make test
@echo - make typecheck
@echo - make lint
@echo - make release
@echo - make clean
@echo - make doc
codespell:
codespell codespell securid.py securid/*.py tests/*.py
isort:
isort --profile black securid tests
black: isort
black securid tests
coverage:
pytest --cov --cov-report=term-missing
test:
pytest
typecheck: codespell
mypy --strict --no-warn-unused-ignores securid
lint:
flake8 securid.py securid tests
release:
python -m build --sdist --wheel
cd docs; $(MAKE) html
clean:
-rm -rf build dist
-rm -rf *.egg-info
-rm -rf bin lib share pyvenv.cfg
venv:
python3 -m venv . || python3 -m virtualenv .
. bin/activate; pip install -Ur requirements.txt
. bin/activate; pip install -Ur requirements-dev.txt
doc:
cd docs; $(MAKE) html