From bf48ccaf22a32e11e9974cf888bed1e424de8822 Mon Sep 17 00:00:00 2001 From: Jesse Hills <3060199+jesserockz@users.noreply.github.com> Date: Thu, 16 May 2024 13:20:12 +1200 Subject: [PATCH] [core] Move pytest config into pyproject.toml (#6740) --- pyproject.toml | 9 +++++++++ pytest.ini | 4 ---- 2 files changed, 9 insertions(+), 4 deletions(-) delete mode 100644 pytest.ini diff --git a/pyproject.toml b/pyproject.toml index aa524e2d62..4406165433 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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", +] diff --git a/pytest.ini b/pytest.ini deleted file mode 100644 index a91a2ea200..0000000000 --- a/pytest.ini +++ /dev/null @@ -1,4 +0,0 @@ -[pytest] -addopts = - --cov=esphome - --cov-branch