-
Notifications
You must be signed in to change notification settings - Fork 156
Expand file tree
/
Copy pathpyproject.toml
More file actions
155 lines (138 loc) · 4.22 KB
/
pyproject.toml
File metadata and controls
155 lines (138 loc) · 4.22 KB
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
[build-system]
requires = ["hatchling>=1.5.0", "jupyterlab>=4.0.0,<5", "hatch-jupyter-builder>=0.5"]
build-backend = "hatchling.build"
[project]
name = "kubeflow-kale"
dynamic = ["version"]
description = "Convert JupyterNotebooks to Kubeflow Pipelines deployments"
readme = "README.md"
requires-python = ">=3.11"
license = { text = "Apache License Version 2.0" }
classifiers = [
"Framework :: Jupyter",
"Framework :: Jupyter :: JupyterLab",
"Framework :: Jupyter :: JupyterLab :: 4",
"Framework :: Jupyter :: JupyterLab :: Extensions",
"Framework :: Jupyter :: JupyterLab :: Extensions :: Prebuilt",
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
]
dependencies = [
"kfp[kubernetes]>=2.16.0",
"autopep8>=2.0.0",
"astor>=0.8.1",
"networkx>=3.0.0",
"jinja2>=3.0.0",
"pyflakes>=3.0.0",
"dill>=0.3.8",
"IPython>=8.30.0",
"jupyter-client>=8.6.3",
"jupyter-core>=5.8.1",
"nbconvert>=7.16.0",
"nbformat>=5.10.4",
"ipykernel>=6.29.5",
"notebook>=7.4.4",
"packaging>=25.0",
"progress>=1.5",
"kubernetes>=30.0.0",
]
authors = [
{ name = "Stefano Fioravanzo", email = "stefano.fioravanzo@gmail.com" }
]
[project.scripts]
kale = "kale.cli:main"
[project.urls]
Homepage = "https://github.com/kubeflow/kale"
[project.optional-dependencies]
jupyter = [
"jupyter_server>=2.4.0,<3",
]
dev = [
"pre-commit",
"pytest",
"pytest-clarity",
"testfixtures",
"pytest-cov",
"ruff",
"coverage",
"pytest-asyncio",
"pytest-jupyter[server]>=0.6.0",
]
[tool.hatch.version]
path = "kale/__init__.py"
[tool.hatch.build.targets.sdist]
artifacts = ["jupyterlab_kubeflow_kale/labextension"]
exclude = [".github", "binder", ".venv*"]
[tool.hatch.build.targets.wheel]
packages = ["kale", "jupyterlab_kubeflow_kale"]
[tool.hatch.build.targets.wheel.shared-data]
"jupyterlab_kubeflow_kale/labextension" = "share/jupyter/labextensions/jupyterlab-kubeflow-kale"
"labextension/jupyter-config/server-config" = "etc/jupyter/jupyter_server_config.d"
[tool.hatch.build.hooks.jupyter-builder]
dependencies = ["hatch-jupyter-builder>=0.5"]
build-function = "hatch_jupyter_builder.npm_builder"
optional-editable-build = "true"
ensured-targets = [
"jupyterlab_kubeflow_kale/labextension/static/style.js",
"jupyterlab_kubeflow_kale/labextension/package.json",
]
skip-if-exists = ["jupyterlab_kubeflow_kale/labextension/static/style.js"]
[tool.hatch.build.hooks.jupyter-builder.build-kwargs]
build_cmd = "build:prod"
npm = ["jlpm"]
source_dir = "labextension"
build_dir = "jupyterlab_kubeflow_kale/labextension"
[tool.check-wheel-contents]
ignore = ["W002"]
[tool.ruff]
line-length = 100
target-version = "py312"
src = ["kale"]
extend-exclude = [
".venv",
"venv",
"build",
"dist",
"__pycache__",
"kale/tests/assets",
]
[tool.ruff.lint]
select = [
"F", # pyflakes
"E", # pycodestyle
"W", # warnings
"I", # isort (imports order)
"UP", # pyupgrade
"N", # pep8-naming
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"SIM", # flake8-simplify
]
ignore = [
"B006", # mutable-argument-default
"B027", # empty method in abstract class (intentional hook methods)
"B904", # raise-without-from-inside-except (too noisy for existing code)
"E402", # module level import not at top (intentional for logging setup)
"E501", # line length handled by formatter
"E721", # type comparison with == (existing patterns)
"F403", # star imports (used in marshal backends)
"N801", # class name not CapWords (internal helper classes)
"N812", # lowercase imported as uppercase (KALE_VERSION pattern)
"N815", # mixedCase variable (labextension API compatibility)
"N818", # exception name should end with Error (existing naming convention)
"SIM115", # context manager for open (fine for simple read patterns)
"UP031", # percent format (existing code style)
]
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
skip-magic-trailing-comma = false
docstring-code-format = true
docstring-code-line-length = 100
[tool.ruff.lint.isort]
known-first-party = ["kale"]
combine-as-imports = true
force-sort-within-sections = true