forked from kedro-org/kedro
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
177 lines (161 loc) · 3.99 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
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
# PEP-518 https://peps.python.org/pep-0518/
[build-system]
# Minimum requirements for the build system to execute.
requires = ["setuptools>=65.5.1"] # PEP 518 specifications
build-backend = "setuptools.build_meta"
[project]
name = "kedro"
authors = [
{name = "Kedro"}
]
description = "Kedro helps you build production-ready data and analytics pipelines"
requires-python = ">=3.7"
keywords = [
"pipelines",
"machine learning",
"data pipelines",
"data science",
"data engineering",
]
license = {text = "Apache Software License (Apache 2.0)"}
classifiers = [
"Development Status :: 4 - Beta",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
]
dynamic = ["readme", "version", "dependencies", "optional-dependencies"]
[project.urls]
Homepage = "https://kedro.org"
Source = "https://github.com/kedro-org/kedro"
Documentation = "https://docs.kedro.org"
Tracker = "https://github.com/kedro-org/kedro/issues"
[project.scripts]
kedro = "kedro.framework.cli:main"
[tool.setuptools]
zip-safe = false
[tool.setuptools.packages.find]
include = ["kedro*"]
[tool.setuptools.dynamic]
readme = {file = "README.md", content-type = "text/markdown"}
version = {attr = "kedro.__version__"}
dependencies = {file = "dependency/requirements.txt"}
[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"
]