Skip to content

Commit b5a4a86

Browse files
authored
Move Coverage config into pyproject.toml (#575)
* Move Coverage config into `pyproject.toml` * Update badge in README * Use correct format for `source` in coverage config
1 parent 7f26d82 commit b5a4a86

File tree

3 files changed

+9
-7
lines changed

3 files changed

+9
-7
lines changed

.coveragerc

Lines changed: 0 additions & 5 deletions
This file was deleted.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# bellows
22

33
[![Build](https://github.com/zigpy/bellows/workflows/CI/badge.svg?branch=dev)](https://github.com/zigpy/bellows/workflows/CI/badge.svg?branch=dev)
4-
[![Coverage](https://coveralls.io/repos/github/zigpy/bellows/badge.svg?branch=dev)](https://coveralls.io/github/zigpy/bellows?branch=dev)
4+
[![Coverage Status](https://codecov.io/gh/zigpy/bellows/branch/dev/graph/badge.svg?token=Y1994N9D74)](https://codecov.io/gh/zigpy/bellows)
55

66
`bellows` is a Python 3 library implementation for the [zigpy](https://github.com/zigpy/zigpy) project to add Zigbee radio support for Silicon Labs EM35x ("Ember") and EFR32 ("Mighty Gecko") based Zigbee coordinator devices using the EZSP (EmberZNet Serial Protocol) interface.
77

pyproject.toml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,4 +63,11 @@ max-line-length = 88
6363
# E501: line too long
6464
# D202 No blank lines allowed after function docstring
6565
ignore = ["W503", "E203", "E501", "D202"]
66-
per-file-ignores = ["tests/*:F811,F401,F403"]
66+
per-file-ignores = ["tests/*:F811,F401,F403"]
67+
68+
[tool.coverage.run]
69+
source = ["bellows"]
70+
omit = [
71+
"bellows/cli/*.py",
72+
"bellows/typing.py",
73+
]

0 commit comments

Comments
 (0)