File: Makefile

package info (click to toggle)
python-duniterpy 1.1.1-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,228 kB
  • sloc: python: 10,624; makefile: 182; sh: 17
file content (35 lines) | stat: -rw-r--r-- 754 bytes parent folder | download | duplicates (2)
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
.PHONY: docs check mypy pylint format build deploy deploy_test
.SILENT: deploy deploy_test # do not echo commands with password

# generate documentation
docs:
	poetry run sphinx-apidoc -o docs . && poetry run sphinx-build -b html docs public

# check
check:
	pre-commit run --all-files

# check static typing
mypy:
	pre-commit run --all-files mypy

# check code errors
pylint:
	pre-commit run --all-files pylint

# format code
format:
	pre-commit run --all-files black

# build a wheel package in dist folder
build:
	poetry build

# upload on PyPi repository
deploy:
	poetry publish --build

# upload on PyPi test repository
deploy_test:
	poetry config repositories.pypi_test https://test.pypi.org/legacy/
	poetry publish --build --repository pypi_test