Browse Source

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
changes/25/791925/3
likui 4 months ago
committed by Brian Haley
parent
commit
6a9cd92ae0
  1. 3
      octavia_lib/api/drivers/data_models.py
  2. 4
      tox.ini

3
octavia_lib/api/drivers/data_models.py

@ -22,10 +22,9 @@ class BaseDataModel():
"""Converts a data model to a dictionary."""
calling_classes = calling_classes or []
ret = {}
for attr in self.__dict__:
for attr, value in self.__dict__.items():
if attr.startswith('_') or not kwargs.get(attr, True):
continue
value = self.__dict__[attr]
if recurse:
if isinstance(getattr(self, attr), list):

4
tox.ini

@ -43,7 +43,9 @@ commands =
coverage report --fail-under=95 --skip-covered
[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
commands =
rm -rf doc/build doc/source/reference/modules

Loading…
Cancel
Save