assert-pytest-test-can-fail 20260908004717__tar.gz

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.
Files changed (41) hide show
  1. assert_pytest_test_can_fail-20260908004717/.claude/memories/md-paragraphs-wrap-at-80.md +18 -0
  2. assert_pytest_test_can_fail-20260908004717/.claude/memories/no-wrapping-outside-md-files.md +19 -0
  3. assert_pytest_test_can_fail-20260908004717/.claude/memories/push-directly-to-main.md +12 -0
  4. assert_pytest_test_can_fail-20260908004717/.claude/memories/tasks-must-be-indivisible.md +19 -0
  5. assert_pytest_test_can_fail-20260908004717/.github/workflows/documentation.yml +26 -0
  6. assert_pytest_test_can_fail-20260908004717/.github/workflows/release.yml +317 -0
  7. assert_pytest_test_can_fail-20260908004717/.gitignore +77 -0
  8. assert_pytest_test_can_fail-20260908004717/CLAUDE.md +10 -0
  9. assert_pytest_test_can_fail-20260908004717/LICENSE.txt +190 -0
  10. assert_pytest_test_can_fail-20260908004717/PKG-INFO +186 -0
  11. assert_pytest_test_can_fail-20260908004717/README.md +162 -0
  12. assert_pytest_test_can_fail-20260908004717/action.yml +48 -0
  13. assert_pytest_test_can_fail-20260908004717/pyproject.toml +45 -0
  14. assert_pytest_test_can_fail-20260908004717/setup.cfg +4 -0
  15. assert_pytest_test_can_fail-20260908004717/src/assert_pytest_test_can_fail/__init__.py +0 -0
  16. assert_pytest_test_can_fail-20260908004717/src/assert_pytest_test_can_fail/__main__.py +3 -0
  17. assert_pytest_test_can_fail-20260908004717/src/assert_pytest_test_can_fail/cli.py +274 -0
  18. assert_pytest_test_can_fail-20260908004717/src/assert_pytest_test_can_fail/py.typed +0 -0
  19. assert_pytest_test_can_fail-20260908004717/src/assert_pytest_test_can_fail/scanner.py +116 -0
  20. assert_pytest_test_can_fail-20260908004717/src/assert_pytest_test_can_fail.egg-info/PKG-INFO +186 -0
  21. assert_pytest_test_can_fail-20260908004717/src/assert_pytest_test_can_fail.egg-info/SOURCES.txt +39 -0
  22. assert_pytest_test_can_fail-20260908004717/src/assert_pytest_test_can_fail.egg-info/dependency_links.txt +1 -0
  23. assert_pytest_test_can_fail-20260908004717/src/assert_pytest_test_can_fail.egg-info/entry_points.txt +2 -0
  24. assert_pytest_test_can_fail-20260908004717/src/assert_pytest_test_can_fail.egg-info/scm_file_list.json +36 -0
  25. assert_pytest_test_can_fail-20260908004717/src/assert_pytest_test_can_fail.egg-info/scm_version.json +8 -0
  26. assert_pytest_test_can_fail-20260908004717/src/assert_pytest_test_can_fail.egg-info/top_level.txt +1 -0
  27. assert_pytest_test_can_fail-20260908004717/test/__init__.py +0 -0
  28. assert_pytest_test_can_fail-20260908004717/test/conftest.py +81 -0
  29. assert_pytest_test_can_fail-20260908004717/test/e2e/__init__.py +0 -0
  30. assert_pytest_test_can_fail-20260908004717/test/e2e/conftest.py +21 -0
  31. assert_pytest_test_can_fail-20260908004717/test/e2e/test_e2e.py +211 -0
  32. assert_pytest_test_can_fail-20260908004717/test/helpers.py +21 -0
  33. assert_pytest_test_can_fail-20260908004717/test/integration/__init__.py +0 -0
  34. assert_pytest_test_can_fail-20260908004717/test/integration/conftest.py +23 -0
  35. assert_pytest_test_can_fail-20260908004717/test/integration/test_cli.py +464 -0
  36. assert_pytest_test_can_fail-20260908004717/test/samples.py +232 -0
  37. assert_pytest_test_can_fail-20260908004717/test/unit/__init__.py +0 -0
  38. assert_pytest_test_can_fail-20260908004717/test/unit/conftest.py +0 -0
  39. assert_pytest_test_can_fail-20260908004717/test/unit/test_cli.py +464 -0
  40. assert_pytest_test_can_fail-20260908004717/test/unit/test_main.py +22 -0
  41. assert_pytest_test_can_fail-20260908004717/test/unit/test_scanner.py +180 -0
