-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
151 lines (145 loc) · 4.01 KB
/
pyproject.toml
File metadata and controls
151 lines (145 loc) · 4.01 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
[build-system]
build-backend = "uv_build"
requires = [ "uv-build>=0.10.4,<1" ]
[project]
name = "databricks-bundle-decorators"
version = "0.10.3"
description = "Decorator-based framework for defining Databricks jobs and tasks as Python code."
readme = "README.md"
authors = [ { name = "boccileonardo", email = "leonardobocci99@hotmail.com" } ]
requires-python = ">=3.12"
classifiers = [
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
]
dependencies = [
"databricks-bundles>=0.275",
"typer>=0.16",
"whenever>=0.10",
]
optional-dependencies.app = [
"dash>=2.14",
"dash-ag-grid>=31",
"dash-bootstrap-components>=1.5",
"databricks-sdk",
"plotly>=5.18",
]
optional-dependencies.aws = [
"fsspec",
"s3fs",
]
optional-dependencies.azure = [
"adlfs",
"fsspec",
]
optional-dependencies.gcp = [
"fsspec",
"gcsfs",
]
optional-dependencies.polars = [
"polars",
]
optional-dependencies.polars-delta = [
"deltalake",
"polars",
]
scripts.dbxdec = "databricks_bundle_decorators.cli:main"
scripts.dbxdec-run = "databricks_bundle_decorators.runtime:main"
[dependency-groups]
dev = [
"dash>=2.14",
"dash-ag-grid>=31",
"dash-bootstrap-components>=1.5",
"databricks-bundle-decorators",
"databricks-sdk",
"delta-spark>=3.2,<4",
"deltalake",
"mkdocstrings[python]",
"plotly>=5.18",
"polars",
"prek>=0.3.3",
"pyarrow>=23.0.1",
"pyproject-fmt>=2.16.1",
"pyspark>=3.5,<4",
"pytest>=9.0.2",
"pytest-cov>=6",
"ruff>=0.15.1",
"ty>=0.0.29,<0.1",
"vulture>=2.14",
"zensical"
]
docs = [
"mkdocstrings[python]>=1.0.3",
"zensical>=0.0.23",
]
[tool.uv]
sources.databricks-bundle-decorators = { workspace = true }
[tool.ruff]
format.docstring-code-format = true
lint.extend-select = [
"A", # flake8-builtins (shadowing builtins)
"ARG", # flake8-unused-arguments
"B", # flake8-bugbear (common bugs)
"BLE", # flake8-blind-except
"C4", # flake8-comprehensions
"DTZ", # flake8-datetimez
"FBT", # flake8-boolean-trap
"FLY", # flynt
"FURB", # refurb
"G", # flake8-logging-format
"I", # isort (import sorting)
"ICN", # flake8-import-conventions
"ISC", # flake8-implicit-str-concat
"LOG", # flake8-logging
"N", # pep8-naming
"PERF", # perflint
"PIE", # flake8-pie
"PL", # pylint
"PT", # flake8-pytest-style
"PTH", # flake8-use-pathlib
"RET", # flake8-return
"RSE", # flake8-raise
"RUF", # ruff-specific rules
"S", # flake8-bandit (security)
"SIM", # flake8-simplify
"T20", # flake8-print (catch stray prints)
"TRY", # tryceratops (exception handling)
"UP", # pyupgrade (modernize syntax for 3.12+)
"W", # pycodestyle warnings
]
lint.ignore = [
"ISC001", # conflicts with ruff formatter
"PLR0913", # too many arguments (decorator **kwargs pattern)
"PLR2004", # magic value comparison (noisy)
"S101", # assert is fine (tests + runtime guards)
"TRY003", # long exception messages outside class (too strict)
]
lint.per-file-ignores."**/app/**" = [
"T201", # print used for app logging
]
lint.per-file-ignores."**/cli.py" = [
"T201", # print is the correct output method for CLI
]
lint.per-file-ignores."__init__.py" = [
"F401", # unused imports (re-exports)
]
lint.per-file-ignores."tests/**" = [
"ARG001", # unused function argument (fixtures)
"ARG002", # unused method argument (test helpers)
"ARG005", # unused lambda argument (test stubs)
"B017", # broad pytest.raises is acceptable in tests
"PLR0904", # too many public methods (test classes)
"PT011", # broad pytest.raises match is acceptable in tests
"PT012", # multi-statement pytest.raises is acceptable in tests
"RUF012", # mutable class var without ClassVar (test classes)
"SLF001", # private member access (testing internals)
"T201", # print (debugging in tests)
]
lint.pylint.max-branches = 20
lint.pylint.max-statements = 90
[tool.ty]
src.exclude = [ "examples" ]
[tool.pytest]
ini_options.testpaths = [ "tests" ]