Flake8 update - openstack-branch-grabber.py
This update fixes issues with linting such that it can now pass OpenStack hacking/flake8 checks. Change-Id: Ib2d8253e428a233a1ff044f72de6702d7f45d86a Partial-Bug: 1440462
This commit is contained in:
parent
443c370f9d
commit
98b30ac12a
@ -24,14 +24,16 @@ the list of strings.
|
|||||||
|
|
||||||
Example Usage:
|
Example Usage:
|
||||||
~$ # Endpoint
|
~$ # Endpoint
|
||||||
~$ GITHUB_API_ENDPOINT="https://api.github.com/repos/stackforge/os-ansible-deployment"
|
~$ ENDPOINT="https://api.github.com/repos/stackforge/os-ansible-deployment"
|
||||||
~$ # Exclusions
|
~$ # Exclusions
|
||||||
~$ EXCLUDE_RELEASES="v9.0.0 gh-pages revert"
|
~$ EXCLUDE_RELEASES="v9.0.0 gh-pages revert"
|
||||||
~$ # Run script
|
~$ # Run script
|
||||||
~$ /opt/openstack-branch-grabber.py "${GITHUB_API_ENDPOINT}" "${EXCLUDE_RELEASES}"
|
~$ /opt/openstack-branch-grabber.py "${ENDPOINT}" "${EXCLUDE_RELEASES}"
|
||||||
|
|
||||||
Example Library Usage:
|
Example Library Usage:
|
||||||
>>> endpoint_url = "https://api.github.com/repos/stackforge/os-ansible-deployment"
|
>>> endpoint_url = (
|
||||||
|
... "https://api.github.com/repos/stackforge/os-ansible-deployment"
|
||||||
|
... )
|
||||||
>>> exclude_list = ["v9.0.0", "gh-pages", "revert"]
|
>>> exclude_list = ["v9.0.0", "gh-pages", "revert"]
|
||||||
>>> print(main(endpoint_url, exclude_list))
|
>>> print(main(endpoint_url, exclude_list))
|
||||||
9.0.0 9.0.1 9.0.2 9.0.3 stable/icehouse proposed/juno master
|
9.0.0 9.0.1 9.0.2 9.0.3 stable/icehouse proposed/juno master
|
||||||
|
Loading…
Reference in New Issue
Block a user