Skip to content

Commit

Permalink
Remove coveragerc (home-assistant#121286)
Browse files Browse the repository at this point in the history
  • Loading branch information
frenck authored Jul 5, 2024
1 parent eb5a98e commit afb184d
Show file tree
Hide file tree
Showing 8 changed files with 19 additions and 1,917 deletions.
1 change: 0 additions & 1 deletion .core_files.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,6 @@ components: &components

# Testing related files that affect the whole test/linting suite
tests: &tests
- .coveragerc
- codecov.yaml
- pylint/**
- requirements_test_pre_commit.txt
Expand Down
1,730 changes: 0 additions & 1,730 deletions .coveragerc

This file was deleted.

1 change: 0 additions & 1 deletion .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@ If the code communicates with devices, web services, or third-party tools:
- [ ] New or updated dependencies have been added to `requirements_all.txt`.
Updated by running `python3 -m script.gen_requirements_all`.
- [ ] For the updated dependencies - a link to the changelog, or at minimum a diff between library versions is added to the PR description.
- [ ] Untested files have been added to `.coveragerc`.

<!--
This project is very active and we have a high turnover of pull requests.
Expand Down
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ repos:
pass_filenames: false
language: script
types: [text]
files: ^(homeassistant/.+/(icons|manifest|strings)\.json|homeassistant/brands/.*\.json|\.coveragerc|homeassistant/.+/services\.yaml|script/hassfest/(?!metadata|mypy_config).+\.py|requirements_test.txt)$
files: ^(homeassistant/.+/(icons|manifest|strings)\.json|homeassistant/brands/.*\.json|homeassistant/.+/services\.yaml|script/hassfest/(?!metadata|mypy_config).+\.py|requirements_test.txt)$
- id: hassfest-metadata
name: hassfest-metadata
entry: script/run-in-env.sh python3 -m script.hassfest -p metadata
Expand Down
2 changes: 1 addition & 1 deletion codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ coverage:
status:
project:
default:
target: 90
target: auto
threshold: 0.09
required:
target: auto
Expand Down
17 changes: 17 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -675,6 +675,23 @@ filterwarnings = [
"ignore:pkg_resources is deprecated as an API:DeprecationWarning:webrtcvad",
]

[tool.coverage.run]
source = ["homeassistant"]

[tool.coverage.report]
exclude_lines = [
# Have to re-enable the standard pragma
"pragma: no cover",
# Don't complain about missing debug-only code:
"def __repr__",
# Don't complain if tests don't hit defensive assertion code:
"raise AssertionError",
"raise NotImplementedError",
# TYPE_CHECKING and @overload blocks are never executed during pytest run
"if TYPE_CHECKING:",
"@overload",
]

[tool.ruff]
required-version = ">=0.5.0"

Expand Down
2 changes: 0 additions & 2 deletions script/hassfest/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
codeowners,
config_flow,
config_schema,
coverage,
dependencies,
dhcp,
docker,
Expand Down Expand Up @@ -53,7 +52,6 @@
config_flow, # This needs to run last, after translations are processed
]
HASS_PLUGINS = [
coverage,
docker,
mypy_config,
metadata,
Expand Down
181 changes: 0 additions & 181 deletions script/hassfest/coverage.py

This file was deleted.

0 comments on commit afb184d

Please sign in to comment.