From 4a434c98bb97e04cd2317cd960b15b9969667276 Mon Sep 17 00:00:00 2001 From: Todd Dembrey <todd.dembrey@torchbox.com> Date: Fri, 15 Dec 2017 11:09:45 +0000 Subject: [PATCH] Update the Travis file to use the setup.cfg --- .travis.yml | 8 ++++---- requirements.txt | 2 ++ setup.cfg | 14 ++++++++++++++ 3 files changed, 20 insertions(+), 4 deletions(-) create mode 100644 setup.cfg diff --git a/.travis.yml b/.travis.yml index 3c233c388..26694aaaf 100644 --- a/.travis.yml +++ b/.travis.yml @@ -35,13 +35,13 @@ install: # Install project dependencies - pip install -r requirements.txt - # Install test dependencies - - pip install flake8 - # Run the tests script: # Run python code style checks - - flake8 opentech --ignore=E501,F405 --exclude=*/migrations/* + - flake8 + + # Type check the project + - mypy . # Run system checks - python manage.py check diff --git a/requirements.txt b/requirements.txt index 77bc48b15..62cc28d58 100644 --- a/requirements.txt +++ b/requirements.txt @@ -7,6 +7,8 @@ Werkzeug==0.11.11 stellar==0.4.3 wagtail-django-recaptcha==0.1 uwsgidecorators==1.1.0 +mypy==0.550 +flake8 # Production dependencies dj-database-url==0.4.1 diff --git a/setup.cfg b/setup.cfg new file mode 100644 index 000000000..14a4da3a3 --- /dev/null +++ b/setup.cfg @@ -0,0 +1,14 @@ +[mypy] +show_column_numbers = True +ignore_missing_imports = True + +[mypy-opentech.*] +ignore_errors = True + +[mypy-opentech.apply.*] +check_untyped_defs = True +ignore_errors = False + +[flake8] + ignore=E501,F405 + exclude=*/migrations/* \ No newline at end of file -- GitLab