@@ -81,3 +81,51 @@ python_files = [
8181testpaths = [
8282 " test"
8383]
84+
85+ [tool .pixi .workspace ]
86+ name = " pointCollection"
87+ authors = [" pointCollection contributors" ]
88+ channels = [" conda-forge" ]
89+ platforms = [" osx-arm64" , " linux-64" , " win-64" ]
90+
91+ [tool .pixi .pypi-dependencies ]
92+ pointCollection = { path = " ." , editable = true }
93+
94+ [tool .pixi .environments ]
95+ default = { solve-group = " default" }
96+ dev = { features = [" dev" ], solve-group = " default" }
97+
98+ [tool .pixi .tasks .jupyter ]
99+ cmd = " jupyter-notebook"
100+ cwd = " notebooks"
101+ description = " Start Jupyter Notebooks in the notebooks directory"
102+
103+ [tool .pixi .tasks .export-env ]
104+ args = [ { "arg" = " flags" , "default" = " " } ]
105+ cmd = " pixi workspace export conda-environment {{ flags }} > environment.yml"
106+ description = " Export workspace to a conda environment file"
107+
108+ [tool .pixi .feature .dev .tasks .coverage ]
109+ cmd = " pytest --cov=pointCollection --junitxml=pytest.xml --cov-report=xml test"
110+ description = " Run the pytest suite and create coverage reports"
111+
112+ [tool .pixi .feature .dev .tasks .lint ]
113+ args = [ { "arg" = " flags" , "default" = " --select=E9,F63,F7,F82 --show-source" }, { "arg" = " directory" , "default" = " ." } ]
114+ cmd = " flake8 {{ directory }} --count {{ flags }} --statistics --extend-exclude 'build/,*.ipynb_checkpoints/,.pixi/'"
115+ description = " Run flake8 to check for compilation errors"
116+
117+ [tool .pixi .dependencies ]
118+ gdal = " *"
119+ h5py = " *"
120+ matplotlib-base = " *"
121+ netCDF4 = " *"
122+ notebook = " *"
123+ numpy = " *"
124+ pyproj = " *"
125+ scipy = " >=1.10.1"
126+ shapely = " *"
127+
128+ [tool .pixi .feature .dev .dependencies ]
129+ flake8 = " *"
130+ pytest = " >=4.6"
131+ pytest-cov = " *"
0 commit comments