Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@james-willis
Copy link

Right now matplotlib is an implicit dependency of the library. By moving the import statement inside the function that uses it, esda will no longer break consumers that dont take a dependency on matplotlib explicitly.

@knaaptime
Copy link
Member

good call

@codecov
Copy link

codecov bot commented Aug 2, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 81.2%. Comparing base (0388ad2) to head (fce66dd).

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##            main    #346     +/-   ##
=======================================
- Coverage   81.3%   81.2%   -0.1%     
=======================================
  Files         24      24             
  Lines       3331    3332      +1     
=======================================
- Hits        2709    2706      -3     
- Misses       622     626      +4     
Files Coverage Δ
esda/moran.py 81.2% <100.0%> (+<0.1%) ⬆️

... and 1 file with indirect coverage changes

@james-willis james-willis requested a review from gegen07 August 5, 2024 23:04
@jGaboardi
Copy link
Member

Let's also remove matplotlib from the 312-min.yaml (minimal dependencies) CI environment.

@jGaboardi
Copy link
Member

And move matplotlib from project.optional-dependencies.tests into project.optional-dependencies.plus

@knaaptime knaaptime merged commit 90c69cd into pysal:main Aug 6, 2024
@martinfleis
Copy link
Member

@jGaboardi if you want to have an env without matplotlib in min, we'll need to change geopandas to geopandas-base. Otherwise geopandas will pull it no matter if it is listed in our yaml file.

@jGaboardi
Copy link
Member

@jGaboardi if you want to have an env without matplotlib in min, we'll need to change geopandas to geopandas-base. Otherwise geopandas will pull it no matter if it is listed in our yaml file.

Good call.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants