Closed Jack-Hayes closed 3 weeks ago
lint: command not found
pipx: command not found
pixi run docs ran without error
pipx: command not found
I think we can remove a few tools to simplify dev/CI. The package template has pylint running separately from other checks b/c it's recommended not to run as a pre-commit hook. But I think that's mainly for large repos. Also I think "pixi tasks" effectively take the place of "nox"... so I'm going to try to remove some things! https://pylint.readthedocs.io/en/stable/user_guide/installation/pre-commit-integration.html#pre-commit-integration
Fixed by #4 ... although might be good to suggest WSL over alternatives in a contribution guide
10/17/2024 Performed after running previous lines of code in the ReadME
Platform: linux (WSL on Windows 11) -- Python 3.12.7 Pixi Version: pixi 0.33.0
Show code
(coincident:dev) (base) jehayes@DESKTOP-L8QL6EI:~/coincident$ pixi run test ✨ Pixi task (test in dev): pytest -o markers=network -m 'not network' --cov --cov-report=xml --cov-report=term ===================================================================================== test session starts ====================================================================================== platform linux -- Python 3.12.7, pytest-8.3.3, pluggy-1.5.0 rootdir: /home/jehayes/coincident configfile: pyproject.toml testpaths: tests plugins: cov-5.0.0, time-machine-2.15.0 collected 22 items / 11 deselected / 11 selected tests/test_datasets.py ... [ 27%] tests/test_overlaps.py ... [ 54%] tests/test_package.py . [ 63%] tests/test_search.py ...F [100%] =========================================================================================== FAILURES =========================================================================================== __________________________________________________________________________________ test_polygon_out_of_bounds __________________________________________________________________________________ def test_polygon_out_of_bounds(): feature_coll = { "type": "FeatureCollection", "features": [ { "id": "0", "properties": {"col1": "name1"}, "type": "Feature", "geometry": {"type": "Point", "coordinates": (1.0, 2.0)}, } ], } aoi = gpd.GeoDataFrame.from_features(feature_coll, crs="EPSG:4326") # with pytest.warns(UserWarning, match="Requested search polygon not within"): with pytest.raises(ValueError, match="Requested search polygon not within"): > m.search.search(dataset="3dep", intersects=aoi) aoi = geometry col1 0 POINT (1 2) name1 feature_coll = {'features': [{'geometry': {'coordinates': (1.0, 2.0), 'type': 'Point'}, 'id': '0', 'properties': {'col1': 'name1'}, 'type': 'Feature'}], 'type': 'FeatureCollection'} tests/test_search.py:61: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dataset = ThreeDEP(alias='3dep', has_stac_api=False, collections=[], search='https://prd-tnm.s3.amazonaws.com/StagedProducts/Elevation/metadata/WESM.gpkg', start='2000-12-01', end=None, type='lidar', provider='usgs', stac_kwargs={'limit': 1000}) intersects = geometry col1 0 POINT (1 2) name1, datetime = None, kwargs = {}, search_start = None, search_end = None, shapely_geometry =