dogecoin/ci/lint
Kiminuo bd7e530f01 This PR adds initial support for type hints checking in python scripts.
Support for type hints was introduced in Python 3.5. Type hints make it easier to read and review code in my opinion. Also an IDE may discover a potential bug sooner. Yet, as PEP 484 says: "It should also be emphasized that Python will remain a dynamically typed language, and the authors have no desire to ever make type hints mandatory, even by convention."

Mypy is used in lint-python.sh to do the type checking. The package is standard so there is little chance that it will be abandoned. Mypy checks that type hints in source code are correct when they are not, it fails with an error.

Useful resources:

* https://docs.python.org/3.5/library/typing.html
* https://www.python.org/dev/peps/pep-0484/
2020-06-02 08:03:02 +02:00
..
04_install.sh This PR adds initial support for type hints checking in python scripts. 2020-06-02 08:03:02 +02:00
05_before_script.sh scripted-diff: Bump copyright of files changed in 2019 2019-12-30 10:42:20 +13:00
06_script.sh test: Add crc32c to subtree check linter 2020-01-28 17:01:48 +01:00