commaai / laika

Simple Python GNSS processing library
MIT License
639 stars 179 forks source link

pre-commit: match openpilot mypy config #69

Closed GregorKikelj closed 2 years ago

GregorKikelj commented 2 years ago

PR for https://github.com/commaai/openpilot/pull/24287

adeebshihadeh commented 2 years ago

Make sure to enable the same flags here.

GregorKikelj commented 2 years ago

Can you enable workflows btw? Want to ensure it all works :)

GregorKikelj commented 2 years ago

Could add the --warn-unused-ignores to laika but I get a lot of missing stubs even after fixing numpy and pycurl

downloader.py:3: error: Cannot find implementation or library stub for module named "hatanaka"
raw_gnss.py:1: error: Skipping analyzing "scipy.optimize": module is installed, but missing library stubs or py.typed marker
raw_gnss.py:1: error: Skipping analyzing "scipy": module is installed, but missing library stubs or py.typed marker
dgps.py:4: error: Skipping analyzing "scipy.spatial": module is installed, but missing library stubs or py.typed marker
dgps.py:4: note: See https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports