diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index af504268..f0eefb2a 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,7 +1,7 @@ --- repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v2.5.0 + rev: v3.3.0 hooks: - id: end-of-file-fixer - id: trailing-whitespace @@ -9,8 +9,14 @@ repos: - id: check-byte-order-marker - id: check-executables-have-shebangs - id: check-merge-conflict + - id: check-symlinks - id: debug-statements - - id: flake8 - #entry: flake8 --ignore=E24,E121,E122,E123,E124,E126,E226,E265,E305,E402,F401,F405,E501,E704,F403,F841,W503,W605 - id: check-yaml files: .*\.(yaml|yml)$ + + - repo: https://gitlab.com/pycqa/flake8 + rev: 3.8.3 + hooks: + - id: flake8 + additional_dependencies: [flake8-typing-imports==1.6.0] + entry: flake8 --ignore=E24,E121,E122,E123,E124,E126,E226,E265,E305,E402,F401,F405,E501,E704,F403,F841,W503,W605 diff --git a/validations_libs/validation_logs.py b/validations_libs/validation_logs.py index 9a0c5ba6..8894a6ab 100644 --- a/validations_libs/validation_logs.py +++ b/validations_libs/validation_logs.py @@ -388,8 +388,8 @@ class ValidationLogs(object): :rtype: ``list`` """ return [join(self.logs_path, f) for f in os.listdir(self.logs_path) if - os.path.isfile(join(self.logs_path, f)) and - extension in os.path.splitext(join(self.logs_path, f))[1]] + os.path.isfile(join(self.logs_path, f)) and extension in + os.path.splitext(join(self.logs_path, f))[1]] def get_all_logfiles_content(self): """Return logfiles content