diff --git a/setup.cfg b/setup.cfg index 4f0b48df9..3a08dc22f 100644 --- a/setup.cfg +++ b/setup.cfg @@ -6,3 +6,11 @@ ignore = E501,E731,E127,E128 max-line-length = 100 exclude = .ropeproject,tests/*,src/* + +[mypy] +# These default options are aimed at a newly converted codebase. See: +# http://mypy.readthedocs.io/en/latest/command_line.html#ignore-missing-imports +python_version = 3.5 +follow_imports = silent +ignore_missing_imports = true +incremental = true diff --git a/tasks.py b/tasks.py index fd4b2213b..54ea26702 100644 --- a/tasks.py +++ b/tasks.py @@ -44,17 +44,18 @@ def install(ctx, develop=False, pty=True): @task def flake(ctx): + """ + Run style and syntax checker. Follows options defined in setup.cfg + """ ctx.run('flake8 .', pty=True) @task def mypy(ctx): """ - Check python types using mypy (additional level of linting) - These default options are aimed at a newly converted codebase. See: - http://mypy.readthedocs.io/en/latest/command_line.html#ignore-missing-imports + Check python types using mypy (additional level of linting). Follows options defined in setup.cfg """ - ctx.run('mypy -i --follow-imports silent --ignore-missing-imports --python-version 3.5 waterbutler/', pty=True) + ctx.run('mypy waterbutler/', pty=True) @task