Update pyproject.toml files with pytest>=9.0.0 TOML syntax (#58182)

This commit is contained in:
Wei Lee authored and GitHub committed 2025-11-12 22:44:35 +08:00
1 parent 23ddfd251f
commit 0534b90db6
11 files changed
+71 -21

No files matched your search

+9 -2
View File
@@ -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",
]
+2 -2
View File
@@ -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"
+9 -2
View File
@@ -41,8 +41,15 @@ dependencies = [
"boto3>=1.37.2",
]
[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",
]
+7 -2
View File
@@ -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"
+9 -2
View File
@@ -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",
]
+8 -2
View File
@@ -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",
]
+8 -2
View File
@@ -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",
]
+8 -2
View File
@@ -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",
]
+1 -1
View File
@@ -906,7 +906,7 @@ mark-parentheses = false
fixture-parentheses = false
## pytest settings ##
[tool.pytest.ini_options]
[tool.pytest]
addopts = [
"--tb=short",
"-rasl",
+8 -2
View File
@@ -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",
]
+2 -2
View File
@@ -205,7 +205,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",
@@ -236,7 +236,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"