[core] Move pytest config into pyproject.toml (#6740)

This commit is contained in:
Jesse Hills 2024-05-16 13:20:12 +12:00 committed by GitHub
parent f2ef06d8b5
commit bf48ccaf22
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 9 additions and 4 deletions

View File

@ -54,3 +54,12 @@ include = ["esphome*"]
[tool.black]
target-version = ["py39", "py310"]
exclude = 'generated'
[tool.pytest.ini_options]
testpaths = [
"tests",
]
addopts = [
"--cov=esphome",
"--cov-branch",
]

View File

@ -1,4 +0,0 @@
[pytest]
addopts =
--cov=esphome
--cov-branch