File: Makefile

package info (click to toggle)
rubber 1.6.7-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,556 kB
  • sloc: python: 3,844; sh: 172; makefile: 31
file content (36 lines) | stat: -rw-r--r-- 721 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
.PHONY: build build-wheel check check-license format lint pyflakes pylint test yapf

MODULES_AND_PACKAGES := hatch_build.py rubber bin

build-wheel:
	# Cleanup dist by running `rm -rf dist/`
	python3 -m build
publish-wheel:
	python3 -m twine upload dist/latex-rubber-*

check: lint test

check-license:
	./tools/check-license

format:
	yapf --in-place --recursive --parallel .

lint: pyflakes pylint yapf check-license

pyflakes:
	pyflakes $(MODULES_AND_PACKAGES)

pylint:
	pylint --errors-only $(MODULES_AND_PACKAGES)

yapf:
	yapf --diff --recursive --parallel $(MODULES_AND_PACKAGES)

test:
	(cd tests && ./run.sh *)

.PHONY: gitlab-runner
gitlab-runner:
	gitlab-runner exec docker test
	gitlab-runner exec docker lint