File: Makefile

package info (click to toggle)
pyvlx 0.2.32-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 4,616 kB
  • sloc: python: 9,114; makefile: 53; sh: 5
file content (58 lines) | stat: -rw-r--r-- 1,069 bytes parent folder | download
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
49
50
51
52
53
54
55
56
57
58

all:
	@echo
	@echo "Available targets"
	@echo ""
	@echo "ci              -- run linting and tests"
	@echo ""
	@echo "test            -- execute test suite"
	@echo ""
	@echo "flake8          -- run flake8 checks"
	@echo ""
	@echo "isort           -- run isort checks"
	@echo ""
	@echo "mypy            -- run mypy checks"
	@echo ""
	@echo "pylint          -- run pylint tests"
	@echo ""
	@echo "pydocstyle      -- run pydocstyle tests"
	@echo ""
	@echo "coverage        -- create coverage report"
	@echo ""
	@echo "build           -- build python package"
	@echo ""
	@echo "pypi            -- upload package to pypi"
	@echo ""

test:
	pytest

ci: pydocstyle flake8 pylint isort mypy test

flake8:
	@flake8

isort:
	@isort --check-only test examples src/pyvlx

mypy:
	@mypy src/pyvlx

build:
	@python3 -m build

pypi:
	@rm -f dist/*
	@python3 -m build
	@twine upload dist/*

pylint:
	@pylint src/pyvlx test/*.py examples/*.py

pydocstyle:
	 @pydocstyle src/pyvlx test/*.py test/*.py examples/*.py

coverage:
	pytest --cov --cov-report html --verbose

.PHONY: test build