-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
30 lines (25 loc) · 844 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
package:
python -m pip install --upgrade pip
pip install build
python -m build
doc:
pip install -r docs/requirements.txt
cd docs && sphinx-apidoc -o ./source -f ../src/detectors -d 4 && make clean && make html
test:
pytest -vv tests/models.py tests/methods.py tests/docstrings.py -s --cov \
--cov-config=.coveragerc \
--cov-report xml \
--cov-report term-missing:skip-covered
format:
black --config pyproject.toml .
isort --settings pyproject.toml .
lint:
black . --check
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
flake8 . --count --exit-zero --statistics
help:
@echo 'package - build the package'
@echo 'doc - build the documentation'
@echo 'test - run unit tests and generate coverage report'
@echo 'format - run code formatters'
@echo 'lint - run linters'