summaryrefslogtreecommitdiff
path: root/tox.ini
diff options
context:
space:
mode:
authorStephen Finucane <sfinucan@redhat.com>2018-03-20 16:29:07 +0000
committerStephen Finucane <sfinucan@redhat.com>2018-06-18 12:29:18 +0100
commiteb6b43ba06698d37e2d8090335e0082f0a6dfdb5 (patch)
tree34763bf81fb49eb5726de5d2096a794b95d122f5 /tox.ini
parent9fb043606e5f23bcdf8fef17fe57f11cb85132a8 (diff)
downloadoslo-config-eb6b43ba06698d37e2d8090335e0082f0a6dfdb5.tar.gz
sphinxext: Reporting correct lines for errors
Previously, we had an issue whereby errors found in the generated source would result in the following, rather unhelpful error messages: <oslo_config.sphinxext>:1: WARNING: Unexpected indentation. Turns out that the 'ViewList.append' function takes a third argument, 'offset', to indicate where in the source an error is occurring. Start using this to improve the quality of the error messages we get from poorly formatted options. Given that we don't actually modify the source file, it's also necessary to write the output from the directive to an intermediate temp file. This also fixes the order of imports, given that we're adding new imports as we go. Change-Id: I6f6796629705926dbed5015f20d47187b77c9c50 Related-Bug: #1755783
Diffstat (limited to 'tox.ini')
0 files changed, 0 insertions, 0 deletions