From 6e0acd8efb85d5c22a82d31984827a1c87c71708 Mon Sep 17 00:00:00 2001 From: "Michael R. Crusoe" Date: Fri, 13 Apr 2018 17:38:17 +0300 Subject: [PATCH] now that mypy and flake8 are running again, fix them --- .travis.yml | 10 +++++++++- cwltest/tests/mock_cwl_runner.py | 4 ++-- cwltest/tests/test_argparse.py | 1 - 3 files changed, 11 insertions(+), 4 deletions(-) diff --git a/.travis.yml b/.travis.yml index 8d94daf..159d1ca 100644 --- a/.travis.yml +++ b/.travis.yml @@ -18,7 +18,15 @@ matrix: jobs: include: - stage: release-test - script: RELEASE_SKIP=head PYVER=2.7 ./release-test.sh && RELEASE_SKIP=head PYVER=3 ./release-test.sh + python: 2.7 + script: RELEASE_SKIP=head PYVER=2.7 ./release-test.sh + - python: 3.4 + script: RELEASE_SKIP=head PYVER=3 ./release-test.sh + - python: 3.5 + script: RELEASE_SKIP=head PYVER=3 ./release-test.sh + - python: 3.6 + script: RELEASE_SKIP=head PYVER=3 ./release-test.sh + install: - pip2 install tox-travis || pip3 install tox-travis script: tox diff --git a/cwltest/tests/mock_cwl_runner.py b/cwltest/tests/mock_cwl_runner.py index 1674f22..510864b 100644 --- a/cwltest/tests/mock_cwl_runner.py +++ b/cwltest/tests/mock_cwl_runner.py @@ -5,7 +5,7 @@ ERROR_TOOL = "return-1.cwl" -def main(): +def main(): # type: ()->int parser = argparse.ArgumentParser() parser.add_argument("processfile") parser.add_argument("jobfile") @@ -24,4 +24,4 @@ def main(): if __name__ == "__main__": - main() \ No newline at end of file + main() diff --git a/cwltest/tests/test_argparse.py b/cwltest/tests/test_argparse.py index 44c3c88..f0ef666 100644 --- a/cwltest/tests/test_argparse.py +++ b/cwltest/tests/test_argparse.py @@ -15,4 +15,3 @@ def test_arg(self): if __name__ == '__main__': unittest.main() -