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>
* Update releases: Newton is unmainted; train, ussuri are relased
* We have redirects to some sites, ignore them
* Remove python2 code
* Use https as starting point
Switch repo also to victoria PTI jobs.
Change-Id: I744e725b32a797b0e208ac7e81afe4b8d3578751
Use sphinx-build and cleanup unused config.
Switch to openstackdocstheme 1.20.0 and remove obsolete settings from
conf.py files.
Update some RST files, they had wrong indentation.
Change-Id: Iaad2841db809f8a343fb8b1031cf8d0587d70442
Add new releases, add already stein to not forget about it.
Update regex for releases, we do not publish only to /ocata/
but also to /PROJECT/ocata - tread all these the same.
Change-Id: I8ef454f779904d91e5e79c83c488dcba42ba2150
In some part in the code we import objects. In the Openstack style guidelines
they recommend to import only modules. [1]: "Do not import objects, only modules".
[1] https://docs.openstack.org/hacking/0.10.3/
Change-Id: I49452e41f9674e6ebfcc1577d59d21750e957677
Downgrade old EOL releases, give current maintained releases and
development versions a higher priority.
this needs changes to the test framework, update mocking. Also, rename
URL to be docs.openstack.org and not .com.
Change-Id: I2c2c0408e203a65a9541baaf55ffe60694463975
- add py3 to tox.ini (gate already tests py3)
- move all tests to $GITROOT/test so they can all run
through testr
- add scrapy to test-requirements.txt to support sitemap tests
- move tests from test_items.py to test_sitemap_file.py
- fix broken sitemap tests
- add newton to list of old releases in sitemap_file.py
- ignore flake8 H101 as it returns false positives for Sphinx conf.py
- Use openstackdocstheme for docs
- Update sitemap README
- Restructure repo docs
- fix minor style issues
Change-Id: I22c018149b2eefde6ca5c38c22ac06886fe9a7a8
Some of tests use different method of
assertTrue(isinstance(A, B)) or assertEqual(type(A), B).
The correct way is to use assertIsInstance(A, B) provided
by testtools
Change-Id: Ib8dec9d44ce66b1b7ff1486a234fae73d29f23ff
Renamed sitemap file to avoid module name conflict
when importing at the sitemap unittest
Added py.test tox environment
Change-Id: I94480e374b29802414b62591a51c04ecd804905e
Closes-Bug: #1387716
Icehouse and Juno docs should not be accesed, so this updates the sitemap
generator tool to skip them. The sitemap can then be regenerated.
Partial-Bug: #1602647
Change-Id: I3117b114881c3a12b6a1a9565a0a720c9c8678b1
This solves the following issue when last-modified is not set in the
response header:
---snip---
KeyError: 'Last-Modified'
---snap---
Change-Id: I372f9638f6b5006ff250b9dbe0e75cc1556d18c2
The default value for the DOWNLOAD_WARNSIZE setting is 33554432 (32MB).
This patch will double the value. This solves the following warning:
---snip---
WARNING: Received (37889579) bytes larger than download warn size
(33554432).
---snap---
Change-Id: I5be4bcefa6fe2eb474901bb958669978dd6e1fef
- Removes grizzly, adds juno
- Removes /api/ just like /trunk/ now that <service>-api repos have moved
to openstack-attic
Change-Id: I4b5dea2379d58b3ed506f70c4a9539a64f892f8e
Require at least 0.9.1 because 0.9.0. had a minor bug.
This change also fixes all found issues.
Rewrote some docstrings to fit H405.
Change-Id: Ifeef11b783dbe70b2652d2b9ea29d5b20f69f2ce
This script crawls all available sites on http://docs.openstack.org and extracts
all URLs. Based on the URLs the script generates a sitemap for search engines
according to the protocol described at http://www.sitemaps.org/protocol.html.
Change-Id: Id7839d2048989da503d31e436455aea9bb4cdc1d
Adds an XSLT that transforms a generated sitemap, removing folsom
and trunk links
backport: stable/havana
Change-Id: I4484d50fa60eb53e3155fe4e119c30e54b03832e
Partial-bug: 1191447