Commit Graph

29 Commits

Author SHA1 Message Date
Hervé Beraud ff156664e6 Adding pre-commit
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: I9b979afcd45e6a51252ccccb686b01beeb9157f8
Signed-off-by: Moisés Guimarães de Medeiros <moguimar@redhat.com>
2020-09-15 14:46:10 +02:00
zhangboye 93b3a5fb2f Fix hacking min version to 3.0.1
Change-Id: I494110dfb4c060885f6f14a46ee934993f8e7c25
2020-05-22 11:19:54 +08:00
Andreas Jaeger 78dc56d979 Update docstheme
With version 2.1, we renamed options in the extension, let's use them
here as well.

Increase also requirements for reno and Sphinx.

Change-Id: Ica3cc991ad7bcc1626b805ede57c9c23e2538239
2020-05-15 08:50:51 +02:00
Andreas Jaeger cd956ce134 Update hacking for Python3
The repo is Python 3 now, so update hacking to version 3.0 which
supports Python 3.

Fix problems found by updated hacking version.

Change-Id: I881f5d020d0ea95afb0eab6828928bc386afc263
2020-03-30 12:01:30 +00:00
Andreas Jaeger e791a888cc Update hacking version
Use latest release 1.1.0.

Change-Id: I00659c453a50c55f9569ec99dd69b923dbb087d4
2018-12-11 08:17:31 +01:00
OpenStack Proposal Bot c7d05d5c91 Updated from global requirements
Change-Id: Iab8d5f47203426ba6d86eb5510ad0d246afe6bc2
2018-03-15 07:42:58 +00:00
OpenStack Proposal Bot 84f1b67167 Updated from global requirements
Change-Id: I4816fe7db8f173e373ed76a88adac24f3a4af178
2018-01-18 03:20:36 +00:00
Thomas Bechtold 6fbcadb45f Break cycle dependency with reno
openstackdocstheme requires reno for testing, but reno requires
openstackdocstheme. To break this, make reno an optional test
requirement.

Change-Id: I267e0216089038a15df8221efc1fcd365e0809be
2017-08-09 15:44:14 +02:00
Thomas Bechtold 8454efe607 Break cycle dependency with os-api-ref
openstackdocstheme requires os-api-ref for testing, but os-api-ref requires
openstackdocstheme. To break this, make os-api-ref an optional test
requirement.

Change-Id: Ibbd01f63a516a49133cd8cdd4cf0cfe69bbaecaf
2017-08-05 08:58:33 +02:00
OpenStack Proposal Bot 9e7e5747d7 Updated from global requirements
Change-Id: I04bd860df8fc89257db80453b11d4f4a7c6e1e7e
2017-06-27 12:19:23 +00:00
Doug Hellmann f7a7a739ba switch release notes build to use openstackdocs instead of oslosphinx
Change-Id: I33274779c2ad8e11b9eae89f7918eea0ab937b3b
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2017-06-26 13:45:07 +00:00
OpenStack Proposal Bot 6e110ee7ca Updated from global requirements
Change-Id: Ic83f8fd6fba9262ad9c8e9dd42b3ee44b6063b1a
2017-06-02 22:04:30 +00:00
OpenStack Proposal Bot 3d4e8cefe9 Updated from global requirements
Change-Id: Ie479511780b049175c5073581297a4b57326e2a7
2017-05-17 03:55:56 +00:00
Andreas Jaeger 12123b723d Update hacking to current version
Sync with global requirements.

Change-Id: I8d15691b793abd1f2b06c57f522cd396d587000a
2017-03-01 19:38:58 +01:00
OpenStack Proposal Bot cf06b0d28b Updated from global requirements
Change-Id: Ic56a1e215040ad3e4a704547b96c0fd2958febf3
2017-02-10 05:57:00 +00:00
OpenStack Proposal Bot e83d58bc8f Updated from global requirements
Change-Id: I82f110cc4b4042ed186d7ddf3a1e64fc330a7214
2016-11-02 15:38:36 +00:00
OpenStack Proposal Bot ffa1c3ce5d Updated from global requirements
Change-Id: I2eb3f8e0b6e724ab012ec9d9f5a8e5dc8a829cc9
2016-09-28 16:59:08 +00:00
OpenStack Proposal Bot 3740db4a35 Updated from global requirements
Change-Id: Iab9e8a4aedb55cb4b7f094729f3222183b553493
2016-09-27 10:05:56 +00:00
Andreas Jaeger 5701016645 Update requirements
Update hacking to latest global-requirements version.
Remove requests, it's not needed anymore.

Change-Id: I2337772f9a856f1a751a77862799a45e12dda3ed
2016-09-22 09:21:22 +02:00
OpenStack Proposal Bot fe3bc79f2e Updated from global requirements
Change-Id: I82f7337e4566962ca18fdc5be2e1f9add5ee1a57
2016-08-26 09:16:17 +00:00
Karen Bradshaw 47149987c1 API References dropdown menu
- Adds a theme variable, sidebar_dropdown, to set
  a dropdown menu for the API references.
  To test, uncomment the parameter html_theme_options in
  doc/source/conf.py OR build the API Ref demo docs.
- Adds an API Ref docs demo integrating os-api-ref
  and openstackdocstheme. Tested with webserver:
  python -m SimpleHTTPServer <port_num>.

Change-Id: I346695cd407ecf4efc0a5e00f2c0ccc1ea099ec5
2016-08-22 10:27:45 -05:00
OpenStack Proposal Bot 9561d12c74 Updated from global requirements
Change-Id: I94b67652ba3221ddb0ba40ab57545bf4646be8f3
2016-06-24 03:16:06 +00:00
OpenStack Proposal Bot 71afab3356 Updated from global requirements
Change-Id: Ic9bd6e129435b80f1f6f98c979a7df4b42d6f805
2016-06-21 18:03:56 +00:00
OpenStack Proposal Bot 9bb0f5e951 Updated from global requirements
Change-Id: I95d53faba577e2560c6c58cf78786bbee89cb5ff
2016-04-07 15:26:42 +00:00
OpenStack Proposal Bot 41bb08f42d Updated from global requirements
Change-Id: I7f1f4921f928c5209147971e0aca9e879104fd61
2016-01-16 03:30:44 +00:00
OpenStack Proposal Bot bf6489704f Updated from global requirements
Change-Id: I88c641fba64b0c14aea9971b4ce1e34c47754e33
2015-12-23 00:36:03 +00:00
Andreas Jaeger 7ab7dbe186 Add reno for release-notes
Add reno to automatically generate release notes - the same way other
OpenStack projects do it.
For details see
http://lists.openstack.org/pipermail/openstack-dev/2015-November/078301.html

This adds a version.py file to request the version of the repo.

Change-Id: Ia009f4cf73bd4188af3a126123d688438b97c994
2015-11-10 08:37:48 +01:00
Andreas Jaeger 2a3217a2aa Update hacking to fix pep8 failure
With the release of pbr 1.0.0, we need a newer version of hacking.
Update the version. hacking is manually synced from global
requirements repo, use the version from there.

See also
http://lists.openstack.org/pipermail/openstack-dev/2015-May/064362.html

Change-Id: Ic3ff9ad74acd57fe149e5873fefe8a99e1d701d8
2015-05-19 09:37:11 +02:00
Anne Gentle 5150996122 Adds rearranged files for rename to openstackdocstheme 2015-01-28 13:56:35 -06:00