Ratchet down and simplify linting rules
Some cleanup of the flake8 config while fixing minor linting violations previously ignored. Change-Id: Ie56205248a8f296c06fb19c24080e4ac52f76228
This commit is contained in:
parent
6d595cef17
commit
e4ebee51b8
7
.flake8
7
.flake8
@ -1,6 +1,5 @@
|
|||||||
[flake8]
|
[flake8]
|
||||||
# E123, E125 skipped as they are invalid PEP-8.
|
|
||||||
show-source = True
|
|
||||||
ignore = E123,E125,E126,E129,E226,H,W503,W504,W605
|
|
||||||
builtins = _
|
|
||||||
exclude=.venv,.git,.nox,.tox,dist,doc,*lib/python*,*egg,build
|
exclude=.venv,.git,.nox,.tox,dist,doc,*lib/python*,*egg,build
|
||||||
|
# E123, E125 and W503 are invalid per PEP-8; OpenStack's H rules don't apply
|
||||||
|
ignore = E123,E125,H,W503
|
||||||
|
show-source = True
|
||||||
|
@ -95,7 +95,7 @@ group_path = 'a/groups/%s/members/?recursive&pp=0'
|
|||||||
projects_file = ('gitweb?p=openstack/governance.git;a=blob_plain;'
|
projects_file = ('gitweb?p=openstack/governance.git;a=blob_plain;'
|
||||||
'f=reference/projects.yaml;hb=%s')
|
'f=reference/projects.yaml;hb=%s')
|
||||||
ref_name = 'refs/heads/master'
|
ref_name = 'refs/heads/master'
|
||||||
aprv_pattern = 'label-Workflow = .*\.\.\+1 group (.*)'
|
aprv_pattern = r'label-Workflow = .*\.\.\+1 group (.*)'
|
||||||
projects = requests.get(gerrit_url + projects_file % ref_name)
|
projects = requests.get(gerrit_url + projects_file % ref_name)
|
||||||
projects.encoding = 'utf-8' # Workaround for Gitweb encoding
|
projects.encoding = 'utf-8' # Workaround for Gitweb encoding
|
||||||
projects = yaml.safe_load(projects.text)
|
projects = yaml.safe_load(projects.text)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user