Merge pull request #237 from jazzband/checks

Enable fussy fox check suite
This commit is contained in:
Jannis Leidel 2019-04-01 21:29:01 +02:00 committed by GitHub
commit be2a0dc18f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 18 additions and 20 deletions

2
.bandit Normal file
View file

@ -0,0 +1,2 @@
[bandit]
exclude: tests,.tox

2
.fussyfox.yml Normal file
View file

@ -0,0 +1,2 @@
- bandit
- flake8

View file

@ -3,10 +3,6 @@ sudo: false
cache: pip
matrix:
include:
- env: TOXENV=flake8-py27
python: 2.7
- env: TOXENV=flake8-py36
python: 3.6
- env: TOXENV=readme-py27
python: 2.7
- env: TOXENV=py27-dj111-coverage

View file

@ -7,3 +7,7 @@ branch = 1
parallel = 1
[coverage:report]
include = configurations/*,tests/*
[flake8]
exclude = .tox,docs/*
ignore = E501,E127,E128,E124,W503

View file

@ -84,7 +84,6 @@ class Base(Configuration):
STATICFILES_FINDERS = (
'django.contrib.staticfiles.finders.FileSystemFinder',
'django.contrib.staticfiles.finders.AppDirectoriesFinder',
# 'django.contrib.staticfiles.finders.DefaultStorageFinder',
)
# Make this unique, and don't share it with anybody.

View file

@ -1,4 +1,4 @@
from django.conf.urls import patterns, include, url
from django.conf.urls import patterns
# Uncomment the next two lines to enable the admin:
# from django.contrib import admin

View file

@ -20,7 +20,7 @@ os.environ.setdefault("DJANGO_SETTINGS_MODULE", "test_project.settings")
# This application object is used by any WSGI server configured to use this
# file. This includes Django's development server, if the WSGI_APPLICATION
# setting points here.
from django.core.wsgi import get_wsgi_application
from django.core.wsgi import get_wsgi_application # noqa
application = get_wsgi_application()
# Apply WSGI middleware here.

21
tox.ini
View file

@ -4,8 +4,7 @@ usedevelop = true
minversion = 1.8
whitelist_externals = sphinx-build
envlist =
flake8-py27,
flake8-py36,
checkqa,
readme-py27,
py{27,34,35,36,py}-dj{18,110,111}
py{34,35,36,37}-dj20
@ -39,14 +38,10 @@ commands =
commands = python setup.py check -r -s
deps = readme_renderer
[testenv:flake8-py27]
commands = flake8 configurations tests
deps = flake8
[testenv:flake8-py36]
commands = flake8 configurations tests
deps = flake8
[flake8]
exclude = .tox
ignore = E501,E127,E128,E124,W503
[testenv:checkqa]
commands =
flake8 {toxinidir}
bandit -r {toxinidir}
deps =
flake8
bandit