oslo.service/oslo_service/tests
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
..
ssl_cert Extend test cert validity to 2049 2019-10-10 10:26:00 +02:00
__init__.py Align tests with monkey patch original current_thread _active 2020-05-11 15:58:22 +02:00
base.py Fix some reST field lists in docstrings 2017-03-22 13:24:21 +00:00
eventlet_service.py Align tests with monkey patch original current_thread _active 2020-05-11 15:58:22 +02:00
test_eventlet_backdoor.py Use unittest.mock instead of third party mock 2020-04-20 09:29:01 -05:00
test_fixture.py Use unittest.mock instead of third party mock 2020-04-20 09:29:01 -05:00
test_loopingcall.py Remove monotonic usage 2020-05-05 09:37:02 -05:00
test_periodic.py Use unittest.mock instead of third party mock 2020-04-20 09:29:01 -05:00
test_service.py Adding pre-commit 2020-09-08 14:26:37 +02:00
test_sslutils.py Use unittest.mock instead of third party mock 2020-04-20 09:29:01 -05:00
test_systemd.py Use unittest.mock instead of third party mock 2020-04-20 09:29:01 -05:00
test_threadgroup.py Add stop_on_exception to TG timers 2018-12-10 11:13:00 +13:00
test_wsgi.py Fix wsgi SSL tests for wsgi module under python 3 2020-06-17 12:23:42 +02:00