Browse Source

Bump pre-commit-hooks to v3.3.0

This patch also uses pycqa/flake8 instead of the default one proposed by
pre-commit and which is deprecated.

Change-Id: Iba243abc1ec01912edb4b3645f8ccce95e0f2e88
Signed-off-by: Gael Chamoulaud (Strider) <gchamoul@redhat.com>
changes/32/764332/1
Gael Chamoulaud (Strider) 7 months ago
parent
commit
99071ee1c8
No known key found for this signature in database GPG Key ID: 4119D0305C651D66
2 changed files with 11 additions and 5 deletions
  1. +9
    -3
      .pre-commit-config.yaml
  2. +2
    -2
      validations_libs/validation_logs.py

+ 9
- 3
.pre-commit-config.yaml View File

@ -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

+ 2
- 2
validations_libs/validation_logs.py View File

@ -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


Loading…
Cancel
Save