Skip to content

Commit

Permalink
Move options to config file to support tooling etc
Browse files Browse the repository at this point in the history
[#SVCS-351]
[ci skip]
  • Loading branch information
abought committed May 26, 2017
1 parent 62b8149 commit da58182
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
8 changes: 8 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -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
9 changes: 5 additions & 4 deletions tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit da58182

Please sign in to comment.