oslo.service/oslo_service
Hervé Beraud 10ce88ed2b 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: Ib18f38dbec90c62e870307bf22a8b4f193237bce
Signed-off-by: Moisés Guimarães de Medeiros <moguimar@redhat.com>
2020-09-08 14:26:37 +02:00
..
locale/en_GB/LC_MESSAGES Imported Translations from Zanata 2018-03-01 06:11:58 +00:00
tests Adding pre-commit 2020-09-08 14:26:37 +02:00
__init__.py Do not import "oslo.log" in the main module 2020-07-20 15:49:54 +00:00
_i18n.py Update URLs in documents according to document migration 2017-07-12 23:28:29 +08:00
_options.py Make PID availabe as formatstring in backdoor path 2019-05-22 16:21:44 +02:00
eventlet_backdoor.py Stop to use the __future__ module. 2020-06-02 20:40:55 +02:00
fixture.py Use eventletutils Event class 2019-01-10 22:06:11 +00:00
loopingcall.py Drop six usages 2020-05-26 15:20:01 +02:00
periodic_task.py Drop six usages 2020-05-26 15:20:01 +02:00
service.py Drop six usages 2020-05-26 15:20:01 +02:00
sslutils.py Add Bandit to tox for security static analysis 2015-12-01 16:10:15 +03:00
systemd.py Fix argument type for _sd_notify() on python3 2016-03-31 10:51:19 -06:00
threadgroup.py Deprecate the ThreadGroup.cancel() API 2018-12-20 11:11:23 +13:00
version.py pbr.version.VersionInfo needs package name (oslo.xyz and not oslo_xyz) 2017-02-06 12:49:21 -05:00
wsgi.py Stop to use the __future__ module. 2020-06-02 20:40:55 +02:00