lazyblorg
lazyblorg copied to clipboard
Add static types to source code (mypy)
-
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
mypycheck to test shell script(s)