Tools used by OpenStack Documentation
fbe3f2fe7c
Introduced changes: - pre-commit config and rules - Add pre-commit to pep8 gate, Flake8 is covered in the pre-commit hooks. - Applying fixes for pre-commit compliance in all code. Also commit hash will be used instead of version tags in pre-commit to prevend arbitrary code from running in developer's machines. pre-commit will be used to: - trailing whitespace; - Replaces or checks mixed line ending (mixed-line-ending); - Forbid files which have a UTF-8 byte-order marker (check-byte-order-marker); - Checks that non-binary executables have a proper shebang (check-executables-have-shebangs); - Check for files that contain merge conflict strings (check-merge-conflict); - Check for debugger imports and py37+ breakpoint() calls in python source (debug-statements); - Attempts to load all yaml files to verify syntax (check-yaml); - Run flake8 checks (flake8) (local) For further details about tests please refer to: https://github.com/pre-commit/pre-commit-hooks Change-Id: I7ac1599e903577e28fb64bb07a6b984e1ff8a023 Signed-off-by: Moisés Guimarães de Medeiros <moguimar@redhat.com> |
||
---|---|---|
bin | ||
doc/source | ||
os_doc_tools | ||
releasenotes | ||
sitemap | ||
test | ||
.gitignore | ||
.gitreview | ||
.mailmap | ||
.pre-commit-config.yaml | ||
.stestr.conf | ||
.zuul.yaml | ||
bindep.txt | ||
CONTRIBUTING.rst | ||
HACKING.rst | ||
LICENSE | ||
lower-constraints.txt | ||
README.rst | ||
RELEASE_NOTES.rst | ||
requirements.txt | ||
setup.cfg | ||
setup.py | ||
test-requirements.txt | ||
tox.ini |
Team and repository tags
OpenStack Doc Tools
This repository contains tools used by the OpenStack Documentation project.
For more details, see the OpenStack Documentation Contributor Guide.
- License: Apache License, Version 2.0
- Source: https://opendev.org/openstack/openstack-doc-tools
- Bugs: https://bugs.launchpad.net/openstack-doc-tools
Prerequisites
You need to have Python 2.7 installed for using the tools.
This package needs a few external dependencies including lxml. If you do not have lxml installed, you can either install python-lxml or have it installed automatically and build from sources. To build lxml from sources, you need a C compiler and the xml and xslt development packages installed.
To install python-lxml, execute the following based on your distribution.
On Fedora, RHEL 7, and CentOS 7:
$ yum install python-lxml
On openSUSE:
$ zypper in python-lxml
On Ubuntu:
$ apt-get install python-lxml
For building from source, install the dependencies of lxml.
On Fedora, RHEL 7, and CentOS 7:
$ yum install python-devel libxml2-devel libxslt-devel
On openSUSE:
$ zypper in libxslt-devel
On Ubuntu:
$ apt-get install libxml2-dev libxslt-dev