Skip to content

Commit

Permalink
Update system
Browse files Browse the repository at this point in the history
  • Loading branch information
EtienneKras committed Jan 7, 2025
1 parent 8ea1101 commit 7e79c96
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 2 additions & 0 deletions check_imports.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,14 @@ def main():
missing_packages = set()

env_packages = get_packages_from_environment_yml(env_path)
ignored_packages = {"warnings", "uuid", "sys", "os", "copy"}
for directory in directories:
for root, _, files in os.walk(directory):
for file in files:
if file.endswith(".ipynb"):
notebook_path = os.path.join(root, file)
imports = get_imports_from_notebook(notebook_path)
imports -= ignored_packages
missing_packages.update(imports - env_packages)

if missing_packages:
Expand Down
6 changes: 1 addition & 5 deletions environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,22 +19,18 @@ dependencies:
- dask-geopandas
- xarray
- holoviews
- pystac_client
- pystac-client
- copy
- python-dotenv
- rasterio
- spatialpandas
- os
- pystac
- typing
- fsspec
- shapely
- sys
- geoviews
- geopandas
- colorcet
- uuid
- warnings
- pip:
- stac_geoparquet
- coclico

0 comments on commit 7e79c96

Please sign in to comment.