This is an automated email from the ASF dual-hosted git repository. ephraimanierobi pushed a commit to branch v3-1-test in repository https://gitbox.apache.org/repos/asf/airflow.git
commit cc9bf84a7358731f5e5e34f6a189dee6c773847b Author: Jarek Potiuk <[email protected]> AuthorDate: Wed Nov 12 22:55:07 2025 +0100 [v3-1-test] Update pyproject.toml files with pytest>=9.0.0 TOML syntax (#58182) (#58241) (cherry picked from commit 0534b90db660d6815be28d7d4b086b4c87df8995) Co-authored-by: Wei Lee <[email protected]> --- airflow-ctl-tests/pyproject.toml | 11 +++++++++-- airflow-ctl/pyproject.toml | 4 ++-- clients/python/pyproject.toml | 9 +++++++-- dev/breeze/pyproject.toml | 11 +++++++++-- docker-tests/pyproject.toml | 10 ++++++++-- helm-tests/pyproject.toml | 10 ++++++++-- kubernetes-tests/pyproject.toml | 10 ++++++++-- pyproject.toml | 2 +- task-sdk-tests/pyproject.toml | 10 ++++++++-- task-sdk/pyproject.toml | 4 ++-- 10 files changed, 62 insertions(+), 19 deletions(-) diff --git a/airflow-ctl-tests/pyproject.toml b/airflow-ctl-tests/pyproject.toml index d401975ad73..24c7f561ed1 100644 --- a/airflow-ctl-tests/pyproject.toml +++ b/airflow-ctl-tests/pyproject.toml @@ -40,8 +40,15 @@ dependencies = [ "apache-airflow-devel-common", ] -[tool.pytest.ini_options] -addopts = "-rasl --verbosity=2 -p no:flaky -p no:nose -p no:legacypath" +[tool.pytest] +addopts = [ + "-rasl", + "--verbosity=2", + "-p", "no:flaky", + "-p", "no:nose", + "-p", "no:legacypath", +] + norecursedirs = [ ".eggs", ] diff --git a/airflow-ctl/pyproject.toml b/airflow-ctl/pyproject.toml index 267ec58b5d7..8c2fe12a7c5 100644 --- a/airflow-ctl/pyproject.toml +++ b/airflow-ctl/pyproject.toml @@ -163,7 +163,7 @@ input = "../airflow-core/src/airflow/api_fastapi/core_api/openapi/v2-rest-api-ge output = "src/airflowctl/api/datamodels/generated.py" ## pytest settings ## -[tool.pytest.ini_options] +[tool.pytest] addopts = [ "--tb=short", "-rasl", @@ -196,7 +196,7 @@ testpaths = [ ] asyncio_default_fixture_loop_scope = "function" -pythonpath = "tests" +pythonpath = ["tests"] # Keep temporary directories (created by `tmp_path`) for 2 recent runs only failed tests. tmp_path_retention_count = "2" diff --git a/clients/python/pyproject.toml b/clients/python/pyproject.toml index a7a22811641..59593b1d8dd 100644 --- a/clients/python/pyproject.toml +++ b/clients/python/pyproject.toml @@ -102,9 +102,14 @@ include = [ "/airflow_client", ] -[tool.pytest.ini_options] +[tool.pytest] # make sure that pytest.ini is not read from pyproject.toml in paraent directories -addopts = "--color=yes --cov-config=pyproject.toml --cov=airflow_client" +addopts = [ + "--color=yes", + "--cov-config=pyproject.toml", + "--cov=airflow_client", +] + norecursedirs = [ ] log_level = "INFO" diff --git a/dev/breeze/pyproject.toml b/dev/breeze/pyproject.toml index 7a08ada8488..9e87dd5399d 100644 --- a/dev/breeze/pyproject.toml +++ b/dev/breeze/pyproject.toml @@ -89,8 +89,15 @@ name = "airflow_breeze" line-length = 110 target-version = ['py310', 'py311', 'py312'] -[tool.pytest.ini_options] -addopts = "-rasl --verbosity=2 -p no:flaky -p no:nose -p no:legacypath" +[tool.pytest] +addopts = [ + "-rasl", + "--verbosity=2", + "-p", "no:flaky", + "-p", "no:nose", + "-p", "no:legacypath", +] + norecursedirs = [ ".eggs", ] diff --git a/docker-tests/pyproject.toml b/docker-tests/pyproject.toml index 25c20506506..fe2ced2cb36 100644 --- a/docker-tests/pyproject.toml +++ b/docker-tests/pyproject.toml @@ -39,8 +39,14 @@ dependencies = [ "apache-airflow-devel-common", ] -[tool.pytest.ini_options] -addopts = "-rasl --verbosity=2 -p no:flaky -p no:nose -p no:legacypath" +[tool.pytest] +addopts = [ + "-rasl", + "--verbosity=2", + "-p", "no:flaky", + "-p", "no:nose", + "-p", "no:legacypath", +] norecursedirs = [ ".eggs", ] diff --git a/helm-tests/pyproject.toml b/helm-tests/pyproject.toml index 03d047f388d..799fc4cebb7 100644 --- a/helm-tests/pyproject.toml +++ b/helm-tests/pyproject.toml @@ -39,8 +39,14 @@ dependencies = [ "apache-airflow-providers-cncf-kubernetes", ] -[tool.pytest.ini_options] -addopts = "-rasl --verbosity=2 -p no:flaky -p no:nose -p no:legacypath" +[tool.pytest] +addopts = [ + "-rasl", + "--verbosity=2", + "-p", "no:flaky", + "-p", "no:nose", + "-p", "no:legacypath", +] norecursedirs = [ ".eggs", ] diff --git a/kubernetes-tests/pyproject.toml b/kubernetes-tests/pyproject.toml index 2ccb1824be1..bced4f3384d 100644 --- a/kubernetes-tests/pyproject.toml +++ b/kubernetes-tests/pyproject.toml @@ -43,8 +43,14 @@ dependencies = [ "requests>=2.32.0,<3", ] -[tool.pytest.ini_options] -addopts = "-rasl --verbosity=2 -p no:flaky -p no:nose -p no:legacypath" +[tool.pytest] +addopts = [ + "-rasl", + "--verbosity=2", + "-p", "no:flaky", + "-p", "no:nose", + "-p", "no:legacypath", +] norecursedirs = [ ".eggs", ] diff --git a/pyproject.toml b/pyproject.toml index 2e9ff58f97d..c7026f8fb15 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -897,7 +897,7 @@ mark-parentheses = false fixture-parentheses = false ## pytest settings ## -[tool.pytest.ini_options] +[tool.pytest] addopts = [ "--tb=short", "-rasl", diff --git a/task-sdk-tests/pyproject.toml b/task-sdk-tests/pyproject.toml index 1de482b3c87..f21bd18efa3 100644 --- a/task-sdk-tests/pyproject.toml +++ b/task-sdk-tests/pyproject.toml @@ -40,8 +40,14 @@ dependencies = [ "apache-airflow-devel-common", ] -[tool.pytest.ini_options] -addopts = "-rasl --verbosity=2 -p no:flaky -p no:nose -p no:legacypath" +[tool.pytest] +addopts = [ + "-rasl", + "--verbosity=2", + "-p", "no:flaky", + "-p", "no:nose", + "-p", "no:legacypath", +] norecursedirs = [ ".eggs", ] diff --git a/task-sdk/pyproject.toml b/task-sdk/pyproject.toml index 278bfeea306..984e527af38 100644 --- a/task-sdk/pyproject.toml +++ b/task-sdk/pyproject.toml @@ -199,7 +199,7 @@ url = 'http://0.0.0.0:8080/execution/openapi.json' output = 'src/airflow/sdk/api/datamodels/_generated.py' ## pytest settings ## -[tool.pytest.ini_options] +[tool.pytest] addopts = [ "--tb=short", "-rasl", @@ -230,7 +230,7 @@ testpaths = [ ] asyncio_default_fixture_loop_scope = "function" -pythonpath = "tests" +pythonpath = ["tests"] # Keep temporary directories (created by `tmp_path`) for 2 recent runs only failed tests. tmp_path_retention_count = "2"
