Static type checking with mypy

This does introduce some not-so-nice things, like having to annotate each
`__init__` function with `-> None`. However, the benefits of having static
type checking in a complex bit of software like BAT outweigh the downsides.
This commit is contained in:
Sybren A. Stüvel
2018-03-09 11:09:47 +01:00
parent 632d01334c
commit fdbbc3a20d
18 changed files with 117 additions and 82 deletions
+6
View File
@@ -3,3 +3,9 @@ addopts = -v --cov blender_asset_tracer --cov-report term-missing
[pep8]
max-line-length = 100
[mypy]
# matches the latest Blender release
python_version = 3.5
warn_redundant_casts = True