Commit Graph

22 Commits

Author SHA1 Message Date
songwenping e2206a300d Remove unnecessary unicode prefixes
Change-Id: I4b8b982c9ef49595682744e022154be87f259d23
2022-04-19 19:23:15 +08:00
Hervé Beraud b1122e81ab 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: I04e73b8a70d32fec3e6131526e0bed0be8599c28
Signed-off-by: Moisés Guimarães de Medeiros <moguimar@redhat.com>
2020-09-03 14:20:33 +02:00
Zuul f0ef3bbd70 Merge "Add release notes links to doc index" 2020-06-03 10:15:34 +00:00
Andreas Jaeger 4c0480648d Switch to newer openstackdocstheme and reno versions
Switch to openstackdocstheme 2.2.0 and reno 3.1.0 versions. Using
these versions will allow especially:
* Linking from HTML to PDF document
* Allow parallel building of documents
* Fix some rendering

Update Sphinx version as well.

Remove docs requirements from lower-constraints, they are not needed
during install or test but only for docs building.

openstackdocstheme renames some variables, so follow the renames
before the next release removes them. A couple of variables are also
not needed anymore, remove them.

Depends-On: https://review.opendev.org/728938
Change-Id: Ie162c8e72f4edec345c20de4517304cc14f7fe0d
2020-05-18 20:58:01 +02:00
Hervé Beraud 10d5abdc29 Add release notes links to doc index
Change-Id: I25f156177ccabfb6fe99f808c3b5868affabafce
2020-04-16 17:36:15 +02:00
Hervé Beraud 89beae0753 [ussuri][goal] Drop python 2.7 support and testing
OpenStack is dropping the py2.7 support in Ussuri cycle.

Complete discussion & schedule can be found in
-
http://lists.openstack.org/pipermail/openstack-discuss/2019-October/010142.html
- https://etherpad.openstack.org/p/drop-python2-support

Ussuri Communtiy-wide goal:
https://governance.openstack.org/tc/goals/selected/ussuri/drop-py27.html

Change-Id: I02784f635368ad7cc5ffde7cc8a4f4367143da98
2020-02-03 17:56:35 +01:00
caoyuan 5a91d686de tox: Keeping going with docs
Sphinx 1.8 introduced [1] the '--keep-going' argument which, as its name
suggests, keeps the build running when it encounters non-fatal errors.
This is exceptionally useful in avoiding a continuous edit-build loop
when undertaking large doc reworks where multiple errors may be
introduced.

[1] https://github.com/sphinx-doc/sphinx/commit/e3483e9b045

Change-Id: I2858ce6bf73471328b92b52be1cdc18ab46254d9
2019-11-03 02:10:35 +08:00
pengyuesheng 6c5995a952 Bump the openstackdocstheme extension to 1.20
Some options are now automatically configured by the version 1.20:
- project
- html_last_updated_fmt
- latex_engine
- latex_elements
- version
- release.

Change-Id: Ie89fa05774e224a9b8c05f0442fda7592df9aa5d
2019-10-12 14:58:52 +08:00
pengyuesheng 42b9d6ac70 Sync Sphinx requirement
Sync sphinx dependency with global requirements. It caps python 2 since
sphinx 2.0 no longer supports Python 2.7.

Change-Id: I08fe97b5e15d7aae025f3d149c1242841d01ee5b
2019-10-10 14:29:54 +08:00
Dirk Mueller 5259c08c09 Always close all passed in fds beyond sensible_fd_limit on launch
Change Idd98c183eca3e2df8648fc0f37d27fe9cc6d0563 stopped closing
filedescriptors beyond the sensible_fd_limit. With this patch
the previous behavior is restored. We can close the fds more efficiently
by just iterating over /proc/self/fd on Linux and only change
the rlimit/MAXFD setting when successful.

Change-Id: I3b481ddd14ae2b948270d715aad157cf3996def7
2019-03-23 11:30:30 +01:00
Dirk Mueller c0a8699820 Run rootwrap with lower fd ulimit by default
On Python 2.x, a subprocess.Popen() with close_fds=True will
fork and then close filedescriptors range(3..os.sysconf("SC_OPEN_MAX")),
which thanks to Kernel PTI (Kaiser patches) is significantly slower
in 2018 when the range is very large. With a soft limit of 1048576,
benchmark.py reports an overhead of ~ 400ms without this patch and 2ms
with the patch applied. This patch adds a configuration option and
sets a more sensible default of 1024 file descriptor limit by default.

Closes-Bug: 1796267
Change-Id: Idd98c183eca3e2df8648fc0f37d27fe9cc6d0563
2018-10-09 12:12:46 +02:00
OpenStack Proposal Bot abc448e44d Updated from global requirements
Change-Id: I49117280920792934351dbb86d9d7d886d4deefa
2018-03-15 07:50:39 +00:00
OpenStack Proposal Bot 4ec6b38ee3 Updated from global requirements
Change-Id: I344b5699294eca50d8a4bee93dc7ea403df873bd
2018-01-18 03:24:33 +00:00
OpenStack Proposal Bot 68a64928ab Updated from global requirements
Change-Id: Ibedd081f394ed3ac0fae1ece8ff937a3b6b79bc6
2018-01-02 07:13:00 +00:00
Sean McGinnis d3d76e08fc Follow the new PTI for document build
For compliance with the Project Testing Interface as described in:

https://governance.openstack.org/tc/reference/project-testing-interface.html

For more detials information, please refer to:

http://lists.openstack.org/pipermail/openstack-dev/2017-December/125710.html

Change-Id: Ifa689b590378f58d7abe2a52e8b92f5f32dc5196
2017-12-29 11:56:10 -06:00
Akihiro Motoki eb7ef1567d rearrange existing documentation to fit the new standard layout
Change-Id: Ieded73a772471f6b2a32b489b4e3fc33a3daf33e
2017-07-08 22:27:12 +00:00
Akihiro Motoki 8ed910128d Switch from oslosphinx to openstackdocstheme
Change-Id: Iccb9d585485ecd0181c71c08de920f4836f0d774
2017-07-08 22:27:10 +00:00
Ronald Bradford 6d104a3b41 Remove unused use-syslog-rfc-format option
Remove this option that appears ignored. For reference by similar name
only, this option is marked as deprecated and to be removed from oslo.log
in Mitaka. Refer to I9b77899fe437d359df2a15961866b194b564ca48.

Change-Id: I9a97b53d829a9ca6b92ee4b545f616a3bc5b25be
2016-02-04 18:37:40 +00:00
Doug Hellmann 1334f3e9ec move usage instructions into main docs
Pare down the readme by moving most of the usage instructions into the
main documentation. Clean up the results so they render nicely.

Remove the duplicate copy of those instructions by removing
doc/source/readme.rst.

Fix up the documentation and readme titles to make them consistent.

Change-Id: I63f711bb28f3003d7b991d1526fd4b373b530143
2015-09-25 17:50:47 -04:00
Doug Hellmann 2c7661fa34 add pbr-generated release history to the documentation
Change-Id: I8444a86b284739b5eb8e83cff09e7840fbe72452
2015-09-24 20:25:02 +00:00
Doug Hellmann 26ea910bdb Clean up title on main doc page
Make the title on the main documentation page consistent with the other
projects.

Change-Id: I8f15bfa8ace018f6e82e61a33fdbe20c96d8b8b9
2014-09-10 11:03:58 -04:00
Davanum Srinivas 94140b3287 Initial cut of documentation for oslo.rootwrap
Closes-Bug: #1364141
Change-Id: If20de8767ff36b0a64c3b39f346d54a1ad6ca08f
2014-09-10 09:16:20 -04:00