Skip to content

Commit

Permalink
Migrate to the last pylint
Browse files Browse the repository at this point in the history
  • Loading branch information
penguinolog committed May 6, 2020
1 parent 4234ff8 commit 85843cf
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Expand Up @@ -41,7 +41,7 @@ jobs:
install:
- *upgrade_python_toolset
- *install_deps
- pip install --upgrade "pylint!=2.5.0" isort[pyproject,requirements]
- pip install --upgrade "pylint>=2.5.2" isort[pyproject,requirements]
script:
- python setup.py develop -v clean
- python setup.py --version clean
Expand Down
2 changes: 1 addition & 1 deletion azure-pipelines.yml
Expand Up @@ -44,7 +44,7 @@ jobs:
python -m pip install --upgrade pip
pip install -U setuptools virtualenv
pip install -r CI_REQUIREMENTS.txt
pip install -U pylint!=2.5.0 pylint_junit isort[pyproject,requirements]
pip install -U pylint>=2.5.2 pylint_junit isort[pyproject,requirements]
displayName: 'Install dependencies'
- script: |
Expand Down
2 changes: 1 addition & 1 deletion exec_helpers/_ssh_base.py
Expand Up @@ -533,7 +533,7 @@ def __get_client(self) -> paramiko.SSHClient:
if config.proxycommand:
raise ValueError(f"ProxyCommand found in connection chain after first host reached!\n{config}")

raise RuntimeError(f"Unexpected state: Final host by configuration, but requested host is not reached")
raise RuntimeError("Unexpected state: Final host by configuration, but requested host is not reached")
return last_ssh_client

def __connect_sftp(self) -> None:
Expand Down
12 changes: 6 additions & 6 deletions exec_helpers/async_api/api.py
Expand Up @@ -121,7 +121,7 @@ def chroot(self, path: "typing.Union[str, pathlib.Path, None]") -> "typing.Conte
return _ChRootContext(conn=self, path=path)

@abc.abstractmethod
async def _exec_command( # type: ignore
async def _exec_command( # type: ignore # pylint: disable=invalid-overridden-method
self,
command: str,
async_result: api.ExecuteAsyncResult,
Expand Down Expand Up @@ -156,7 +156,7 @@ async def _exec_command( # type: ignore
"""

@abc.abstractmethod
async def _execute_async( # type: ignore
async def _execute_async( # type: ignore # pylint: disable=invalid-overridden-method
self,
command: str,
*,
Expand Down Expand Up @@ -194,7 +194,7 @@ async def _execute_async( # type: ignore
:raises OSError: impossible to process STDIN
"""

async def execute( # type: ignore
async def execute( # type: ignore # pylint: disable=invalid-overridden-method
self,
command: CommandT,
verbose: bool = False,
Expand Down Expand Up @@ -257,7 +257,7 @@ async def execute( # type: ignore
self.logger.log(level=log_level, msg=f"Command {result.cmd!r} exit code: {result.exit_code!s}")
return result

async def __call__( # type: ignore
async def __call__( # type: ignore # pylint: disable=invalid-overridden-method
self,
command: CommandT,
verbose: bool = False,
Expand Down Expand Up @@ -305,7 +305,7 @@ async def __call__( # type: ignore
**kwargs,
)

async def check_call( # type: ignore
async def check_call( # type: ignore # pylint: disable=invalid-overridden-method
self,
command: CommandT,
verbose: bool = False,
Expand Down Expand Up @@ -377,7 +377,7 @@ async def check_call( # type: ignore
raise exception_class(result=result, expected=expected_codes)
return result

async def check_stderr( # type: ignore
async def check_stderr( # type: ignore # pylint: disable=invalid-overridden-method
self,
command: CommandT,
verbose: bool = False,
Expand Down
6 changes: 3 additions & 3 deletions exec_helpers/async_api/exec_result.py
Expand Up @@ -36,7 +36,7 @@ class ExecResult(exec_result.ExecResult):
__slots__ = ()

@staticmethod
async def _poll_stream( # type: ignore
async def _poll_stream( # type: ignore # pylint: disable=invalid-overridden-method
src: _StreamT, log: "typing.Optional[logging.Logger]" = None, verbose: bool = False
) -> "typing.List[bytes]":
"""Stream poll helper.
Expand All @@ -57,7 +57,7 @@ async def _poll_stream( # type: ignore
)
return dst

async def read_stdout( # type: ignore
async def read_stdout( # type: ignore # pylint: disable=invalid-overridden-method
self,
src: "typing.Optional[_StreamT]" = None,
log: "typing.Optional[logging.Logger]" = None,
Expand All @@ -84,7 +84,7 @@ async def read_stdout( # type: ignore
self._stdout_str = self._stdout_brief = None
self._stdout += tuple(await self._poll_stream(src, log, verbose))

async def read_stderr( # type: ignore
async def read_stderr( # type: ignore # pylint: disable=invalid-overridden-method
self,
src: "typing.Optional[_StreamT]" = None,
log: "typing.Optional[logging.Logger]" = None,
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Expand Up @@ -53,7 +53,7 @@ commands = pip install ./ -vvv -U
[testenv:pylint]
usedevelop = True
deps =
pylint!=2.5.0
pylint>=2.5.2
isort[pyproject,requirements]
-r{toxinidir}/CI_REQUIREMENTS.txt
commands =
Expand Down

0 comments on commit 85843cf

Please sign in to comment.