This website requires JavaScript.
2024年03月04日 16:25:02 +01:00
[tox]
ignore_basepython_conflict=True
install_command = python -I -m pip install -c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master} {opts} {packages}
-r{toxinidir}/test-requirements.txt
-r{toxinidir}/requirements.txt
# A very dirty hack to bypass dependency conflict of openapi-core/jsonchema/referencing
pip install -U openapi-core
[testenv:functional{,-py310,-py311}]
# Generators conflict with each other since every service is screwing
# OsloConfig to its own flavor and I have not found a working way to deal with
# that except of physically isolating them
stestr --test-path ./codegenerator/tests/functional/ run {posargs}
[testenv:docs{,-py310,-py311}]
Build documentation in HTML format.
# We do not want the package (because of heavy dependencies for docs)
-c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
-r{toxinidir}/doc/requirements.txt
sphinx-build -W --keep-going -b html -j auto doc/source/ doc/build/html
[testenv:releasenotes{,-py310,-py311}]
-c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
-r{toxinidir}/doc/requirements.txt
sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html
pre-commit run --all-files --show-diff-on-failure
2024年06月13日 11:02:58 +02:00
[testenv:publish-openapi-specs]
2024年06月12日 13:47:23 +02:00
description =
No-op env for publishing built Specs
# We need any dependency, since only that causes `tox -epublish --notest` to create log dir that is required by tox-siblings role
2024年03月04日 16:25:02 +01:00
[flake8]
application-import-names = codegenerator
# The following are ignored on purpose. It's not super worth it to fix them.
# However, if you feel strongly about it, patches will be accepted to fix them
# if they fix ALL of the occurances of one and only one of them.
# E203 Black will put spaces after colons in list comprehensions
# E501 Black takes care of line length for us
# H238 New Style Classes are the default in Python3
# H301 Black will put commas after imports that can't fit on one line
# H4 Are about docstrings and there's just a huge pile of pre-existing issues.
# W503 Is supposed to be off by default but in the latest pycodestyle isn't.
# Also, both openstacksdk and Donald Knuth disagree with the rule. Line
# breaks should occur before the binary operator for readability.
ignore = E203, E501, H301, H238, H4, W503
import-order-style = pep8
exclude = .venv,.git,.tox,dist,doc,*lib/python*,*egg,build,