-
-
Notifications
You must be signed in to change notification settings - Fork 408
docs: test more code snippets in docs #4018
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
d-v-b
wants to merge
28
commits into
zarr-developers:main
Choose a base branch
from
d-v-b:docs-cleanups
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
28 commits
Select commit
Hold shift + click to select a range
2652d9e
docs: spec for closing the silently-unexecuted docs-block gap (#4016)
d-v-b 33590eb
docs: unify docs-block marker model (s3 + gpu) in #4016 spec
d-v-b 47d20c3
docs: link spec to upstream issue #4017
d-v-b c660818
docs: implementation plan for docs-block validation (#4016, #4017)
d-v-b 460385d
test: spike s3 default-endpoint mechanism for docs (no storage_options)
d-v-b 2032fee
test: register s3 pytest marker
d-v-b 42a8ebd
test: parse markers= on docs blocks and add moto s3 fixture binding
d-v-b 7489bea
docs: fix invalid s3 create_array example and run it against moto (#4…
d-v-b 198eb80
docs: execute config-setting examples in performance.md and arrays.md
d-v-b c8836c3
docs: make cli zarr.open example runnable against a local store
d-v-b 010d99a
docs: execute gpu example under the gpu marker
d-v-b 79197c4
docs: fix exec=on typo and explicitly opt out non-runnable blocks
d-v-b 9165bd5
docs: make dask performance example runnable (or opt out if dask absent)
d-v-b 19f0238
docs: record plan corrections from execution (spike result, gpu marke…
d-v-b f90c2b0
test: guard that every docs python block is executed or opted out (#4…
d-v-b cfa5665
docs: separate `test` flag from `exec` so infra-bound examples don't …
d-v-b 9c74830
docs: add news fragment for docs-block validation (#4016, #4017)
d-v-b 2ad7474
test: harden docs_s3_backend teardown and make cli example idempotent
d-v-b 31fa4d7
test: actually run the gpu docs example on GPU; align collector/guard…
d-v-b 9f837f8
test: enforce test-only block placement; drop redundant marker round-…
d-v-b f936fba
ci: make docs build strict; correct placement-hazard scope
d-v-b ee82f5e
docs: remove design spec/plan caches from version control
d-v-b 84ad5a2
test: drop superpowers-docs exclusion now that those files are gone
d-v-b cfa792f
test: share one moto S3 backend across fsspec and docs tests
d-v-b c4f1111
Merge branch 'main' into docs-cleanups
d-v-b f6c587a
docs: document the exec vs test code-block distinction for contributors
d-v-b 8b2c131
Merge branch 'docs-cleanups' of https://github.com/d-v-b/zarr-python …
d-v-b ee45121
Merge branch 'main' into docs-cleanups
d-v-b File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| Fixed an invalid `zarr.create_array` example in the quick-start documentation (it passed an unsupported `mode` argument) and made the cloud-storage example execute against a mock S3 backend in CI. Added a test ensuring every Python code block in the documentation is either executed or explicitly opted out with a documented reason, so an invalid example can no longer go untested. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this addition to the docs explains the logic added in this PR