Add pep8 test and gitignore

Change-Id: I87c206311083f112ff812f15cae9803753b772c1
This commit is contained in:
Proskurin Kirill 2016-11-29 15:07:04 +00:00
parent 36a8b2a84f
commit a3a5efc3f3
2 changed files with 83 additions and 2 deletions

64
.gitignore vendored Normal file
View File

@ -0,0 +1,64 @@
*.py[cod]
# C extensions
*.so
# Packages
*.egg*
*.egg-info
dist
build
eggs
parts
bin
var
sdist
develop-eggs
.installed.cfg
lib
lib64
# Installer logs
pip-log.txt
# Unit test / coverage reports
cover/
.coverage*
!.coveragerc
.tox
nosetests.xml
.testrepository
.venv
# Translations
*.mo
# Mr Developer
.mr.developer.cfg
.project
.pydevproject
# Complexity
output/*.html
output/*/index.html
# Sphinx
doc/build
# pbr generates these
AUTHORS
ChangeLog
# Editors
*~
.*.swp
.*sw?
# Configs
*.conf
# openrc files
openrc-*
# debug info from oslo_debug_helper
debug-*

21
tox.ini
View File

@ -1,6 +1,6 @@
[tox]
minversion = 1.6
envlist = linters
minversion = 1.7
envlist = py35,py34,py27,pypy,pep8,linters
skipsdist = True
[testenv:linters]
@ -8,5 +8,22 @@ deps = yamllint
commands =
{toxinidir}/tools/yamllint.sh
[testenv:pep8]
deps = flake8
commands =
flake8 {posargs}
[testenv:venv]
commands = {posargs}
[testenv:venv3]
basepython = python3
commands = {posargs}
[flake8]
# H102 skipped as it's a non-free project
show-source = True
ignore = H102
builtins = _
exclude=.venv,.git,.tox,dist,doc,*openstack/common*,*lib/python*,*egg,build