@@ -0,0 +1,18 @@
1
+ ---
2
+ name: md-paragraphs-wrap-at-80
3
+ description: In .md files only prose paragraphs wrap at 80 characters; other constructs may run long.
4
+ metadata:
5
+ type: feedback
6
+ ---
7
+
8
+ In Markdown files, the 80-character limit applies only to prose paragraphs.
9
+ List items, headings, tables, link lines, and code blocks may exceed it.
10
+
11
+ **Why:** Hard-wrapping non-paragraph constructs hurts readability and makes
12
+ diffs noisier than the width saves. markdownlint's MD013 cannot express the
13
+ distinction, so it is disabled in `.github/workflows/documentation.yml` rather
14
+ than satisfied by rewrapping.
15
+
16
+ **How to apply:** Wrap paragraph prose at 80. Leave a long list item, heading,
17
+ or table row on one line instead of folding it. Do not re-enable MD013 or add
18
+ line-length rewrapping to satisfy a linter. See [[push-directly-to-main]].
@@ -0,0 +1,19 @@
1
+ ---
2
+ name: no-wrapping-outside-md-files
3
+ description: GitHub issue and PR bodies get no hard wrapping at all; the 80-character rule is for .md files only.
4
+ metadata:
5
+ type: feedback
6
+ ---
7
+
8
+ Do not hard-wrap text written outside `.md` files. GitHub issue bodies, PR
9
+ descriptions, and comments get one line per paragraph and per list item, with no
10
+ newline characters inside either.
11
+
12
+ **Why:** The 80-character rule exists to keep diffs of checked-in files
13
+ readable. An issue body has no diff to keep clean, GitHub wraps it to the
14
+ reader's own column, and hard newlines make the web editor and quote-replies
15
+ awkward.
16
+
17
+ **How to apply:** Apply [[md-paragraphs-wrap-at-80]] only to `.md` files in the
18
+ repository. Everywhere else, write each paragraph as a single line. Do not
19
+ describe this as "soft-wrapping" — there is no wrapping of any kind.
@@ -0,0 +1,12 @@
1
+ ---
2
+ name: push-directly-to-main
3
+ description: This repo pushes directly to main; do not create a branch or PR for routine changes.
4
+ metadata:
5
+ type: feedback
6
+ ---
7
+
8
+ We push directly to `main` in this repo. Do not create a feature branch or open a PR unless explicitly asked.
9
+
10
+ **Why:** Small solo-maintained repo; the branch/PR ceremony in the early history is not the working convention.
11
+
12
+ **How to apply:** When asked to commit or push, commit on `main` and `git push` — even though `main` is the default branch.
@@ -0,0 +1,19 @@
1
+ ---
2
+ name: tasks-must-be-indivisible
3
+ description: Every task in Claude Code's native structured task list must be indivisible.
4
+ metadata:
5
+ type: feedback
6
+ ---
7
+
8
+ Each task created with `TaskCreate` must be indivisible: one atomic unit of
9
+ work that cannot be meaningfully broken down further. Never file a task that
10
+ bundles several independent pieces of work.
11
+
12
+ **Why:** A divisible task hides its own progress. "Split multi-assert tests"
13
+ reads as one line whether nine files remain or one, so the list stops
14
+ reflecting the real state of the work and stops being useful to the user.
15
+
16
+ **How to apply:** Before creating a task, ask whether it could be split. If it
17
+ could, file the parts instead. Prefer one task per file, per check, or per
18
+ fix. Split a task in flight the moment it turns out to have been divisible.
19
+ See [[md-paragraphs-wrap-at-80]] and [[push-directly-to-main]].
@@ -0,0 +1,26 @@
1
+ ---
2
+ concurrency:
3
+ cancel-in-progress: true
4
+ group: ${{ github.workflow }}-${{ github.ref }}
5
+ jobs:
6
+ markdownlint:
7
+ runs-on: ubuntu-latest
8
+ steps:
9
+ - name: Checkout code
10
+ uses: actions/checkout@v7
11
+ - name: Set up Node
12
+ uses: actions/setup-node@v7
13
+ with:
14
+ node-version: "20"
15
+ - name: Install dependencies
16
+ run: npm install -g markdownlint-cli
17
+ - name: markdownlint
18
+ run: markdownlint --disable MD013 -- '**/*.md'
19
+ name: documentation
20
+ on:
21
+ push:
22
+ branches:
23
+ - main
24
+ paths:
25
+ - "**/*.md"
26
+ - ".github/workflows/documentation.yml"
@@ -0,0 +1,317 @@
1
+ ---
2
+ concurrency:
3
+ cancel-in-progress: true
4
+ group: ${{ github.workflow }}-${{ github.ref }}
5
+ jobs:
6
+ assert-no-comments:
7
+ runs-on: ubuntu-latest
8
+ steps:
9
+ - name: Checkout code
10
+ uses: actions/checkout@v7
11
+ - name: Set up Python
12
+ uses: actions/setup-python@v7
13
+ with:
14
+ python-version: "3.13"
15
+ - name: Install dependencies
16
+ run: pip install assert-no-comments
17
+ - name: assert-no-comments
18
+ run: >-
19
+ assert-no-comments
20
+ --verbose
21
+ ${{ github.workspace }}
22
+ assert-no-inline-directives:
23
+ runs-on: ubuntu-latest
24
+ steps:
25
+ - name: Checkout code
26
+ uses: actions/checkout@v7
27
+ - name: Set up Python
28
+ uses: actions/setup-python@v7
29
+ with:
30
+ python-version: "3.13"
31
+ - name: Install dependencies
32
+ run: pip install assert-no-inline-directives
33
+ - name: assert-no-inline-directives
34
+ run: >-
35
+ assert-no-inline-directives
36
+ --tools pylint,mypy,yamllint
37
+ --verbose
38
+ ${{ github.workspace }}/**/*
39
+ assert-no-linter-config-files:
40
+ runs-on: ubuntu-latest
41
+ steps:
42
+ - name: Checkout code
43
+ uses: actions/checkout@v7
44
+ - name: Set up Python
45
+ uses: actions/setup-python@v7
46
+ with:
47
+ python-version: "3.13"
48
+ - name: Install dependencies
49
+ run: pip install assert-no-linter-config-files
50
+ - name: assert-no-linter-config-files
51
+ run: >-
52
+ assert-no-linter-config-files
53
+ --linters pylint,mypy,yamllint
54
+ --verbose
55
+ ${{ github.workspace }}
56
+ assert-pytest-test-can-fail:
57
+ runs-on: ubuntu-latest
58
+ steps:
59
+ - name: Checkout code
60
+ uses: actions/checkout@v7
61
+ - name: Set up Python
62
+ uses: actions/setup-python@v7
63
+ with:
64
+ python-version: "3.13"
65
+ - name: Install dependencies
66
+ run: pip install -e .
67
+ - name: assert-pytest-test-can-fail
68
+ run: >-
69
+ assert-pytest-test-can-fail
70
+ --verbose
71
+ ${{ github.workspace }}/test
72
+ assert-python-definition-is-used:
73
+ runs-on: ubuntu-latest
74
+ steps:
75
+ - name: Checkout code
76
+ uses: actions/checkout@v7
77
+ - name: Set up Python
78
+ uses: actions/setup-python@v7
79
+ with:
80
+ python-version: "3.13"
81
+ - name: Install dependencies
82
+ run: pip install assert-python-definition-is-used
83
+ - name: assert-python-definition-is-used
84
+ run: >-
85
+ assert-python-definition-is-used
86
+ src
87
+ --search-in src
88
+ --search-in test
89
+ --verbose
90
+ e2e-tests:
91
+ runs-on: ubuntu-latest
92
+ steps:
93
+ - name: Checkout code
94
+ uses: actions/checkout@v7
95
+ - name: Set up Python
96
+ uses: actions/setup-python@v7
97
+ with:
98
+ python-version: "3.13"
99
+ - name: Install dependencies
100
+ run: pip install pytest -e .
101
+ - name: E2E tests
102
+ run: python3 -m pytest test/e2e/ --verbose --pythonwarnings=error
103
+ integration-tests:
104
+ runs-on: ubuntu-latest
105
+ steps:
106
+ - name: Checkout code
107
+ uses: actions/checkout@v7
108
+ - name: Set up Python
109
+ uses: actions/setup-python@v7
110
+ with:
111
+ python-version: "3.13"
112
+ - name: Install dependencies
113
+ run: pip install pytest pytest-cov -e .
114
+ - name: Integration tests
115
+ run: |
116
+ python3 -m pytest test/integration/ \
117
+ --verbose --pythonwarnings=error \
118
+ --cov=assert_pytest_test_can_fail \
119
+ --cov-branch \
120
+ --cov-report=term-missing \
121
+ --cov-fail-under=100
122
+ jscpd-src:
123
+ runs-on: ubuntu-latest
124
+ steps:
125
+ - name: Checkout code
126
+ uses: actions/checkout@v7
127
+ - name: Set up Node
128
+ uses: actions/setup-node@v7
129
+ with:
130
+ node-version: "20"
131
+ - name: Install dependencies
132
+ run: npm install -g jscpd
133
+ - name: jscpd (src)
134
+ run: jscpd --pattern "**/*.py" --threshold 0 --reporters console src/
135
+ jscpd-test:
136
+ runs-on: ubuntu-latest
137
+ steps:
138
+ - name: Checkout code
139
+ uses: actions/checkout@v7
140
+ - name: Set up Node
141
+ uses: actions/setup-node@v7
142
+ with:
143
+ node-version: "20"
144
+ - name: Install dependencies
145
+ run: npm install -g jscpd
146
+ - name: jscpd (test)
147
+ run: jscpd --pattern "**/*.py" --threshold 0 --reporters console test/
148
+ mypy-src:
149
+ runs-on: ubuntu-latest
150
+ steps:
151
+ - name: Checkout code
152
+ uses: actions/checkout@v7
153
+ - name: Set up Python
154
+ uses: actions/setup-python@v7
155
+ with:
156
+ python-version: "3.13"
157
+ - name: Install dependencies
158
+ run: pip install mypy -e .
159
+ - name: mypy (src)
160
+ run: python3 -m mypy --strict src/
161
+ mypy-test:
162
+ runs-on: ubuntu-latest
163
+ steps:
164
+ - name: Checkout code
165
+ uses: actions/checkout@v7
166
+ - name: Set up Python
167
+ uses: actions/setup-python@v7
168
+ with:
169
+ python-version: "3.13"
170
+ - name: Install dependencies
171
+ run: pip install mypy pytest -e .
172
+ - name: mypy (test)
173
+ run: python3 -m mypy test/
174
+ pylint-src:
175
+ runs-on: ubuntu-latest
176
+ steps:
177
+ - name: Checkout code
178
+ uses: actions/checkout@v7
179
+ - name: Set up Python
180
+ uses: actions/setup-python@v7
181
+ with:
182
+ python-version: "3.13"
183
+ - name: Install dependencies
184
+ run: pip install pylint -e .
185
+ - name: pylint (src)
186
+ run: >-
187
+ python3 -m pylint src/
188
+ --disable=missing-class-docstring
189
+ --disable=missing-function-docstring
190
+ --disable=missing-module-docstring
191
+ --fail-on=C,R,W
192
+ --fail-under=10.0
193
+ pylint-test:
194
+ runs-on: ubuntu-latest
195
+ steps:
196
+ - name: Checkout code
197
+ uses: actions/checkout@v7
198
+ - name: Set up Python
199
+ uses: actions/setup-python@v7
200
+ with:
201
+ python-version: "3.13"
202
+ - name: Install dependencies
203
+ run: pip install pylint pytest -e .
204
+ - name: pylint (test)
205
+ run: >-
206
+ python3 -m pylint test/
207
+ --disable=missing-class-docstring
208
+ --disable=missing-function-docstring
209
+ --disable=missing-module-docstring
210
+ --fail-on=C,R,W
211
+ --fail-under=10.0
212
+ release:
213
+ if: github.event_name == 'push'
214
+ needs:
215
+ - assert-no-comments
216
+ - assert-no-inline-directives
217
+ - assert-no-linter-config-files
218
+ - assert-pytest-test-can-fail
219
+ - assert-python-definition-is-used
220
+ - e2e-tests
221
+ - integration-tests
222
+ - jscpd-src
223
+ - jscpd-test
224
+ - mypy-src
225
+ - mypy-test
226
+ - pylint-src
227
+ - pylint-test
228
+ - unit-tests
229
+ - yamllint
230
+ permissions:
231
+ contents: write
232
+ id-token: write
233
+ runs-on: ubuntu-latest
234
+ steps:
235
+ - name: Checkout code
236
+ uses: actions/checkout@v7
237
+ with:
238
+ fetch-depth: 0
239
+ - name: Set up Python
240
+ uses: actions/setup-python@v7
241
+ with:
242
+ python-version: "3.13"
243
+ - id: version
244
+ name: Generate version from UTC time
245
+ run: echo "version=$(date -u +%Y%m%d%H%M%S)" >> $GITHUB_OUTPUT
246
+ - name: Create tag
247
+ run: git tag "v${{ steps.version.outputs.version }}"
248
+ - name: Install build tools
249
+ run: pip install build
250
+ - name: Build package
251
+ run: python -m build
252
+ - name: Publish to PyPI
253
+ uses: pypa/gh-action-pypi-publish@release/v1
254
+ - name: Push tag
255
+ run: git push origin "v${{ steps.version.outputs.version }}"
256
+ - env:
257
+ GH_TOKEN: ${{ github.token }}
258
+ name: Create GitHub Release
259
+ run: |
260
+ gh release create "v${{ steps.version.outputs.version }}" \
261
+ --generate-notes
262
+ - name: Update latest tag
263
+ run: |
264
+ git tag -f latest
265
+ git push origin latest --force
266
+ unit-tests:
267
+ runs-on: ubuntu-latest
268
+ steps:
269
+ - name: Checkout code
270
+ uses: actions/checkout@v7
271
+ - name: Set up Python
272
+ uses: actions/setup-python@v7
273
+ with:
274
+ python-version: "3.13"
275
+ - name: Install dependencies
276
+ run: pip install pytest pytest-cov -e .
277
+ - name: Unit tests
278
+ run: |
279
+ python3 -m pytest test/unit/ \
280
+ --verbose --pythonwarnings=error \
281
+ --cov=assert_pytest_test_can_fail \
282
+ --cov-branch \
283
+ --cov-report=term-missing \
284
+ --cov-fail-under=100
285
+ yamllint:
286
+ runs-on: ubuntu-latest
287
+ steps:
288
+ - name: Checkout code
289
+ uses: actions/checkout@v7
290
+ - name: Set up Python
291
+ uses: actions/setup-python@v7
292
+ with:
293
+ python-version: "3.13"
294
+ - name: Install dependencies
295
+ run: pip install yamllint
296
+ - name: yamllint
297
+ run: |
298
+ EMPTY_LINES='empty-lines: {max: 0, max-start: 0, max-end: 1}'
299
+ KEY_ORDERING='key-ordering: enable'
300
+ TRUTHY='truthy: {allowed-values: ["true", "false", "on"]}'
301
+ RULES="$EMPTY_LINES, $KEY_ORDERING, $TRUTHY"
302
+ shopt -s globstar
303
+ yamllint --strict --format github \
304
+ --config-data "{extends: default, rules: {$RULES}}" \
305
+ *.yml **/*.yml
306
+ name: release
307
+ on:
308
+ push:
309
+ branches:
310
+ - main
311
+ paths:
312
+ - ".github/workflows/documentation.yml"
313
+ - ".github/workflows/release.yml"
314
+ - "action.yml"
315
+ - "pyproject.toml"
316
+ - "src/**"
317
+ - "test/**"
@@ -0,0 +1,77 @@
1
+ # Byte-compiled / optimized / DLL files
2
+ __pycache__/
3
+ *.py[cod]
4
+ *$py.class
5
+
6
+ # C extensions
7
+ *.so
8
+
9
+ # Distribution / packaging
10
+ .Python
11
+ build/
12
+ develop-eggs/
13
+ dist/
14
+ downloads/
15
+ eggs/
16
+ .eggs/
17
+ lib/
18
+ lib64/
19
+ parts/
20
+ sdist/
21
+ var/
22
+ wheels/
23
+ *.egg-info/
24
+ .installed.cfg
25
+ *.egg
26
+
27
+ # PyInstaller
28
+ *.manifest
29
+ *.spec
30
+
31
+ # Installer logs
32
+ pip-log.txt
33
+ pip-delete-this-directory.txt
34
+
35
+ # Unit test / coverage reports
36
+ htmlcov/
37
+ .tox/
38
+ .nox/
39
+ .coverage
40
+ .coverage.*
41
+ .cache
42
+ nosetests.xml
43
+ coverage.xml
44
+ *.cover
45
+ *.py,cover
46
+ .hypothesis/
47
+ .pytest_cache/
48
+
49
+ # Translations
50
+ *.mo
51
+ *.pot
52
+
53
+ # Environments
54
+ .env
55
+ .venv
56
+ env/
57
+ venv/
58
+ ENV/
59
+ env.bak/
60
+ venv.bak/
61
+
62
+ # IDE
63
+ .idea/
64
+ .vscode/
65
+ *.swp
66
+ *.swo
67
+
68
+ # macOS
69
+ .DS_Store
70
+
71
+ # Mypy
72
+ .mypy_cache/
73
+ .dmypy.json
74
+ dmypy.json
75
+
76
+ # Ruff
77
+ .ruff_cache/
@@ -0,0 +1,10 @@
1
+ # CLAUDE.md
2
+
3
+ Add memories about this repo to `.claude/memories/`, and link each one below.
4
+
5
+ ## Memories
6
+
7
+ - [Push directly to main](.claude/memories/push-directly-to-main.md) — no feature branch or PR for routine changes.
8
+ - [Markdown paragraphs wrap at 80](.claude/memories/md-paragraphs-wrap-at-80.md) — only prose paragraphs; MD013 is disabled.
9
+ - [No wrapping outside .md files](.claude/memories/no-wrapping-outside-md-files.md) — issue and PR bodies get one line per paragraph.
10
+ - [Tasks must be indivisible](.claude/memories/tasks-must-be-indivisible.md) — one atomic unit of work per task list entry.
@@ -0,0 +1,190 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to the Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ Copyright 2024 10U Labs LLC
179
+
180
+ Licensed under the Apache License, Version 2.0 (the "License");
181
+ you may not use this file except in compliance with the License.
182
+ You may obtain a copy of the License at
183
+
184
+ http://www.apache.org/licenses/LICENSE-2.0
185
+
186
+ Unless required by applicable law or agreed to in writing, software
187
+ distributed under the License is distributed on an "AS IS" BASIS,
188
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
189
+ See the License for the specific language governing permissions and
190
+ limitations under the License.