OpenStack Context library
Go to file
Hervé Beraud 3b6da997d6 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: I4473e5e96419e4da9c8922d5832249da23c61acd
Signed-off-by: Moisés Guimarães de Medeiros <moguimar@redhat.com>
2020-09-08 14:01:06 +02:00
doc Adding pre-commit 2020-09-08 14:01:06 +02:00
oslo_context Bump bandit version 2020-07-25 11:31:15 +02:00
releasenotes Adding pre-commit 2020-09-08 14:01:06 +02:00
.coveragerc Fix coverage configuration and execution 2015-10-09 16:11:45 -04:00
.gitignore gitignore: Hide reno cache files 2019-12-06 15:09:56 +00:00
.gitreview OpenDev Migration Patch 2019-04-19 19:43:09 +00:00
.mailmap exported from oslo-incubator by graduate.sh 2014-11-05 15:03:32 +01:00
.pre-commit-config.yaml Adding pre-commit 2020-09-08 14:01:06 +02:00
.stestr.conf Switch to stestr 2018-07-04 08:30:19 +07:00
.zuul.yaml Add Python3 victoria unit tests 2020-04-14 10:13:48 +00:00
CONTRIBUTING.rst Align contributing doc with oslo's policy 2020-05-04 18:22:00 +02:00
HACKING.rst Fix URLs according to document migration 2017-07-12 22:46:06 +08:00
LICENSE exported from oslo-incubator by graduate.sh 2014-11-05 15:03:32 +01:00
README.rst Replace git.openstack.org URLs with opendev.org URLs 2019-04-30 13:30:33 +08:00
lower-constraints.txt drop mock from lower-constraints 2020-06-09 11:45:08 +02:00
requirements.txt Remove use of positional decorator 2017-08-07 16:11:39 -07:00
setup.cfg Remove translation sections from setup.cfg 2020-05-22 21:02:57 +00:00
setup.py remove outdated header 2020-02-10 18:31:18 +01:00
test-requirements.txt Adding pre-commit 2020-09-08 14:01:06 +02:00
tox.ini Adding pre-commit 2020-09-08 14:01:06 +02:00

README.rst

Oslo Context Library

The Oslo context library has helpers to maintain useful information about a request context. The request context is usually populated in the WSGI pipeline and used by various modules such as logging.

Team and repository tags

image

Latest Version

Downloads