Project

General

Profile

Feature #1079

Static type checking with Mypy

Added by Alexander Watzinger 2 months ago. Updated about 2 months ago.

Status:
Closed
Priority:
Low
Category:
Backend
Target version:
Start date:
2019-11-13
Estimated time:
16.00 h

Description

Mypy is an optional static type checker for Python that aims to combine the benefits of dynamic (or "duck") typing and static typing.

Validations with Mypy will raise code quality and readability.

To test the application use this commands. The first is the "tolerant" one, the 3rd is the most "strict".

mypy runserver.py --ignore-missing-imports
mypy runserver.py --ignore-missing-imports --disallow-untyped-defs
mypy runserver.py --ignore-missing-imports --strict

History

#1 Updated by Alexander Watzinger 2 months ago

  • Subject changed from Adding static type checker Mypy to Static type checking with Mypy

#2 Updated by Alexander Watzinger about 2 months ago

  • Status changed from In Progress to Closed

Finished Mypy checks with --ignore-missing-imports --disallow-untyped-defs. Except about 5 locations with added "type: ignore" it validates fine.

Also available in: Atom PDF