Pin rstcheck to specific version, change flag name which has been
renamed in restic 6.0.0.
@@ -136,11 +136,11 @@ commands = bash -c "./scripts/dist_wheel_install_check.sh"
[testenv:docs]
deps = pyopenssl==21.0.0
fasteners
- rstcheck
+ rstcheck==6.0.0
requests_mock
changedir = docs
commands = pip install sphinx==4.5.0
- rstcheck --report warning ../CHANGES.rst
+ rstcheck --report-level warning ../CHANGES.rst
python ../contrib/generate_provider_feature_matrix_table.py
sphinx-apidoc -d 4 ../libcloud/ -o apidocs/
/bin/bash -c "ls apidocs/modules.rst && (grep orphan apidocs/modules.rst || sed -i '1i :orphan:\n' apidocs/modules.rst) || (exit 0)"
@@ -152,14 +152,14 @@ commands = pip install sphinx==4.5.0
# those API docs files are not included anywhere.
deps = pyopenssl==21.0.0
fasteners
- rstcheck
+ rstcheck==6.0.0
requests_mock
# Pinned due to a bug in a newer version
changedir = docs
commands = pip install sphinx==4.5.0
- rstcheck --report warning ../README.rst
- rstcheck --report warning ../CHANGES.rst
- rstcheck --report warning ../CONTRIBUTING.rst
+ rstcheck --report-level warning ../README.rst
+ rstcheck --report-level warning ../CHANGES.rst
+ rstcheck --report-level warning ../CONTRIBUTING.rst
python ../contrib/generate_provider_feature_matrix_table.py
/bin/bash -c "ls apidocs/modules.rst && (grep orphan apidocs/modules.rst || sed -i '1i :orphan:\n' apidocs/modules.rst) || (exit 0)"
# TODO: Add -W back when we fix all the warnings in docstrings
@@ -170,7 +170,7 @@ basepython: python3.7
deps = typing
pyopenssl==21.0.0
fasteners
- rstcheck
+ rstcheck==6.0.0
requests
commands = python ./contrib/generate_provider_feature_matrix_table.py
@@ -252,7 +252,7 @@ commands = pylint -E --load-plugins=pylint_plugins.driver_class --rcfile=./.pyli
[testenv:lint]
deps = -r{toxinidir}/requirements-tests.txt
fasteners
- rstcheck
+ rstcheck==6.0.0
commands = flake8 --config ./.flake8 libcloud/
flake8 --config ./.flake8 libcloud/test/
@@ -262,9 +262,9 @@ commands = flake8 --config ./.flake8 libcloud/
flake8 --config ./.flake8 docs/examples/
flake8 --config ./.flake8 contrib/
python -mjson.tool libcloud/data/pricing.json /dev/null
- rstcheck --report warning README.rst
- rstcheck --report warning CHANGES.rst
- rstcheck --report warning CONTRIBUTING.rst
+ rstcheck --report-level warning README.rst
+ rstcheck --report-level warning CHANGES.rst
+ rstcheck --report-level warning CONTRIBUTING.rst
[testenv:black]
deps = -r{toxinidir}/requirements-tests.txt
