sparklint 0.1.0__py3-none-win_amd64.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
sparklint/__init__.py ADDED
@@ -0,0 +1,38 @@
1
+ """sparklint: a fast, Spark-aware linter for PySpark code (Rust binary)."""
2
+
3
+ from __future__ import annotations
4
+
5
+ import os
6
+ import sys
7
+ import sysconfig
8
+
9
+ __all__ = ["find_sparklint_bin"]
10
+
11
+
12
+ def find_sparklint_bin() -> str:
13
+ """Return the path to the bundled ``sparklint`` binary."""
14
+ exe = "sparklint" + (sysconfig.get_config_var("EXE") or "")
15
+
16
+ candidates = [
17
+ os.path.join(sysconfig.get_path("scripts"), exe),
18
+ ]
19
+ if sys.version_info >= (3, 10):
20
+ user_scheme = sysconfig.get_preferred_scheme("user")
21
+ elif os.name == "nt":
22
+ user_scheme = "nt_user"
23
+ elif sys.platform == "darwin" and sys._framework: # type: ignore[attr-defined]
24
+ user_scheme = "osx_framework_user"
25
+ else:
26
+ user_scheme = "posix_user"
27
+ candidates.append(os.path.join(sysconfig.get_path("scripts", scheme=user_scheme), exe))
28
+ # `pip install --target` / unusual layouts: <prefix>/bin next to the package.
29
+ pkg_root = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
30
+ candidates.append(os.path.join(pkg_root, "bin", exe))
31
+ candidates.append(os.path.join(os.path.dirname(pkg_root), "bin", exe))
32
+
33
+ for path in candidates:
34
+ if os.path.isfile(path):
35
+ return path
36
+ raise FileNotFoundError(
37
+ "sparklint binary not found; searched: " + ", ".join(candidates)
38
+ )
sparklint/__main__.py ADDED
@@ -0,0 +1,21 @@
1
+ """``python -m sparklint`` — run the bundled binary."""
2
+
3
+ from __future__ import annotations
4
+
5
+ import os
6
+ import subprocess
7
+ import sys
8
+
9
+ from sparklint import find_sparklint_bin
10
+
11
+
12
+ def _run() -> None:
13
+ sparklint = find_sparklint_bin()
14
+ if sys.platform == "win32":
15
+ completed = subprocess.run([sparklint, *sys.argv[1:]])
16
+ sys.exit(completed.returncode)
17
+ os.execvp(sparklint, [sparklint, *sys.argv[1:]])
18
+
19
+
20
+ if __name__ == "__main__":
21
+ _run()
@@ -0,0 +1,249 @@
1
+ Metadata-Version: 2.4
2
+ Name: sparklint
3
+ Version: 0.1.0
4
+ Classifier: Development Status :: 3 - Alpha
5
+ Classifier: Environment :: Console
6
+ Classifier: Intended Audience :: Developers
7
+ Classifier: License :: OSI Approved :: Apache Software License
8
+ Classifier: Operating System :: OS Independent
9
+ Classifier: Programming Language :: Python
10
+ Classifier: Programming Language :: Python :: 3
11
+ Classifier: Programming Language :: Python :: 3 :: Only
12
+ Classifier: Programming Language :: Rust
13
+ Classifier: Topic :: Software Development :: Quality Assurance
14
+ Classifier: Topic :: Software Development :: Testing
15
+ License-File: LICENSE
16
+ License-File: NOTICE
17
+ Summary: A fast, Spark-aware linter for PySpark code and Databricks notebooks, written in Rust.
18
+ Keywords: pyspark,spark,databricks,linter,static-analysis,performance,cost
19
+ Home-Page: https://github.com/clusterbite/sparklint
20
+ Author-email: Marthinus Bosman <hello@clusterbite.com>
21
+ Maintainer-email: ClusterBite <hello@clusterbite.com>
22
+ License: Apache-2.0
23
+ Requires-Python: >=3.9
24
+ Description-Content-Type: text/markdown; charset=UTF-8; variant=GFM
25
+ Project-URL: Changelog, https://github.com/clusterbite/sparklint/blob/main/CHANGELOG.md
26
+ Project-URL: Documentation, https://github.com/clusterbite/sparklint#readme
27
+ Project-URL: Homepage, https://github.com/clusterbite/sparklint
28
+ Project-URL: Issues, https://github.com/clusterbite/sparklint/issues
29
+ Project-URL: Repository, https://github.com/clusterbite/sparklint
30
+ Project-URL: Rules, https://github.com/clusterbite/sparklint/blob/main/docs/RULES_CATALOG.md
31
+
32
+ # sparklint
33
+
34
+ A fast linter for PySpark code and Databricks notebooks, written in Rust and installed
35
+ with pip.
36
+
37
+ sparklint looks for Spark code habits that make jobs slow and expensive: unbounded
38
+ `collect()`s, `count()` used as an emptiness check or only for a log line, Python UDFs
39
+ where a built-in function exists, actions and writes inside loops, caches used once,
40
+ cartesian joins, `coalesce(1)` before a write, risky Spark configs, and so on. On
41
+ Databricks these patterns turn directly into extra cluster hours.
42
+
43
+ It tracks Spark types (SparkSession, DataFrame, Column, GroupedData, Window, RDD, readers,
44
+ writers, streams), so rules fire only on real Spark objects. A `count()` on a Python list
45
+ or a pandas DataFrame is not reported, and DataFrames passed into functions or returned
46
+ from helpers in other modules are still recognised.
47
+
48
+ ## What sparklint does not tell you
49
+
50
+ sparklint reads code. It cannot tell you which finding costs real money, or how much:
51
+ that depends on how big the data is, how often the job runs and what the cluster costs.
52
+ And many Databricks savings are not in the code at all: cluster and warehouse sizing,
53
+ idle time, job compute versus all-purpose compute, spot instances, tables nobody reads.
54
+
55
+ [ClusterBite](https://clusterbite.com/?utm_source=github&utm_medium=readme&utm_campaign=sparklint) finds those from your workspace's own usage data and measures what each change saved.
56
+
57
+ **Status: early (0.x).** Rules, codes and output may still change between minor versions.
58
+ Reports of false positives are especially welcome.
59
+
60
+ ## Install
61
+
62
+ ```bash
63
+ pip install sparklint # or: uv tool install sparklint / pipx install sparklint
64
+ sparklint --version
65
+ ```
66
+
67
+ Wheels are published for Linux (x86_64, aarch64), macOS (x86_64, arm64) and Windows
68
+ (x86_64). They contain a native binary, so Python is only needed to install it. Other
69
+ platforms build from the source distribution, which needs a Rust toolchain (1.88+).
70
+
71
+ ## Quickstart
72
+
73
+ ```bash
74
+ sparklint check # lint the current directory
75
+ sparklint check src/ notebooks/ # .py files, Databricks source notebooks, .ipynb
76
+ sparklint check --fix # apply safe fixes
77
+ sparklint check --unsafe-fixes # also apply fixes that can change behaviour
78
+ sparklint check --statistics # counts per rule
79
+ sparklint rules # list the rules
80
+ sparklint rule ACT002 # explain one rule (code or name, e.g. collect-unbounded)
81
+ ```
82
+
83
+ Example: save this as `etl.py` and run `sparklint check etl.py`.
84
+
85
+ ```python
86
+ from pyspark.sql import SparkSession
87
+
88
+ spark = SparkSession.builder.getOrCreate()
89
+ orders = spark.read.parquet("/data/orders")
90
+ print(f"rows: {orders.count()}")
91
+ if orders.count() > 0:
92
+ orders.write.mode("overwrite").saveAsTable("analytics.big_orders")
93
+ ```
94
+
95
+ ```text
96
+ etl.py:5:23: ACT007 orders.count() is computed only to be logged — a full job for a log line.
97
+ |
98
+ 4 | orders = spark.read.parquet("/data/orders")
99
+ 5 | print(f"rows: {orders.count()}")
100
+ | ^^^^^^^ ACT007
101
+ 6 | if orders.count() > 0:
102
+ |
103
+ = help: Drop it, read numOutputRows from the Delta commit, or use df.observe() to compute the metric in the same job.
104
+
105
+ etl.py:6:4: ACT006 [*] orders.count() used as an emptiness check scans every row — use orders.isEmpty().
106
+ |
107
+ 5 | print(f"rows: {orders.count()}")
108
+ 6 | if orders.count() > 0:
109
+ | ^^^^^^^^^^^^^^^^^^ ACT006
110
+ 7 | orders.write.mode("overwrite").saveAsTable("analytics.big_orders")
111
+ |
112
+ = fix: Replace with `not orders.isEmpty()`
113
+
114
+ Found 2 findings in 1 file checked (0.00s).
115
+ [*] 1 fixable with the `--fix` option.
116
+ ```
117
+
118
+ Exit codes: `0` no findings, `1` findings, `2` error (bad config, unknown rule selector,
119
+ missing path). `--exit-zero` exits 0 even when there are findings.
120
+
121
+ ### Output formats
122
+
123
+ `--output-format text|json|github|sarif`
124
+
125
+ - `text` (default): ruff-style, with a code frame and the suggested fix.
126
+ - `json`: one object per finding (code, name, severity, location, fix edits).
127
+ - `github`: GitHub Actions workflow annotations.
128
+ - `sarif`: SARIF 2.1.0, for GitHub code scanning and other SARIF viewers.
129
+
130
+ ### Selecting rules
131
+
132
+ Rule codes are a three-letter family plus three digits: `ACT` actions and driver, `PRF`
133
+ plan and shuffle performance, `UDF` user-defined functions, `IOD` I/O and Delta, `CFG`
134
+ Spark config, `STM` Structured Streaming, `COR` correctness, `DBX` Databricks platform,
135
+ `PDS` pandas-on-Spark, `STY` style.
136
+
137
+ ```bash
138
+ sparklint check --select ACT,PRF # families or single codes
139
+ sparklint check --extend-select ACT001 # add to the configured selection
140
+ sparklint check --ignore STY # turn rules off
141
+ sparklint check --select tag:cost # by tag
142
+ sparklint check --select review # presets: default, review, strict, cylint-compat, serverless
143
+ ```
144
+
145
+ ### Configuration
146
+
147
+ Configuration goes in `[tool.sparklint]` in `pyproject.toml`, or in `sparklint.toml`
148
+ (the closest file wins):
149
+
150
+ ```toml
151
+ [tool.sparklint]
152
+ extend-select = ["ACT001"]
153
+ ignore = ["STY"]
154
+ extend-exclude = ["generated/**"]
155
+ spark-version = "3.5" # fixes that need a newer Spark are not offered
156
+ ```
157
+
158
+ Test code usually calls actions on purpose: an assert like `df.count() > 0` or a
159
+ `collect()` on a small fixture is fine there. Turn the action rules off for tests:
160
+
161
+ ```toml
162
+ [tool.sparklint.per-file-ignores]
163
+ "tests/**" = ["ACT"]
164
+ ```
165
+
166
+ All options are listed in [docs/DEVELOPMENT.md](https://github.com/clusterbite/sparklint/blob/main/docs/DEVELOPMENT.md#cli).
167
+
168
+ ### Suppressions
169
+
170
+ Suppress a finding with `# noqa: ACT002` or `# sparklint: ignore[ACT002]` on the line, or
171
+ `# sparklint: file-ignore[ACT002]` for a whole file. cylint's `# cy:ignore CY001` comments
172
+ are honoured too.
173
+
174
+ ## Rules
175
+
176
+ Every rule, with its rationale, detection logic and examples, is in
177
+ [docs/RULES_CATALOG.md](https://github.com/clusterbite/sparklint/blob/main/docs/RULES_CATALOG.md).
178
+ `sparklint rules` lists the rules of your installed version, and `sparklint rule <CODE>`
179
+ prints the details of one.
180
+
181
+ ## CI and editors
182
+
183
+ ### GitHub Actions
184
+
185
+ ```yaml
186
+ # .github/workflows/sparklint.yml
187
+ name: sparklint
188
+ on: [push, pull_request]
189
+ jobs:
190
+ sparklint:
191
+ runs-on: ubuntu-latest
192
+ steps:
193
+ - uses: actions/checkout@v7
194
+ - uses: actions/setup-python@v7
195
+ with:
196
+ python-version: "3.12"
197
+ - run: pip install sparklint
198
+ - run: sparklint check --output-format github .
199
+ ```
200
+
201
+ For GitHub code scanning, write SARIF and upload it:
202
+
203
+ ```yaml
204
+ - run: sparklint check --output-format sarif --exit-zero . > sparklint.sarif
205
+ - uses: github/codeql-action/upload-sarif@v4
206
+ with:
207
+ sarif_file: sparklint.sarif
208
+ ```
209
+
210
+ ### pre-commit
211
+
212
+ With the published wheel (fast, no Rust toolchain needed):
213
+
214
+ ```yaml
215
+ # .pre-commit-config.yaml
216
+ repos:
217
+ - repo: local
218
+ hooks:
219
+ - id: sparklint
220
+ name: sparklint
221
+ entry: sparklint check
222
+ language: python
223
+ additional_dependencies: ["sparklint==0.1.0"]
224
+ types_or: [python, jupyter]
225
+ ```
226
+
227
+ This repository also has a `.pre-commit-hooks.yaml`, so
228
+ `repo: https://github.com/clusterbite/sparklint` with `rev: v0.1.0` and `id: sparklint`
229
+ works as well, but pre-commit then builds sparklint from source, which needs a Rust
230
+ toolchain and takes a few minutes the first time.
231
+
232
+ ### Editors
233
+
234
+ There is no language server yet. Run `sparklint check` from your editor's task runner,
235
+ or feed the `json` / `sarif` output to a plugin that reads them.
236
+
237
+ ## Contributing
238
+
239
+ Issues and pull requests are welcome; see [CONTRIBUTING.md](https://github.com/clusterbite/sparklint/blob/main/CONTRIBUTING.md). False
240
+ positives are bugs: please include a minimal snippet. For security issues see
241
+ [SECURITY.md](https://github.com/clusterbite/sparklint/blob/main/SECURITY.md). Design notes are in [docs/DESIGN.md](https://github.com/clusterbite/sparklint/blob/main/docs/DESIGN.md).
242
+
243
+ ## License
244
+
245
+ Apache-2.0. See [LICENSE](https://github.com/clusterbite/sparklint/blob/main/LICENSE) and [NOTICE](https://github.com/clusterbite/sparklint/blob/main/NOTICE).
246
+
247
+ Built by [ClusterBite](https://clusterbite.com/?utm_source=github&utm_medium=readme&utm_campaign=sparklint),
248
+ which works on Databricks cost optimization.
249
+
@@ -0,0 +1,9 @@
1
+ sparklint/__init__.py,sha256=BONaFUS8D5CWQOA8MsRKBRY4WjdKY77pTGbg8hzKrUo,1372
2
+ sparklint/__main__.py,sha256=Q9yIGlETyQYZjyUF9P95onD_tey7WaxkYEGs-_U6Tio,483
3
+ sparklint-0.1.0.data/scripts/sparklint.exe,sha256=AGYzmAlxwhkFdNSqJf0MMpupkPgIUqEvYRXhVr3PXrA,5891072
4
+ sparklint-0.1.0.dist-info/METADATA,sha256=6D9RALfUeFEwruJNH8Xp-Q9n2SCMXMlMs8CtYofsnck,9879
5
+ sparklint-0.1.0.dist-info/WHEEL,sha256=Uvw7WSmy7Kj2FBk8Va4L_dq4MDW8X5Ynby-pOX3ZNS0,94
6
+ sparklint-0.1.0.dist-info/licenses/LICENSE,sha256=Pd-b5cKP4n2tFDpdx27qJSIq0d1ok0oEcGTlbtL6QMU,11560
7
+ sparklint-0.1.0.dist-info/licenses/NOTICE,sha256=KDHOvPfoqHbzK6aYfMq1dabZAtuC1A23sYb2JJJ3QJM,529
8
+ sparklint-0.1.0.dist-info/sboms/sparklint.cyclonedx.json,sha256=XR6ew3f4428LkacVgkozGy6b6ivcSEk_OidmSpEoMYU,129319
9
+ sparklint-0.1.0.dist-info/RECORD,,
@@ -0,0 +1,4 @@
1
+ Wheel-Version: 1.0
2
+ Generator: maturin (1.16.0)
3
+ Root-Is-Purelib: false
4
+ Tag: py3-none-win_amd64
@@ -0,0 +1,202 @@
1
+
2
+ Apache License
3
+ Version 2.0, January 2004
4
+ http://www.apache.org/licenses/
5
+
6
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+ 1. Definitions.
9
+
10
+ "License" shall mean the terms and conditions for use, reproduction,
11
+ and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by
14
+ the copyright owner that is granting the License.
15
+
16
+ "Legal Entity" shall mean the union of the acting entity and all
17
+ other entities that control, are controlled by, or are under common
18
+ control with that entity. For the purposes of this definition,
19
+ "control" means (i) the power, direct or indirect, to cause the
20
+ direction or management of such entity, whether by contract or
21
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+ outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+ "You" (or "Your") shall mean an individual or Legal Entity
25
+ exercising permissions granted by this License.
26
+
27
+ "Source" form shall mean the preferred form for making modifications,
28
+ including but not limited to software source code, documentation
29
+ source, and configuration files.
30
+
31
+ "Object" form shall mean any form resulting from mechanical
32
+ transformation or translation of a Source form, including but
33
+ not limited to compiled object code, generated documentation,
34
+ and conversions to other media types.
35
+
36
+ "Work" shall mean the work of authorship, whether in Source or
37
+ Object form, made available under the License, as indicated by a
38
+ copyright notice that is included in or attached to the work
39
+ (an example is provided in the Appendix below).
40
+
41
+ "Derivative Works" shall mean any work, whether in Source or Object
42
+ form, that is based on (or derived from) the Work and for which the
43
+ editorial revisions, annotations, elaborations, or other modifications
44
+ represent, as a whole, an original work of authorship. For the purposes
45
+ of this License, Derivative Works shall not include works that remain
46
+ separable from, or merely link (or bind by name) to the interfaces of,
47
+ the Work and Derivative Works thereof.
48
+
49
+ "Contribution" shall mean any work of authorship, including
50
+ the original version of the Work and any modifications or additions
51
+ to that Work or Derivative Works thereof, that is intentionally
52
+ submitted to Licensor for inclusion in the Work by the copyright owner
53
+ or by an individual or Legal Entity authorized to submit on behalf of
54
+ the copyright owner. For the purposes of this definition, "submitted"
55
+ means any form of electronic, verbal, or written communication sent
56
+ to the Licensor or its representatives, including but not limited to
57
+ communication on electronic mailing lists, source code control systems,
58
+ and issue tracking systems that are managed by, or on behalf of, the
59
+ Licensor for the purpose of discussing and improving the Work, but
60
+ excluding communication that is conspicuously marked or otherwise
61
+ designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by Licensor and
65
+ subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by combination of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding those notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
176
+
177
+ END OF TERMS AND CONDITIONS
178
+
179
+ APPENDIX: How to apply the Apache License to your work.
180
+
181
+ To apply the Apache License to your work, attach the following
182
+ boilerplate notice, with the fields enclosed by brackets "[]"
183
+ replaced with your own identifying information. (Don't include
184
+ the brackets!) The text should be enclosed in the appropriate
185
+ comment syntax for the file format. We also recommend that a
186
+ file or class name and description of purpose be included on the
187
+ same "printed page" as the copyright notice for easier
188
+ identification within third-party archives.
189
+
190
+ Copyright [yyyy] [name of copyright owner]
191
+
192
+ Licensed under the Apache License, Version 2.0 (the "License");
193
+ you may not use this file except in compliance with the License.
194
+ You may obtain a copy of the License at
195
+
196
+ http://www.apache.org/licenses/LICENSE-2.0
197
+
198
+ Unless required by applicable law or agreed to in writing, software
199
+ distributed under the License is distributed on an "AS IS" BASIS,
200
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201
+ See the License for the specific language governing permissions and
202
+ limitations under the License.
@@ -0,0 +1,14 @@
1
+ sparklint
2
+ Copyright 2026 Marthinus Bosman / ClusterBite
3
+
4
+ This product is licensed under the Apache License, Version 2.0 (see LICENSE).
5
+
6
+ Third-party material
7
+ --------------------
8
+
9
+ Compiled dependencies:
10
+
11
+ The sparklint binary statically links Rust crates published on crates.io, including the
12
+ Python parser crates of Ruff (https://github.com/astral-sh/ruff, Copyright (c) 2022
13
+ Charles Marsh, MIT License). The licenses of all linked crates are listed in their
14
+ crates.io packages; Cargo.lock lists the exact versions.