-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmakefile
32 lines (25 loc) · 1 KB
/
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
.DEFAULT_GOAL := deps
.PHONY: deps form lint test tox publish
PACKAGE_NAME = glopan
deps: ## Install dependencies
python -m pip install --upgrade pip
python -m pip install --upgrade wheel
python -m pip install -r requirements.txt
python -m pip install --upgrade black
python -m pip install --upgrade flake8 mccabe pylint mypy
python -m pip install --upgrade flit
python -m pip install --upgrade pytest pytest-cov
python -m pip install --upgrade python-docx reportlab
python -m pip install --upgrade python-dotenv
form: ## Code formatting
python -m black $(PACKAGE_NAME)
lint: ## Linting and static type checking
python -m flake8 $(PACKAGE_NAME)
python -m pylint $(PACKAGE_NAME)
python -m mypy --config-file mypy.ini $(PACKAGE_NAME)
test: ## Run tests and output reports
python -m pytest --junitxml=junit/test-results.xml --cov=$(PACKAGE_NAME) --cov-report=term-missing --cov-report=xml
publish: ## Publish to PyPI
python -m flit publish
coverage: ## Upload coverage report
python publish_coverage.py