mirror of
https://github.com/apache/airflow.git
synced 2026-11-04 07:12:48 +00:00
Update pyproject.toml files with pytest>=9.0.0 TOML syntax (#58182)
This commit is contained in:
1 parent
23ddfd251f
commit
0534b90db6
11 files changed
+71
-21
No files matched your search
@@ -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",
|
||||
]
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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",
|
||||
]
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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",
|
||||
]
|
||||
|
||||
@@ -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",
|
||||
]
|
||||
|
||||
@@ -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",
|
||||
]
|
||||
|
||||
@@ -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
@@ -906,7 +906,7 @@ mark-parentheses = false
|
||||
fixture-parentheses = false
|
||||
|
||||
## pytest settings ##
|
||||
[tool.pytest.ini_options]
|
||||
[tool.pytest]
|
||||
addopts = [
|
||||
"--tb=short",
|
||||
"-rasl",
|
||||
|
||||
@@ -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",
|
||||
]
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in new issue
Block a user