andhus / dirhash-python

Python module and CLI for hashing of file system directories based on the Dirhash Standard.
MIT License
42 stars 13 forks source link

Mypy support #16

Open matthewrfennell opened 6 months ago

matthewrfennell commented 6 months ago

Would you be interested in me raising a PR to add mypy types to this library?

I'm using this library in a project I'm currently working on which runs mypy across the codebase. Currently, I have to instruct mypy not to check types coming from this library - but adding types to this library would let me remove this override.

PS - thanks for this library and the dirhash standard, it makes it so easy to generate hashes and be confident they will be consistent across environments.

andhus commented 6 months ago

Hey @matthewrfennell Thanks for dropping by :) as of https://github.com/andhus/dirhash-python/issues/9 I have very little time to maintain this unfortunately, but if you're willing to do so I'll find the time to review ...worried however that there might be some unrelated "blockers" (like Travis not running anymore etc.) that could slow it down. Haven't touched this in a long time and it could definitely use some spring cleaning.

matthewrfennell commented 6 months ago

Ok, thanks a lot for getting back! I need to get approval from my employer before contributing, so I'll start filling out the paperwork now :) but, hopefully it'll get accepted. It may be a few weeks before I hear back from them - in the meantime I'll see if I can get it working locally. Once I have a PR, if I can be of help for sorting out Travis or some other blockers, then I'd be happy to help there too! But no pressure either way.