diff --git a/.travis.yml b/.travis.yml index f45e51808eddfeb6f62408da15c46005907098e6..26694aaaf580e3e50c5b4e1225f26dd5c932d8bd 100644 --- a/.travis.yml +++ b/.travis.yml @@ -43,9 +43,6 @@ script: # Type check the project - mypy . - # Type check the project - - mypy . - # Run system checks - python manage.py check diff --git a/mypy.ini b/mypy.ini deleted file mode 100644 index 6241fe330bb35fb5105434739d2940681c363ae3..0000000000000000000000000000000000000000 --- a/mypy.ini +++ /dev/null @@ -1,13 +0,0 @@ -[mypy] -show_column_numbers = True -ignore_missing_imports = True - -[mypy-opentech.*] -ignore_errors = True - -[mypy-opentech.apply.*] -check_untyped_defs = True -ignore_errors = False - -[mypy-opentech.apply.tests.*] -# ignore_errors = True \ No newline at end of file diff --git a/opentech/apply/tests/test_workflow.py b/opentech/apply/tests/test_workflow.py index 6548e295d7a5531d6f7947048a828c23eefe3722..c1c4bd784e1921871453fdc2d0a89baad072733c 100644 --- a/opentech/apply/tests/test_workflow.py +++ b/opentech/apply/tests/test_workflow.py @@ -1,4 +1,3 @@ -import itertools from django.test import SimpleTestCase from django.forms import Form diff --git a/opentech/apply/workflow.py b/opentech/apply/workflow.py index adabfc81cfa61500af62eae097cc5e7d2fc5eb62..94883dfe4b53177829b9f95237a65d4e256b118c 100644 --- a/opentech/apply/workflow.py +++ b/opentech/apply/workflow.py @@ -10,7 +10,7 @@ class Workflow: self.mapping = self.build_mapping(stages) def build_mapping(self, stages: Sequence['Stage']) -> Dict[str, Tuple[int, int]]: - mapping: Dict[str, Tuple[int, int]] = {} + mapping: Dict[str, Tuple[int, int]] = {} for i, stage in enumerate(stages): for j, phase in enumerate(stage): while str(phase) in mapping: @@ -39,8 +39,7 @@ class Workflow: class Stage(Iterable['Phase']): def __init__(self, name: str, form: Form, phases: Sequence['Phase'], - current_phase: Union['Phase', None]=None - ) -> None: + current_phase: Union['Phase', None]=None) -> None: self.name = name self.form = form for phase in phases: diff --git a/setup.cfg b/setup.cfg index c6e0c156292251fb1e830d6de120b0fb0ad45a29..14a4da3a3fbb150221868f459f2ab8d9ad8631b4 100644 --- a/setup.cfg +++ b/setup.cfg @@ -10,5 +10,5 @@ check_untyped_defs = True ignore_errors = False [flake8] -ignore=E501,F405 -exclude=*/migrations/* + ignore=E501,F405 + exclude=*/migrations/* \ No newline at end of file