Add tox configuration to check the sources

Change-Id: Idc2722e56897c541256e15c850187fe6ecc2eeb3
This commit is contained in:
Stanislaw Pitucha 2014-08-20 17:25:26 +01:00
parent 0e4cc6b5f3
commit fcebb72473
3 changed files with 20 additions and 10 deletions

1
.gitignore vendored
View File

@ -10,3 +10,4 @@ CA/*.key
CA/*.crt
dist/*
build/*
.tox/*

View File

@ -7,8 +7,8 @@ server = {
app = {
'root': 'ephemeral_ca.controllers.RootController',
'modules': ['ephemeral_ca'],
#'static_root': '%(confdir)s/public',
#'template_path': '%(confdir)s/${package}/templates',
# 'static_root': '%(confdir)s/public',
# 'template_path': '%(confdir)s/${package}/templates',
'debug': True,
'errors': {
'404': '/error/404',
@ -18,14 +18,14 @@ app = {
auth = {
'allow_backdoor': True,
#'ldap': {
# 'host': "aw2clouddc01.hpcloud.ms",
# 'domain': "hpcloud.ms",
# 'base': "CN=Users,DC=hpcloud,DC=ms",
#},
#'keystone': {
# 'url': 'https://keystone.example.com:35357',
#},
# 'ldap': {
# 'host': "aw2clouddc01.hpcloud.ms",
# 'domain': "hpcloud.ms",
# 'base': "CN=Users,DC=hpcloud,DC=ms",
# },
# 'keystone': {
# 'url': 'https://keystone.example.com:35357',
# },
}
validators = [

View File

@ -1,2 +1,11 @@
[tox]
envlist = pep8
[testenv:pep8]
deps = flake8
sitepackages = False
commands = flake8 {posargs}
[flake8]
max-line-length = 160
exclude = .git,.tox,.venv