File: Makefile

package info (click to toggle)
more-itertools 10.8.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 772 kB
  • sloc: python: 8,796; makefile: 167
file content (35 lines) | stat: -rw-r--r-- 704 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
.PHONY: all-checks
all-checks: requirements coverage check docs package

.PHONY: requirements
requirements:
	python -m pip install -r requirements/development.txt
	python -m pip install --editable .

.PHONY: check
check:
	ruff format --check .
	ruff check more_itertools tests
	stubtest more_itertools.more more_itertools.recipes

.PHONY: format
format:
	ruff format .

.PHONY: coverage
coverage:
	coverage run --include="more_itertools/*.py" -m unittest
	coverage report --show-missing --fail-under=99

.PHONY: test
test:
	python -m unittest -v ${tests}

.PHONY: docs
docs:
	sphinx-build -W -b html docs docs/_build/html

.PHONY: package
package: requirements
	flit build --setup-py
	twine check dist/*