LSSTDESC / CLMM

A Python library for performing galaxy cluster mass reconstruction from weak lensing observables
BSD 3-Clause "New" or "Revised" License
24 stars 20 forks source link

Evaluate if there is possible solution for pylint on astropy #621

Open m-aguena opened 6 months ago

m-aguena commented 6 months ago

Pylint was failing on astropy v6.0, with errors of type:

clmm/support/mock_data.py:418:33: E1101: Module 'astropy.units' has no 'deg' member; maybe 'dex'? (no-member)

This is a known error, and a discussion can be found here.

The implemented solution on PR #532 was to add an argument at .github/workflows/build_check.yml:

pylint clmm --ignored-classes=astropy.units

This should be re-evaluated in the future.

hsinfan1996 commented 6 months ago

It seems that pylint --generated-member= is also a solution, but I am not sure if it is a better one.