-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
88 lines (79 loc) · 1.92 KB
/
pyproject.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
[build-system]
requires = ["setuptools>=42.0", "wheel"]
build-backend = "setuptools.build_meta"
[tool.black]
line-length = 110
target-version = ['py38', 'py39', 'py310', 'py311']
[tool.ruff]
target-version = "py38"
lint.typing-modules = ["airflow.typing_compat"]
line-length = 110
lint.extend-select = [
"I", # Missing required import (auto-fixable)
"UP", # Pyupgrade
"RUF100", # Unused noqa (auto-fixable)
"E", # pycodestyle
"F", # Pyflakes
"W", # pyupgrade
"B", # flake8-bugbear
"SIM", # flake8-simplify
"N",
"G",
"ISC",
"RUF",
"B",
"D101",
"D106",
"D2",
"D3",
"D400",
"D402",
"D403",
"D407",
"D408",
"D412",
"D419",
"TCH",
"TID251",
"TID253",
"B006", # Checks for uses of mutable objects as function argument defaults.
]
lint.ignore = [
"D203",
"D212",
"D213",
"D214",
"D215",
"E731",
"TCH003", # Do not move imports from stdlib to TYPE_CHECKING block
]
[tool.ruff.format]
docstring-code-format = true
[tool.pytest.ini_options]
# * Disable `flaky` plugin for pytest. This plugin conflicts with `rerunfailures` because provide same marker.
# * Disable `nose` builtin plugin for pytest. This feature deprecated in 7.2 and will be removed in pytest>=8
# * And we focus on use native pytest capabilities rather than adopt another frameworks.
addopts = "--cov-report term-missing --cov-report html:tests/reports/coverage_report_html --cov=dags --cov=plugins -rasl --verbosity=3 -p no:flaky -p no:nose"
log_level = "INFO"
filterwarnings = []
python_files = [
"test_*.py",
"example_*.py",
]
pythonpath = [
"."
]
testpaths = [
"tests",
]
[tool.mypy]
ignore_missing_imports = true
no_implicit_optional = true
warn_redundant_casts = true
warn_unused_ignores = false
plugins = []
pretty = true
show_error_codes = true
disable_error_code = [
"annotation-unchecked",
]