forked from pydata/xarray
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into fix/bounds_encode_2
* master: (31 commits) Add quantile method to GroupBy (pydata#2828) rolling_exp (nee ewm) (pydata#2650) Ensure explicitly indexed arrays are preserved (pydata#3027) add back dask-dev tests (pydata#3025) ENH: keepdims=True for xarray reductions (pydata#3033) Revert cmap fix (pydata#3038) Add "errors" keyword argument to drop() and drop_dims() (pydata#2994) (pydata#3028) More consistency checks (pydata#2859) Check types in travis (pydata#3024) Update issue templates (pydata#3019) Add pytest markers to avoid warnings (pydata#3023) Feature/merge errormsg (pydata#2971) More support for missing_value. (pydata#2973) Use flake8 rather than pycodestyle (pydata#3010) Pandas labels deprecation (pydata#3016) Pytest capture uses match, not message (pydata#3011) dask-dev tests to allowed failures in travis (pydata#3014) Fix 'to_masked_array' computing dask arrays twice (pydata#3006) str accessor (pydata#2991) fix safe_cast_to_index (pydata#3001) ...
- Loading branch information
Showing
74 changed files
with
3,255 additions
and
386 deletions.
There are no files selected for viewing
This file contains 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,30 @@ | ||
--- | ||
name: Bug report | ||
about: Create a report to help us improve | ||
title: '' | ||
labels: '' | ||
assignees: '' | ||
|
||
--- | ||
|
||
#### MCVE Code Sample | ||
|
||
In order for the maintainers to efficiently understand and prioritize issues, we ask you post a "Minimal, Complete and Verifiable Example" (MCVE): http://matthewrocklin.com/blog/work/2018/02/28/minimal-bug-reports | ||
|
||
```python | ||
# Your code here | ||
|
||
``` | ||
|
||
#### Problem Description | ||
|
||
[this should explain **why** the current behavior is a problem and why the expected output is a better solution.] | ||
|
||
#### Expected Output | ||
|
||
#### Output of ``xr.show_versions()`` | ||
|
||
<details> | ||
# Paste the output here xr.show_versions() here | ||
|
||
</details> |
This file contains 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 |
---|---|---|
@@ -1,16 +1,6 @@ | ||
# File : .pep8speaks.yml | ||
|
||
# This should be kept in sync with the duplicate config in the [pycodestyle] | ||
# block of setup.cfg. | ||
# https://github.com/OrkoHunter/pep8speaks for more info | ||
# pep8speaks will use the flake8 configs in `setup.cfg` | ||
|
||
scanner: | ||
diff_only: False # If True, errors caused by only the patch are shown | ||
|
||
pycodestyle: | ||
max-line-length: 79 | ||
ignore: # Errors and warnings to ignore | ||
- E402 # module level import not at top of file | ||
- E731 # do not assign a lambda expression, use a def | ||
- E741 # ambiguous variable name | ||
- W503 # line break before binary operator | ||
- W504 # line break after binary operator | ||
diff_only: False | ||
linter: flake8 |
This file contains 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 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 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 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 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 |
---|---|---|
@@ -1,9 +1,29 @@ | ||
"""Configuration for pytest.""" | ||
|
||
import pytest | ||
|
||
|
||
def pytest_addoption(parser): | ||
"""Add command-line flags for pytest.""" | ||
parser.addoption("--run-flaky", action="store_true", | ||
help="runs flaky tests") | ||
parser.addoption("--run-network-tests", action="store_true", | ||
help="runs tests requiring a network connection") | ||
|
||
|
||
def pytest_collection_modifyitems(config, items): | ||
|
||
if not config.getoption("--run-flaky"): | ||
skip_flaky = pytest.mark.skip( | ||
reason="set --run-flaky option to run flaky tests") | ||
for item in items: | ||
if "flaky" in item.keywords: | ||
item.add_marker(skip_flaky) | ||
|
||
if not config.getoption("--run-network-tests"): | ||
skip_network = pytest.mark.skip( | ||
reason="set --run-network-tests option to run tests requiring an" | ||
"internet connection") | ||
for item in items: | ||
if "network" in item.keywords: | ||
item.add_marker(skip_network) |
This file contains 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 |
---|---|---|
|
@@ -153,3 +153,4 @@ | |
|
||
CFTimeIndex.shift | ||
CFTimeIndex.to_datetimeindex | ||
CFTimeIndex.strftime |
This file contains 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 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 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 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 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 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.