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>
This commit is contained in:
parent
be5a95d4e0
commit
99071ee1c8
@ -1,7 +1,7 @@
|
|||||||
---
|
---
|
||||||
repos:
|
repos:
|
||||||
- repo: https://github.com/pre-commit/pre-commit-hooks
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
||||||
rev: v2.5.0
|
rev: v3.3.0
|
||||||
hooks:
|
hooks:
|
||||||
- id: end-of-file-fixer
|
- id: end-of-file-fixer
|
||||||
- id: trailing-whitespace
|
- id: trailing-whitespace
|
||||||
@ -9,8 +9,14 @@ repos:
|
|||||||
- id: check-byte-order-marker
|
- id: check-byte-order-marker
|
||||||
- id: check-executables-have-shebangs
|
- id: check-executables-have-shebangs
|
||||||
- id: check-merge-conflict
|
- id: check-merge-conflict
|
||||||
|
- id: check-symlinks
|
||||||
- id: debug-statements
|
- 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
|
- id: check-yaml
|
||||||
files: .*\.(yaml|yml)$
|
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
|
||||||
|
@ -388,8 +388,8 @@ class ValidationLogs(object):
|
|||||||
:rtype: ``list``
|
:rtype: ``list``
|
||||||
"""
|
"""
|
||||||
return [join(self.logs_path, f) for f in os.listdir(self.logs_path) if
|
return [join(self.logs_path, f) for f in os.listdir(self.logs_path) if
|
||||||
os.path.isfile(join(self.logs_path, f)) and
|
os.path.isfile(join(self.logs_path, f)) and extension in
|
||||||
extension in os.path.splitext(join(self.logs_path, f))[1]]
|
os.path.splitext(join(self.logs_path, f))[1]]
|
||||||
|
|
||||||
def get_all_logfiles_content(self):
|
def get_all_logfiles_content(self):
|
||||||
"""Return logfiles content
|
"""Return logfiles content
|
||||||
|
Loading…
x
Reference in New Issue
Block a user