Fix PDF docs build
Update tox config to include upper-constraints as dependencies. This resolves issues with building PDF docs. New pylint 2.9.0 provides some new checkers and detects new errors with existing checkers: - consider-using-dict-items Similar change was done in Octavia repo already. Change-Id: I48106513291263a7f754cfe7f9edc3703f8fbb7a
This commit is contained in:
parent
3208f7fbca
commit
6a9cd92ae0
|
@ -22,10 +22,9 @@ class BaseDataModel():
|
||||||
"""Converts a data model to a dictionary."""
|
"""Converts a data model to a dictionary."""
|
||||||
calling_classes = calling_classes or []
|
calling_classes = calling_classes or []
|
||||||
ret = {}
|
ret = {}
|
||||||
for attr in self.__dict__:
|
for attr, value in self.__dict__.items():
|
||||||
if attr.startswith('_') or not kwargs.get(attr, True):
|
if attr.startswith('_') or not kwargs.get(attr, True):
|
||||||
continue
|
continue
|
||||||
value = self.__dict__[attr]
|
|
||||||
|
|
||||||
if recurse:
|
if recurse:
|
||||||
if isinstance(getattr(self, attr), list):
|
if isinstance(getattr(self, attr), list):
|
||||||
|
|
4
tox.ini
4
tox.ini
|
@ -43,7 +43,9 @@ commands =
|
||||||
coverage report --fail-under=95 --skip-covered
|
coverage report --fail-under=95 --skip-covered
|
||||||
|
|
||||||
[testenv:docs]
|
[testenv:docs]
|
||||||
deps = -r{toxinidir}/doc/requirements.txt
|
deps =
|
||||||
|
-c{env:UPPER_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
|
||||||
|
-r{toxinidir}/doc/requirements.txt
|
||||||
whitelist_externals = rm
|
whitelist_externals = rm
|
||||||
commands =
|
commands =
|
||||||
rm -rf doc/build doc/source/reference/modules
|
rm -rf doc/build doc/source/reference/modules
|
||||||
|
|
Loading…
Reference in New Issue