Merge "Update pre-commit hooks versions"

This commit is contained in:
Zuul 2021-03-09 17:48:57 +00:00 committed by Gerrit Code Review
commit 7b1c687310
2 changed files with 5 additions and 4 deletions

View File

@ -2,7 +2,7 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks.git
rev: v3.1.0
rev: v3.4.0
hooks:
- id: check-added-large-files
- id: check-byte-order-marker
@ -19,14 +19,14 @@ repos:
- id: trailing-whitespace
- repo: https://gitlab.com/pycqa/flake8.git
rev: '3.8.3' # pick a git hash / tag to point to
rev: '3.8.4' # pick a git hash / tag to point to
hooks:
- id: flake8
additional_dependencies: [flake8-import-order]
files: ^tobiko/
- repo: https://github.com/pre-commit/mirrors-mypy.git
rev: 'v0.782'
rev: 'v0.812'
hooks:
- id: mypy
files: ^tobiko/

View File

@ -17,6 +17,7 @@ from __future__ import absolute_import
from oslo_log import log
import paramiko
from paramiko import channel
import tobiko
from tobiko.shell.sh import _exception
@ -183,7 +184,7 @@ class SSHShellProcessFixture(_process.ShellProcessFixture):
self.command)
class SSHChannelFile(paramiko.ChannelFile):
class SSHChannelFile(channel.ChannelFile):
def fileno(self):
return self.channel.fileno()