Skip to content

Commit

Permalink
Move coverage metadata to setup.cfg
Browse files Browse the repository at this point in the history
Avoids repeating across coverage invocations.
  • Loading branch information
kingbuzzman authored and francoisfreitag committed Jun 29, 2022
1 parent e69607e commit 31c36c6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,9 @@ lint:

coverage:
$(COVERAGE) erase
$(COVERAGE) run "--include=$(PACKAGE)/*.py,$(TESTS_DIR)/*.py" --branch -m unittest
$(COVERAGE) report "--include=$(PACKAGE)/*.py,$(TESTS_DIR)/*.py"
$(COVERAGE) html "--include=$(PACKAGE)/*.py,$(TESTS_DIR)/*.py"
$(COVERAGE) run --branch -m unittest
$(COVERAGE) report
$(COVERAGE) html


.PHONY: test testall example-test lint coverage
Expand Down
5 changes: 5 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -81,3 +81,8 @@ include_trailing_comma = True
force_grid_wrap = 0
use_parentheses = True
line_length = 88
[coverage:report]
include=
factory/*.py
tests/*.py

0 comments on commit 31c36c6

Please sign in to comment.