-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathMakefile
33 lines (27 loc) · 870 Bytes
/
Makefile
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
#
# Project: git-edit-index
# Copyright: (c) 2015 by Petr Zemek <[email protected]> and contributors
# License: MIT, see the LICENSE file for more details
#
# A GNU Makefile for the project.
#
.PHONY: help clean lint tests tests-coverage
help:
@echo "Use \`make <target>', where <target> is one of the following:"
@echo " clean - remove all generated files"
@echo " lint - check code style with flake8"
@echo " tests - run tests"
@echo " tests-coverage - obtain test coverage"
clean:
@find . -name '__pycache__' -exec rm -rf {} +
@find . -name '*.py[co]' -exec rm -f {} +
@rm -rf .coverage coverage
lint:
@flake8 --ignore=E501 git-edit-index tests/test_git_edit_index.py setup.py
tests:
@pytest tests
tests-coverage:
@pytest tests \
--cov=git_edit_index \
--cov-report=term \
--cov-report=html:coverage/html