lazyblorg icon indicating copy to clipboard operation
lazyblorg copied to clipboard

Add static types to source code (mypy)

Open novoid opened this issue 5 years ago • 0 comments

  • Why?

    • I've made good experience with static typing in other tools.
    • Makes it easier to read function parameters.
    • Cleaner code and enhanced readability.
    • Good additional sanity check with mypy
  • add static types to all python files:

    • [ ] ./lazyblorg.py
    • [ ] ./__ init __.py
    • [ ] ./config.py
    • [ ] ./lib/__ init __.py
    • [ ] ./lib/orgparser.py
    • [ ] ./lib/htmlizer.py
    • [ ] ./lib/utils.py
  • add statis types to all test files:

    • [ ] ./tests/lazyblorg_test.py
    • [ ] ./lib/tests/pypandoc_test.py
    • [ ] ./lib/tests/orgparser_test.py
    • [ ] ./lib/tests/htmlizer_test.py
    • [ ] ./lib/tests/utils_test.py
  • [ ] add mypy check to test shell script(s)

novoid avatar Oct 04 '20 12:10 novoid