oslo.utils/oslo_utils/tests
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
..
fake Make method import_versioned_module work 2016-10-12 16:51:52 +08:00
__init__.py Move files out of the namespace package 2015-01-06 17:07:36 -05:00
base.py Move files out of the namespace package 2015-01-06 17:07:36 -05:00
test_dictutils.py Create dictutils and add 'flatten_dict_to_keypairs' 2016-11-01 23:35:57 +08:00
test_eventletutils.py Use unittest.mock instead of third party mock 2020-03-31 14:39:24 -05:00
test_excutils.py Use unittest.mock instead of third party mock 2020-03-31 14:39:24 -05:00
test_fileutils.py Add util methods for checking json and yaml formatted file 2020-08-26 09:39:02 -05:00
test_fixture.py Fix uuidsentinel to follow getattr protocol 2020-06-26 15:36:51 +02:00
test_fnmatch.py Stop to use the __future__ module. 2020-06-02 20:41:31 +02:00
test_imageutils.py Update hacking for Python3 2020-04-02 15:10:56 +02:00
test_importutils.py Make method import_versioned_module work 2016-10-12 16:51:52 +08:00
test_netutils.py New method in netutils: get_mac_addr_by_ipv6 2020-06-29 17:15:16 +02:00
test_reflection.py Adding pre-commit 2020-09-09 13:38:50 +02:00
test_secretutils.py Add digestmod when using hmac 2019-08-21 18:28:09 +02:00
test_specs_matcher.py Document specs_matcher.py functions 2018-01-30 10:10:26 -08:00
test_strutils.py Merge "Use unittest.mock instead of third party mock" 2020-04-06 15:12:09 +00:00
test_timeutils.py Use unittest.mock instead of third party mock 2020-03-31 14:39:24 -05:00
test_uuidutils.py Replace 'assertFalse(a in b)' with 'assertNotIn(a, b)' 2018-01-19 19:21:47 +08:00
test_versionutils.py versionutils: add version convert helper methods 2015-07-10 15:42:12 +08:00
tests_encodeutils.py Use unittest.mock instead of third party mock 2020-03-31 14:39:24 -05:00