-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Hypothesis strategies in xarray.testing.strategies #6908
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
TomNicholas
wants to merge
111
commits into
pydata:main
Choose a base branch
from
TomNicholas:hypothesis-strategies
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 105 commits
Commits
Show all changes
111 commits
Select commit
Hold shift + click to select a range
587ebb8
copied files defining strategies over to this branch
TomNicholas acbfa69
placed testing functions in their own directory
TomNicholas 73d763f
moved hypothesis strategies into new testing directory
TomNicholas db2deff
begin type hinting strategies
TomNicholas 746cfc8
renamed strategies for consistency with hypothesis conventions
TomNicholas 03cd9de
added strategies to public API (with experimental warning)
TomNicholas 2fe3583
strategies for chunking patterns
TomNicholas 4db3629
rewrote variables strategy to have same signature as Variable constru…
TomNicholas 14d11aa
test variables strategy
TomNicholas 418a359
fixed most tests
TomNicholas c8a7d0e
added helpers so far to API docs
TomNicholas d48aceb
add hypothesis to docs CI env
TomNicholas a20e341
add todo about attrs
TomNicholas 3a4816f
draft of new user guide page on testing
TomNicholas d0406a2
types for dataarrays strategy
TomNicholas 65a222d
draft for chained chunking example
TomNicholas e1d718a
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 57d0f5b
only accept strategy objects
TomNicholas 82c734c
fixed failure with passing in two custom strategies that must be comp…
TomNicholas 029f19a
syntax error in example
TomNicholas 46895fe
allow sizes dict as argument to variables
TomNicholas 50c62e9
copied subsequences_of strategy
TomNicholas e21555a
coordinate_variables generates non-dimensional coords
TomNicholas 1688779
dataarrays strategy given nothing working!
TomNicholas 0a29d32
improved docstrings
TomNicholas 3259849
datasets strategy works (given nothing)
TomNicholas 717fabe
Merge branch 'hypothesis-strategies' of https://github.com/TomNichola…
TomNicholas d76e5b6
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] c25940c
pass dims or data to dataarrays() strategy
TomNicholas cd7b065
importorskip hypothesis in tests
TomNicholas 742b18c
Merge branch 'hypothesis-strategies' of https://github.com/TomNichola…
TomNicholas 8e548b1
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] d1487d4
added warning about inefficient example generation
TomNicholas c8b53f2
Merge branch 'hypothesis-strategies' of https://github.com/TomNichola…
TomNicholas 8bac610
remove TODO about deterministic examples in docs
TomNicholas cf3beb5
un-restrict names strategy
TomNicholas d991357
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] a6405cf
removed convert kwarg
TomNicholas 400ae3e
removed convert kwarg
TomNicholas 3609a34
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 63ad529
avoid using subsequences_of
TomNicholas 4ffbcbd
refactored into separate function for unique subset of dims
TomNicholas 469482d
removed subsequences_of
TomNicholas 472de00
Merge branch 'hypothesis-strategies' of https://github.com/TomNichola…
TomNicholas ced1a9f
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] a3c9ad0
fix draw(st.booleans())
TomNicholas b387304
Merge branch 'hypothesis-strategies' of https://github.com/TomNichola…
TomNicholas 404111d
remove all references to chunking until chunks strategy merged upstre…
TomNicholas 3764a7b
added example of complicated strategy for dims dict
TomNicholas 9723e45
remove superfluous utils file
TomNicholas 2e44860
removed elements strategy
TomNicholas 1cc073b
removed np_arrays strategy from public API
TomNicholas 603e6bb
min_ndims -> min_dims
TomNicholas 63bb362
forbid non-matching dims and data completely
TomNicholas 69ec230
simple test for data_variables strategy
TomNicholas e5c7e23
passing arguments to datasets strategy
TomNicholas fd3d357
Merge branch 'main' into hypothesis-strategies
TomNicholas 52f2490
whatsnew
TomNicholas 9b96470
add attrs strategy
TomNicholas 41fe0b4
autogenerate attrs for all objects
TomNicholas 0e53aa1
attempt to make attrs strategy quicker
TomNicholas f659b4b
extend deadline
TomNicholas d1be3ee
attempt to speed up attrs strategy
TomNicholas e88f5f0
promote all strategies to be functions
TomNicholas 4b88887
valid_dtypes -> numeric_dtypes
TomNicholas 2a1dc66
changed hypothesis error type
TomNicholas 9bddcec
make all strategies keyword-arg only
TomNicholas b2887d4
min_length -> min_side
TomNicholas 3b8e8ae
correct error type
TomNicholas 0980061
remove coords kwarg
TomNicholas 0313b3e
test different types of coordinates are sometimes generated
TomNicholas e6ebb1f
zip dict
TomNicholas 4da8772
add dim_names kwarg to dimension_sizes strategy
TomNicholas e6d7a34
return a dict from _alignable_variables
TomNicholas 5197d1b
Merge branch 'hypothesis-strategies' of https://github.com/TomNichola…
TomNicholas 15812fd
add coord_names arg to coordinate_variables strategy
TomNicholas 3dc9c7b
Merge branch 'main' into hypothesis-strategies
TomNicholas 4374681
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 0f0c4fb
change typing of dims arg
TomNicholas 6a30af5
support dims as list to datasets strat when data not given
TomNicholas cac46dc
Merge branch 'hypothesis-strategies' of https://github.com/TomNichola…
TomNicholas 177d908
put coord and data var generation in optional branch to try to improv…
TomNicholas 5424e37
improve simple test example
TomNicholas c871273
add documentation on creating duck arrays
TomNicholas 7730a27
okexcept for sparse examples
TomNicholas 24549bc
fix sparse dataarrays example
TomNicholas 3082a09
todo about building a duck array dataset
TomNicholas 5df60dc
fix imports and cross-links
TomNicholas 01078de
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 53290e2
add hypothesis library to intersphinx mapping
TomNicholas bd2cb6e
fix many links
TomNicholas c5e83c2
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] de26b2f
fixed all local mypy errors
TomNicholas f81e14f
move numpy strategies import
TomNicholas 129e2c3
Merge branch 'hypothesis-strategies' of https://github.com/TomNichola…
TomNicholas 601d9e2
Merge branch 'main' into hypothesis-strategies
TomNicholas af24af5
reduce sizes
TomNicholas 9777c2a
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 4dcbc60
Merge branch 'main' into hypothesis-strategies
TomNicholas 7841dd5
fix some api links in docs
TomNicholas 968ee72
Merge branch 'main' into hypothesis-strategies
TomNicholas a6fc063
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 6a4a403
Merge branch 'main' into hypothesis-strategies
TomNicholas 0b13771
remove np_arrays strategy
TomNicholas b44a4a2
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] cdcfbf4
fix bad merge of whatsnew
TomNicholas 0aab116
fix bad merge in strategies
TomNicholas 4994797
Merge branch 'main' into hypothesis-strategies
dcherian 525a4b6
Update xarray/testing/strategies.py
dcherian b343f4f
one more
dcherian e6d8e64
No implicit Optional
dcherian 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
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.
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.
Uh oh!
There was an error while loading. Please reload this page.