зеркало из https://github.com/microsoft/lisa.git
Linting Fixes
This commit is contained in:
Родитель
12715dd683
Коммит
0d023777af
|
@ -17,7 +17,7 @@ from threading import Lock, Timer
|
||||||
from typing import Any, Dict, List, Optional, Tuple, Type, cast
|
from typing import Any, Dict, List, Optional, Tuple, Type, cast
|
||||||
|
|
||||||
import libvirt # type: ignore
|
import libvirt # type: ignore
|
||||||
import pycdlib
|
import pycdlib # type: ignore
|
||||||
import yaml
|
import yaml
|
||||||
|
|
||||||
from lisa import schema, search_space
|
from lisa import schema, search_space
|
||||||
|
|
|
@ -379,7 +379,10 @@ class SshShell(InitializableMixin):
|
||||||
self.spawn(command=["rm", path_str])
|
self.spawn(command=["rm", path_str])
|
||||||
|
|
||||||
def chmod(self, path: PurePath, mode: int) -> None:
|
def chmod(self, path: PurePath, mode: int) -> None:
|
||||||
"""Change the file mode bits of each given file according to mode (Posix targets only)
|
"""
|
||||||
|
Change the file mode bits of each given file according to mode
|
||||||
|
(Posix targets only)
|
||||||
|
|
||||||
Inputs:
|
Inputs:
|
||||||
path: target path. (Absolute. Use a PurePosixPath, if the
|
path: target path. (Absolute. Use a PurePosixPath, if the
|
||||||
target node is a Posix one, because LISA
|
target node is a Posix one, because LISA
|
||||||
|
@ -693,7 +696,10 @@ class LocalShell(InitializableMixin):
|
||||||
path.unlink()
|
path.unlink()
|
||||||
|
|
||||||
def chmod(self, path: PurePath, mode: int) -> None:
|
def chmod(self, path: PurePath, mode: int) -> None:
|
||||||
"""Change the file mode bits of each given file according to mode (Posix targets only)
|
"""
|
||||||
|
Change the file mode bits of each given file according to mode
|
||||||
|
(Posix targets only)
|
||||||
|
|
||||||
Inputs:
|
Inputs:
|
||||||
path: target path. (Absolute)
|
path: target path. (Absolute)
|
||||||
mode: numerical chmod mode entry
|
mode: numerical chmod mode entry
|
||||||
|
|
|
@ -2,7 +2,6 @@ from typing import Any
|
||||||
|
|
||||||
from .assertpy import AssertionBuilder
|
from .assertpy import AssertionBuilder
|
||||||
|
|
||||||
|
|
||||||
class BaseMixin:
|
class BaseMixin:
|
||||||
description: Any = ...
|
description: Any = ...
|
||||||
def described_as(self, description: Any) -> AssertionBuilder: ...
|
def described_as(self, description: Any) -> AssertionBuilder: ...
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
from .hooks import HookimplMarker as HookimplMarker, HookspecMarker as HookspecMarker
|
from .hooks import HookimplMarker as HookimplMarker
|
||||||
from .manager import (
|
from .hooks import HookspecMarker as HookspecMarker
|
||||||
PluginManager as PluginManager,
|
from .manager import PluginManager as PluginManager
|
||||||
PluginValidationError as PluginValidationError,
|
from .manager import PluginValidationError as PluginValidationError
|
||||||
)
|
|
||||||
|
|
||||||
class HookCallError(Exception): ...
|
class HookCallError(Exception): ...
|
||||||
|
|
|
@ -1,9 +1,8 @@
|
||||||
from .hooks import (
|
|
||||||
HookImpl as HookImpl,
|
|
||||||
normalize_hookimpl_opts as normalize_hookimpl_opts,
|
|
||||||
)
|
|
||||||
from typing import Any, Optional
|
from typing import Any, Optional
|
||||||
|
|
||||||
|
from .hooks import HookImpl as HookImpl
|
||||||
|
from .hooks import normalize_hookimpl_opts as normalize_hookimpl_opts
|
||||||
|
|
||||||
class PluginValidationError(Exception):
|
class PluginValidationError(Exception):
|
||||||
plugin: Any = ...
|
plugin: Any = ...
|
||||||
def __init__(self, plugin: Any, message: Any) -> None: ...
|
def __init__(self, plugin: Any, message: Any) -> None: ...
|
||||||
|
|
|
@ -2,8 +2,9 @@
|
||||||
This type stub file was generated by pyright.
|
This type stub file was generated by pyright.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
import argparse
|
|
||||||
from __future__ import print_function
|
from __future__ import print_function
|
||||||
|
|
||||||
|
import argparse
|
||||||
from typing import (
|
from typing import (
|
||||||
Any,
|
Any,
|
||||||
Dict,
|
Dict,
|
||||||
|
|
Загрузка…
Ссылка в новой задаче