forked from kedro-org/kedro
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
132 lines (122 loc) · 2.81 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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
# PEP-518 https://peps.python.org/pep-0518/
[build-system]
# Minimum requirements for the build system to execute.
requires = ["setuptools>=65.5.1", "wheel"] # PEP 518 specifications.
[tool.black]
exclude = "/templates/|^features/steps/test_starter"
[tool.isort]
profile = "black"
[tool.pylint]
[tool.pylint.master]
ignore = "CVS"
ignore-patterns = "kedro/templates/*"
load-plugins = [
"pylint.extensions.docparams",
"pylint.extensions.no_self_use"
]
extension-pkg-whitelist = "cv2"
unsafe-load-any-extension = false
[tool.pylint.messages_control]
disable = [
"ungrouped-imports",
"duplicate-code"
]
enable = ["useless-suppression"]
[tool.pylint.refactoring]
max-nested-blocks = 5
[tool.pylint.format]
indent-after-paren=4
indent-string=" "
[tool.pylint.miscellaneous]
notes = [
"FIXME",
"XXX"
]
[tool.pylint.design]
min-public-methods = 1
[tool.coverage.report]
fail_under = 100
show_missing = true
omit = [
"kedro/templates/*",
"kedro/extras/logging/color_logger.py",
"kedro/extras/extensions/ipython.py",
"kedro/framework/cli/hooks/specs.py",
"kedro/framework/hooks/specs.py",
"kedro/extras/datasets/tensorflow/*",
"kedro/extras/datasets/holoviews/*",
"tests/*"
]
exclude_lines = ["pragma: no cover", "raise NotImplementedError"]
[tool.pytest.ini_options]
addopts="""
--cov-config pyproject.toml \
--cov-report xml:coverage.xml \
--cov-report term-missing \
--cov kedro \
--cov tests \
--ignore tests/template/fake_repo \
--ignore features \
--ignore kedro/templates \
--no-cov-on-fail \
-ra \
-W ignore"""
testpaths = [
"tests"
]
[tool.importlinter]
root_package = "kedro"
[[tool.importlinter.contracts]]
name = "CLI > Context > Library, Runner > Extras > IO & Pipeline"
type = "layers"
containers = "kedro"
layers = [
"framework.cli",
"framework.session",
"framework.context",
"framework.project",
"runner",
"extras.datasets",
"io",
"pipeline",
"config"
]
ignore_imports = [
"kedro.runner.parallel_runner -> kedro.framework.project",
"kedro.framework.hooks.specs -> kedro.framework.context"
]
[[tool.importlinter.contracts]]
name = "Pipeline and IO are independent"
type = "independence"
modules = [
"kedro.pipeline",
"kedro.io"
]
[[tool.importlinter.contracts]]
name = "Config cannot import Runner et al"
type = "forbidden"
source_modules = [
"kedro.config"
]
forbidden_modules = [
"kedro.runner",
"kedro.io",
"kedro.pipeline",
"kedro.extras.datasets"
]
[[tool.importlinter.contracts]]
name = "Runner et al cannot import Config"
type = "forbidden"
source_modules = [
"kedro.runner",
"kedro.io",
"kedro.pipeline",
"kedro.extras.datasets"
]
forbidden_modules = [
"kedro.config"
]
ignore_imports = [
"kedro.framework.context.context -> kedro.config",
"kedro.framework.session.session -> kedro.config"
]