-
Notifications
You must be signed in to change notification settings - Fork 1
/
pyproject.toml
189 lines (165 loc) · 5.47 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
178
179
180
181
182
183
184
185
186
187
188
189
[project]
name = "kedro-pack"
version = "0.18.12.1"
authors = [
{ name="Kevin Mills", email="[email protected]" },
]
description = "A generic recipe to install the kedro framework and additional kedro plugins."
readme = "README.md"
requires-python = ">=3.10"
classifiers = [
"Programming Language :: Python :: 3",
"License :: OSI Approved :: Apache Software License",
"Operating System :: OS Independent",
]
[project.urls]
"Homepage" = "https://github.com/millsks/kedro-pack"
"Bug Tracker" = "https://github.com/millsks/kedro-pack/issues"
# ==== pytest ====
[tool.pytest.ini_options]
minversion = "7.0"
#addopts = "--ds=config.settings.test --reuse-db"
python_files = [
"tests.py",
"test_*.py",
]
# ==== Coverage ====
[tool.coverage.run]
include = ["src/**"]
# ==== black ====
[tool.black]
force-exclude = '''recipe|.github|.gitkeep|.idea/*|poetry.lock|pyproject.toml|.pre-commit-config.yaml|.gitignore|^docs/|/migrations/|/.idea/|/node_modules/|/venv/|/env/|/build/|/dist/|/\.git/|/\.hg/|/\.mypy_cache/|/\.tox/|/\.venv/|/\.svn/|/\.cache/|/\.pytest_cache/|/\.vscode/|/\.serverless/|/\.serverless_plugins/|/\.serverless_plugins/|/\.ser'''
line-length = 120
target-version = ['py310']
# ==== isort ====
[tool.isort]
profile = "black"
line_length = 120
# ==== flake8 ====
[tool.flake8]
max-line-length = 120
max-complexity = 15
max-cognitive-complexity = 15
inline-quotes = "double"
per-file-ignores = "__init__.py:F401"
exclude = ["recipe/**",".github/**","**/.gitkeep","README*","poetry.lock","pyproject.toml",".idea/*",".tox",".git","*/migrations/*","*/static/CACHE/*","docs","node_modules","venv",".venv","tests","node"]
# ==== mypy ====
[tool.mypy]
python_version = "3.10"
check_untyped_defs = true
ignore_missing_imports = true
warn_unused_ignores = true
warn_redundant_casts = true
warn_unused_configs = true
exclude = [
"tests",
"node",
]
[[tool.mypy.overrides]]
ignore_errors = true
# ==== PyLint ====
[tool.pylint.MASTER]
ignore = [
"CVS",
".svn",
".hg",
".git",
"venv",
".venv",
"env",
"node_modules",
"migrations",
"static",
"templates",
"docs",
"build",
"dist",
"tests",
"test",
"setup.py",
"setup.cfg",
"requirements.txt",
]
[tool.pylint.FORMAT]
max-line-length = 120
[tool.pylint."MESSAGES CONTROL"]
disable = [
"W0511", # "TODO" comments
"W0221", # Arguments number differs from overridden method
"C0103", # Variable name doesn't conform to snake_case convention
"I0001", # Used to inform that a built-in module has not been checked using the raw checkers.
"I0010", # Used when an inline option is either badly formatted or can't be used inside modules.
"I0011", # Used when an inline option disables a message or a messages category.
"I0013", # Used to inform that the file will not be checked.
"I0020", # A message was triggered on a line, but suppressed explicitly by a disable= comment in the file. This message is not generated for messages that are ignored due to configuration settings.
"I0021", # Reported when a message is explicitly disabled for a line or a block of code, but never triggered.
"I0022", # Some inline pylint options have been renamed or reworked, only the most recent form should be used.
"I0023", # Used when a message is enabled or disabled by id.
"W1203", # Use % formatting in logging functions and pass the % parameters as arguments
]
[tool.pylint.DESIGN]
max-parents = 13
[tool.pylint.TYPECHECK]
generated-members = [
"REQUEST",
"acl_users",
"aq_parent",
"[a-zA-Z]+_set{1,2}",
"save",
"delete",
]
[tool.bandit]
exclude_dirs = ["tests", "node"]
[tool.poetry]
name = "kedro-pack"
version = "0.18.12.1"
description = "A generic recipe to install the kedro framework and additional kedro plugins."
authors = ["Kevin Mills <[email protected]>"]
license = "Apache-2.0"
readme = "README.md"
[tool.poetry.dependencies]
python = ">=3.10,<3.11"
pip = ">=23.2.1"
kedro = {version = "==0.18.12", python = ">=3.10,<3.11"}
kedro-datasets = {version = "==1.6.0", python = ">=3.10,<3.11"}
kedro-airflow = {version = "==0.6.0", python = ">=3.10,<3.11"}
kedro-mlflow = {version = "==0.11.9", python = ">=3.10,<3.11"}
kedro-viz = {version = "==6.4.0", python = ">=3.10,<3.11"}
kedro-light = {version = "==2023.3.13", python = ">=3.10,<3.11"}
[tool.poetry.group.dev.dependencies]
bandit = ">=1.7.5,<2.0.0"
black = ">=23.7.0,<24.0.0"
flake8 = ">=6.1.0,<7.0.0"
flake8-black = ">=0.3.6,<1.0.0"
flake8-bugbear = ">=23.7.10,<24.0.0"
flake8-builtins = ">=2.1.0,<3.0.0"
flake8-cognitive-complexity = ">=0.1.0,<1.0.0"
flake8-comprehensions = ">=3.14.0,<4.0.0"
flake8-docstrings = ">=1.7.0,<2.0.0"
flake8-eradicate = ">=1.5.0,<2.0.0"
flake8-isort = ">=6.0.0,<7.0.0"
flake8-logging-format = ">=0.9.0,<1.0.0"
flake8-mutable = ">=1.2.0,<2.0.0"
flake8-print = ">=5.0.0,<6.0.0"
flake8-pylint = ">=0.2.0,<1.0.0"
flake8-pyproject = ">=1.2.3,<2.0.0"
flake8-quotes = ">=3.3.2,<4.0.0"
flake8-unused-arguments = ">=0.0.13,<1.0.0"
flake8-use-fstring = ">=1.4,<2.0.0"
flake8-use-pathlib = ">=0.3.0,<1.0.0"
isort = ">=5.12.0"
mypy = ">=1.4.1,<2.0.0"
pre-commit = ">=3.3.3,<4.0.0"
pytest = ">=7.4.0,<8.0.0"
pytest-cookies = ">=0.7.0,<1.0.0"
pytest-cov = ">=4.1.0,<5.0.0"
pytest-env = ">=1.0.1,<2.0.0"
pytest-html = ">=3.2.0,<4.0.0"
pytest-instafail = ">=0.5.0,<1.0.0"
pytest-mock = ">=3.11.1,<4.0.0"
pytest-sugar = ">=0.9.7,<1.0.0"
pytest-timeout = ">=2.1.0,<3.0.0"
pytest-xdist = ">=3.3.1,<4.0.0"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"