Project

General

Profile

Actions

Feature #1079

closed

Static type checking with Mypy

Added by Alexander Watzinger almost 5 years ago. Updated almost 5 years ago.

Status:
Closed
Priority:
Normal
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

Actions #1

Updated by Alexander Watzinger almost 5 years ago

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

Updated by Alexander Watzinger almost 5 years 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.

Actions

Also available in: Atom PDF