File: Makefile

package info (click to toggle)
python-threadloop 1.0.2-2
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 108 kB
  • sloc: python: 300; makefile: 22
file content (25 lines) | stat: -rw-r--r-- 459 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
project := threadloop

flake8 := flake8
pytest := py.test -s --tb short --cov $(project) tests

test_args := --cov-report term-missing --cov-report xml

.DEFAULT_GOAL := test

.PHONY:install
install:
	pip install -r requirements-test.txt
	python setup.py develop

.PHONY: clean
clean:
	@find $(project) tests -name "*.pyc" -delete

.PHONY:test
test: clean lint
	PYTHONDONTWRITEBYTECODE=1 $(pytest) $(test_args)

.PHONY: lint
lint:
	$(flake8) $(project) tests