Add PEP8 and Flake8 as part of Scrutinizer test

This commit is contained in:
Swen Kooij 2017-07-15 14:07:40 +03:00
parent 08690ab361
commit cff388cae3

View File

@ -13,17 +13,20 @@ filter:
build: build:
environment: environment:
python: '3.5.0' python: '3.5.0'
node: 'v6.2.0'
variables: variables:
DJANGO_SETTINGS_MODULES: settings DJANGO_SETTINGS_MODULES: settings
DATABASE_URL: postgres://scrutinizer:scrutinizer@localhost:5434/localized_fields DATABASE_URL: postgres://scrutinizer:scrutinizer@localhost:5434/localized_fields
postgresql: true postgresql: true
redis: true
dependencies: dependencies:
override: override:
- 'pip install -r requirements/test.txt' - 'pip install -r requirements/test.txt'
tests: tests:
override: override:
-
command: pep8 ./localized_fields/
-
command: flake8 ./localized_fields/
- -
command: coverage run manage.py test command: coverage run manage.py test
coverage: coverage: