Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
[tox]
minversion = 3.1
envlist = py3,pep8
skipsdist = True
ignore_basepython_conflict = True

[testenv]
install_command = pip install {opts} {packages}

[testenv:pep8]
allowlist_externals =
flake8
commands =
flake8
doc8 doc/source README.rst

[flake8]
# The following are ignored on purpose. It's not super worth it to fix them.
# However, if you feel strongly about it, patches will be accepted to fix them
# if they fix ALL of the occurances of one and only one of them.
# H306 Is about alphabetical imports - there's a lot to fix.
# H4 Are about docstrings and there's just a huge pile of pre-existing issues.
# W503 Is supposed to be off by default but in the latest pycodestyle isn't.
# Also, both openstacksdk and Donald Knuth disagree with the rule. Line
# breaks should occur before the binary operator for readability.
ignore = H306,H4,W503, E501
show-source = True
exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build

[doc8]
ignore = D001
extensions = .rst, .yaml
10 changes: 10 additions & 0 deletions zuul.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
- project:
merge-mode: squash-merge
default-branch: master
check:
jobs:
- otc-tox-pep8
gate:
jobs:
- otc-tox-pep8