OpenStack library utils
Go to file
Hervé Beraud 71122a0cca Adding pre-commit
Introduced changes:
- pre-commit config and rules
- Add pre-commit to pep8 gate, Flake8 is covered in the pre-commithooks.
- 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: Iba1e2ce707051ea393ac559fc51b1f07da1f6ee8
Signed-off-by: Moisés Guimarães de Medeiros <moguimar@redhat.com>
2020-09-09 13:38:50 +02:00
doc Adding pre-commit 2020-09-09 13:38:50 +02:00
oslo_utils Adding pre-commit 2020-09-09 13:38:50 +02:00
releasenotes Adding pre-commit 2020-09-09 13:38:50 +02:00
tools Stop to use the __future__ module. 2020-06-02 20:41:31 +02:00
.coveragerc Fix coverage configuration and execution 2015-10-08 17:23:20 -04:00
.gitignore Ignore releasenote cache within git untracked files 2019-12-20 11:17:33 +01:00
.gitreview OpenDev Migration Patch 2019-04-19 19:27:54 +00:00
.mailmap exported from oslo-incubator by graduate.sh 2014-06-18 20:45:08 -04:00
.pre-commit-config.yaml Adding pre-commit 2020-09-09 13:38:50 +02:00
.stestr.conf Switch to stestr 2018-07-04 08:28:15 +07:00
.zuul.yaml [ussuri][goal] Drop python 2.7 support and testing 2020-02-03 18:30:47 +01:00
CONTRIBUTING.rst Align contributing doc with oslo's policy 2020-05-04 18:34:51 +02:00
HACKING.rst Update hacking version 2019-02-13 14:28:34 +08:00
LICENSE exported from oslo-incubator by graduate.sh 2014-06-18 20:45:08 -04:00
README.rst Replace git.openstack.org URLs with opendev.org URLs 2019-04-23 05:35:56 +00:00
bindep.txt Add bindep.txt file to prevent fallback to generic list 2018-03-19 17:28:53 -05:00
lower-constraints.txt versionutils: switch from pkg_resources to packaging 2020-07-05 14:17:47 -04:00
requirements.txt versionutils: switch from pkg_resources to packaging 2020-07-05 14:17:47 -04:00
setup.cfg Remove translation sections from setup.cfg 2020-05-15 11:28:52 +08:00
setup.py remove outdated header 2020-02-10 18:35:07 +01:00
test-requirements.txt Adding pre-commit 2020-09-09 13:38:50 +02:00
tox.ini Adding pre-commit 2020-09-09 13:38:50 +02:00

README.rst

Team and repository tags

image

oslo.utils

Latest Version

Downloads

The oslo.utils library provides support for common utility type functions, such as encoding, exception handling, string manipulation, and time handling.