Add tox-pep8 job and .gitignore

Add tox-pep8 job and comply with pep8.

Change-Id: I64365dc6c84bab5769f764083586b9adeb4fb00f
This commit is contained in:
Martin Kopec 2020-03-31 09:41:28 +00:00
parent 8bc9a1aabf
commit c258644d4b
5 changed files with 60 additions and 4 deletions

46
.gitignore vendored Normal file
View File

@ -0,0 +1,46 @@
*.py[cod]
*.pyc
# 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
.venv
# Mr Developer
.project
.pydevproject
# Sphinx
doc/build
# pbr generates these
AUTHORS
ChangeLog
# Editors
*~
.*.swp
.*sw?
# Files created by releasenotes build
releasenotes/build

View File

@ -1,3 +1,7 @@
- project:
templates:
- noop-jobs
check:
jobs:
- openstack-tox-pep8
gate:
jobs:
- openstack-tox-pep8

View File

@ -26,4 +26,4 @@ except ImportError:
setuptools.setup(
setup_requires=['pbr>=1.8'],
pbr=True)
pbr=True)

View File

@ -13,9 +13,10 @@
# License for the specific language governing permissions and limitations
# under the License.
def main():
pass
if __name__ == "__main__":
main()
main()

View File

@ -0,0 +1,5 @@
# The order of packages is significant, because pip processes them in the order
# of appearance. Changing the order has an impact on the overall integration
# process, which may cause wedges in the gate later.
flake8<3.0.0 # MIT