-
Notifications
You must be signed in to change notification settings - Fork 25
Mark slow tests, update __eq__
methods, pin reqs
#60
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
Merged
Merged
Changes from 25 commits
Commits
Show all changes
32 commits
Select commit
Hold shift + click to select a range
35c834e
Typing for read parquet
brl0 2e0e00f
Ignore monkeytype
brl0 94347e9
Fix for pandas update, mark slow tests
brl0 9227303
Merge branch 'master' into fix_fillna
brl0 abc9d6e
Fix duplicate import
brl0 50ec3b8
Pin numpy
brl0 f8b5970
Pin pyarrow
brl0 d37f138
Pin pyarrow < 2
brl0 79bf0ba
Remove pins for numpy and pyarrow
brl0 c400e36
Suppress hypothesis health check causing failures
brl0 1334731
Temporarily skip slow tests, try 3.8 on MacOS
brl0 82bd02f
Try pinning numpy on MacOS
brl0 7627f5d
Check platform for numpy requirement
brl0 afbc75c
Fix warnings about np.object
brl0 ca1ece6
Run slow tests by default again
brl0 e6b8cf3
Merge branch 'remove_pins' into initial_typing
brl0 065ebff
Sort imports, add more type info
brl0 d6e26cb
Unmark dask test, update pins, skip slow
brl0 da5cc87
Pin pyarrow < 2 on Mac, try conda-forge for others
brl0 498e7fc
Add snappy, swap channels, pin 3.6
brl0 72f4995
Correct channels, try pyarrow 3
brl0 351c5c9
Unpin pyarrow except Mac
brl0 292c46d
Fix pyarrow req, enable slow tests
brl0 b93a406
Relative imports, isort, cleanup
brl0 a5ca5eb
Fix pin
brl0 9b33a12
Try pyarrow from conda-forge on Mac
brl0 7140e33
Try pinning Dask on Mac
brl0 70553e3
Try lower Dask version on Mac
brl0 3abb8d5
Try lower Dask version on Mac, skip slow tests
brl0 60715f0
Undo skip slow tests
brl0 fc14db0
Revert pyarrow pin
brl0 2f16777
Update change log
brl0 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 |
---|---|---|
|
@@ -106,3 +106,9 @@ venv.bak/ | |
*.parq | ||
.idea/ | ||
spatialpandas/.version | ||
|
||
.vscode/ | ||
|
||
monkeytype.sqlite3 | ||
|
||
.doit.db |
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,7 @@ | ||
[settings] | ||
multi_line_output=3 | ||
include_trailing_comma=True | ||
force_grid_wrap=0 | ||
use_parentheses=True | ||
known_local_folder=spatialpandas | ||
known_first_party=spatialpandas |
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,33 @@ | ||
"""Configuration for pytest.""" | ||
import pytest | ||
|
||
|
||
_DEFAULT_SKIPSLOW = False | ||
|
||
|
||
def pytest_addoption(parser): | ||
"""Add command-line flags for pytest.""" | ||
parser.addoption( | ||
"--skip-slow", | ||
action="store_true", | ||
help="skips slow tests", | ||
default=_DEFAULT_SKIPSLOW, | ||
) | ||
parser.addoption( | ||
"--run-slow", | ||
action="store_true", | ||
default=False, # Only used for cli override | ||
help="run slow tests", | ||
) | ||
|
||
|
||
def pytest_configure(config): | ||
config.addinivalue_line("markers", "slow: mark test as slow to run") | ||
|
||
|
||
def pytest_collection_modifyitems(config, items): | ||
if not config.getoption("--run-slow") and config.getoption("--skip-slow"): | ||
skip_slow = pytest.mark.skip(reason="Skipping slow tests") | ||
for item in items: | ||
if "slow" in item.keywords: | ||
item.add_marker(skip_slow) |
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 |
---|---|---|
@@ -1,17 +1,21 @@ | ||
from . import geometry, spatialindex, tools # noqa | ||
from .geoseries import GeoSeries # noqa | ||
from .geodataframe import GeoDataFrame # noqa | ||
from .tools.sjoin import sjoin # noqa | ||
import param as _param | ||
|
||
from . import geometry, spatialindex, tools # noqa | ||
from .geodataframe import GeoDataFrame # noqa | ||
from .geoseries import GeoSeries # noqa | ||
from .tools.sjoin import sjoin # noqa | ||
|
||
try: | ||
import dask.dataframe # noqa | ||
import dask.dataframe # noqa | ||
# Import to trigger registration of types with Dask | ||
import spatialpandas.dask # noqa | ||
import spatialpandas.dask # noqa | ||
except ImportError: | ||
# Dask dataframe not available | ||
pass | ||
|
||
__version__ = str(_param.version.Version( | ||
fpath=__file__, archive_commit="$Format:%h$", reponame="spatialpandas") | ||
) | ||
__version__ = str( | ||
_param.version.Version( | ||
fpath=__file__, | ||
archive_commit="$Format:%h$", | ||
reponame="spatialpandas", | ||
)) |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
import numpy as np | ||
|
||
from spatialpandas.utils import ngjit | ||
from ...utils import ngjit | ||
|
||
|
||
@ngjit | ||
|
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 |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
|
||
import numpy as np | ||
|
||
from spatialpandas.utils import ngjit | ||
from ...utils import ngjit | ||
|
||
|
||
@ngjit | ||
|
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.