-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpyproject.toml
More file actions
165 lines (152 loc) · 4.45 KB
/
pyproject.toml
File metadata and controls
165 lines (152 loc) · 4.45 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
156
157
158
159
160
161
162
163
164
165
[build-system]
build-backend = "hatchling.build"
requires = [
"hatch-vcs>=0.4",
"hatchling>=1.25",
]
[project]
name = "kedro-dagster"
dynamic = ["version"]
authors = [
{ name = "Guillaume Tauzin", email = "gtauzin@stateful-y.io" },
]
maintainers = [
{ name = "Guillaume Tauzin", email = "gtauzin@stateful-y.io" }
]
description = "Kedro-Dagster makes it easy to deploy Kedro projects to Dagster"
license = "Apache-2.0"
readme.content-type = "text/markdown"
readme.file = "README.md"
requires-python = ">=3.10, <3.14"
classifiers = [
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
]
urls."Bug Tracker" = "https://github.com/stateful-y/kedro-dagster/issues"
urls."Changelog" = "https://github.com/stateful-y/kedro-dagster/releases"
urls.Documentation = "https://github.com/stateful-y/kedro-dagster/"
urls."Source Code" = "https://github.com/stateful-y/kedro-dagster"
dependencies = [
"kedro>=0.19,<2.0",
"kedro-datasets",
"dagster>=1.10,<2.0",
"dagster-webserver",
"dagster-dg-cli",
"pydantic>=1.0.0,<3.0.0",
]
[project.optional-dependencies]
mlflow = [
"kedro-mlflow>=0.13",
"mlflow>=2.20",
"dagster-mlflow",
]
[dependency-groups]
dev = [
{ include-group = "docs" },
{ include-group = "tests" },
{ include-group = "fix" },
]
docs = [
"mkdocs-material==9.7.5",
"mkdocs-git-revision-date-localized-plugin==1.5.1",
"mkdocstrings==1.0.3",
"mkdocstrings-python==2.0.3",
"mkdocs-glightbox==0.5.2",
"pymdown-extensions==10.21",
"black==26.3.1",
]
fix = [
"pre-commit-uv>=4.1",
]
tests = [
"pytest>=8.3",
"pytest-mock>=3.14",
"pytest-cov>=7.0",
"covdefaults>=2.3",
"psutil>=6.1",
"pyaml>=25.1",
"pandas>=2.3",
]
[project.entry-points."kedro.project_commands"]
dagster = "kedro_dagster.cli:commands"
[tool.hatch.version]
source = "vcs"
fallback-version = "0.0.0"
[tool.hatch.metadata.hooks.vcs.urls]
source_archive = "https://github.com/stateful-y/kedro-dagster/archive/{commit_hash}.zip"
[tool.ruff]
line-length = 120
show-fixes = true
[tool.ruff.format]
preview = true
docstring-code-format = true
docstring-code-line-length = 100
[tool.ruff.lint]
exclude = ["docs/**", "features/**"]
# all rules can be found here: https://beta.ruff.rs/docs/rules/
select = [
"F", # Pyflakes
"W", # pycodestyle
"E", # pycodestyle
"I", # isort
"UP", # pyupgrade
"PL", # Pylint
"T201", # Print Statement
]
ignore=[
"E203", # space before : (needed for how black formats slicing)
"E731", # do not assign a lambda expression, use a def
"E741", # do not use variables named 'l', 'O', or 'I'
"E501", # ruff format takes care of line-too-long
"PLR0913", # too many args in func def
"PLR0915", # too many statements
"PLR0912", # too many branches
"PLR2004", # magic value used in comparison
]
[tool.ruff.lint.per-file-ignores]
# It's fine not to put the import at the top of the file in the examples
# folder.
"examples/*"=["E402"]
[tool.pytest.ini_options]
addopts = "--color=yes"
doctest_optionflags = "NORMALIZE_WHITESPACE"
norecursedirs = "src/kedro_dagster/templates"
filterwarnings = [
# Ignore all Pydantic v2 deprecation warnings during tests
"ignore::pydantic.warnings.PydanticDeprecatedSince20",
"ignore::pydantic.warnings.PydanticDeprecatedSince212",
# Silence Kedro framework warnings about missing pipelines in test scenarios
"ignore:Your project does not contain any pipelines with nodes:UserWarning:kedro.framework.cli.starters",
# Ignore dagster-mlflow BetaWarning
"ignore:Function `_create_mlflow_run_hook` is currently in beta:dagster.BetaWarning:dagster_mlflow.hooks",
# Ignore pluggy `run_result` UserWarning
"ignore:Argument\\(s\\) 'run_result' which are declared in the hookspec cannot be found in this hook call:UserWarning",
]
[tool.mypy]
python_version = "3.13"
strict = true
ignore_missing_imports = true
disable_error_code = ["misc", "import-untyped"]
[tool.coverage]
paths.source = ["src/kedro_dagster"]
report.fail_under = 1
report.include_namespace_packages = true
report.skip_covered = false
html.show_contexts = true
run.omit = [
"src/templates/definitions.py",
"tests/*",
"*/tests/*",
]
run.parallel = true
run.branch = true
run.sigterm = true
run.concurrency = ["multiprocessing"]
run.plugins = [
"covdefaults",
]