Update pre-commit hooks versions
Change-Id: If881f3c8e8b4b3c67226fb60957ce12da70dbfc8
This commit is contained in:
parent
b9868d44ca
commit
f6301b3fbd
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
repos:
|
repos:
|
||||||
- repo: https://github.com/pre-commit/pre-commit-hooks.git
|
- repo: https://github.com/pre-commit/pre-commit-hooks.git
|
||||||
rev: v3.1.0
|
rev: v3.4.0
|
||||||
hooks:
|
hooks:
|
||||||
- id: check-added-large-files
|
- id: check-added-large-files
|
||||||
- id: check-byte-order-marker
|
- id: check-byte-order-marker
|
||||||
@ -19,14 +19,14 @@ repos:
|
|||||||
- id: trailing-whitespace
|
- id: trailing-whitespace
|
||||||
|
|
||||||
- repo: https://gitlab.com/pycqa/flake8.git
|
- 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:
|
hooks:
|
||||||
- id: flake8
|
- id: flake8
|
||||||
additional_dependencies: [flake8-import-order]
|
additional_dependencies: [flake8-import-order]
|
||||||
files: ^tobiko/
|
files: ^tobiko/
|
||||||
|
|
||||||
- repo: https://github.com/pre-commit/mirrors-mypy.git
|
- repo: https://github.com/pre-commit/mirrors-mypy.git
|
||||||
rev: 'v0.782'
|
rev: 'v0.812'
|
||||||
hooks:
|
hooks:
|
||||||
- id: mypy
|
- id: mypy
|
||||||
files: ^tobiko/
|
files: ^tobiko/
|
||||||
|
@ -17,6 +17,7 @@ from __future__ import absolute_import
|
|||||||
|
|
||||||
from oslo_log import log
|
from oslo_log import log
|
||||||
import paramiko
|
import paramiko
|
||||||
|
from paramiko import channel
|
||||||
|
|
||||||
import tobiko
|
import tobiko
|
||||||
from tobiko.shell.sh import _exception
|
from tobiko.shell.sh import _exception
|
||||||
@ -183,7 +184,7 @@ class SSHShellProcessFixture(_process.ShellProcessFixture):
|
|||||||
self.command)
|
self.command)
|
||||||
|
|
||||||
|
|
||||||
class SSHChannelFile(paramiko.ChannelFile):
|
class SSHChannelFile(channel.ChannelFile):
|
||||||
|
|
||||||
def fileno(self):
|
def fileno(self):
|
||||||
return self.channel.fileno()
|
return self.channel.fileno()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user