PyDFIR / pyDFIRRam

PyDFIRRam is a Python library leveraging Volatility 3 to simplify and enhance memory forensics. It streamlines the research, parsing, and analysis of memory dumps, allowing users to focus on data rather than commands.
https://pydfir.github.io/pyDFIRRam/
GNU General Public License v3.0
25 stars 1 forks source link

fix typing information #47

Closed YannMagnin closed 3 months ago

YannMagnin commented 3 months ago

To be fully compliant with CPython recent PEP, I took a quick look at the code base and fix all typing (and semantics if needed) mistake I have found using pylint and mypy --strict on all of the source code (except for unit tests file)

Also note that I was not able to do the tests through pytest since most of them use absolute paths like /home/braguette/dataset_memory/ch2.dmp. So, be careful with this merge request.

However, here is a list with all the modifications I made to the project:

I also found potential critical issues:

That's it, I hope this can help a bit. Maybe adding a pylint and mypy pass in CI can be useful for posterity ?