Skip to content

Commit 85843cf

Browse files
committed
Migrate to the last pylint
1 parent 4234ff8 commit 85843cf

File tree

6 files changed

+13
-13
lines changed

6 files changed

+13
-13
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ jobs:
4141
install:
4242
- *upgrade_python_toolset
4343
- *install_deps
44-
- pip install --upgrade "pylint!=2.5.0" isort[pyproject,requirements]
44+
- pip install --upgrade "pylint>=2.5.2" isort[pyproject,requirements]
4545
script:
4646
- python setup.py develop -v clean
4747
- python setup.py --version clean

azure-pipelines.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ jobs:
4444
python -m pip install --upgrade pip
4545
pip install -U setuptools virtualenv
4646
pip install -r CI_REQUIREMENTS.txt
47-
pip install -U pylint!=2.5.0 pylint_junit isort[pyproject,requirements]
47+
pip install -U pylint>=2.5.2 pylint_junit isort[pyproject,requirements]
4848
displayName: 'Install dependencies'
4949
5050
- script: |

exec_helpers/_ssh_base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -533,7 +533,7 @@ def __get_client(self) -> paramiko.SSHClient:
533533
if config.proxycommand:
534534
raise ValueError(f"ProxyCommand found in connection chain after first host reached!\n{config}")
535535

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

539539
def __connect_sftp(self) -> None:

exec_helpers/async_api/api.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ def chroot(self, path: "typing.Union[str, pathlib.Path, None]") -> "typing.Conte
121121
return _ChRootContext(conn=self, path=path)
122122

123123
@abc.abstractmethod
124-
async def _exec_command( # type: ignore
124+
async def _exec_command( # type: ignore # pylint: disable=invalid-overridden-method
125125
self,
126126
command: str,
127127
async_result: api.ExecuteAsyncResult,
@@ -156,7 +156,7 @@ async def _exec_command( # type: ignore
156156
"""
157157

158158
@abc.abstractmethod
159-
async def _execute_async( # type: ignore
159+
async def _execute_async( # type: ignore # pylint: disable=invalid-overridden-method
160160
self,
161161
command: str,
162162
*,
@@ -194,7 +194,7 @@ async def _execute_async( # type: ignore
194194
:raises OSError: impossible to process STDIN
195195
"""
196196

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

260-
async def __call__( # type: ignore
260+
async def __call__( # type: ignore # pylint: disable=invalid-overridden-method
261261
self,
262262
command: CommandT,
263263
verbose: bool = False,
@@ -305,7 +305,7 @@ async def __call__( # type: ignore
305305
**kwargs,
306306
)
307307

308-
async def check_call( # type: ignore
308+
async def check_call( # type: ignore # pylint: disable=invalid-overridden-method
309309
self,
310310
command: CommandT,
311311
verbose: bool = False,
@@ -377,7 +377,7 @@ async def check_call( # type: ignore
377377
raise exception_class(result=result, expected=expected_codes)
378378
return result
379379

380-
async def check_stderr( # type: ignore
380+
async def check_stderr( # type: ignore # pylint: disable=invalid-overridden-method
381381
self,
382382
command: CommandT,
383383
verbose: bool = False,

exec_helpers/async_api/exec_result.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ class ExecResult(exec_result.ExecResult):
3636
__slots__ = ()
3737

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

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

87-
async def read_stderr( # type: ignore
87+
async def read_stderr( # type: ignore # pylint: disable=invalid-overridden-method
8888
self,
8989
src: "typing.Optional[_StreamT]" = None,
9090
log: "typing.Optional[logging.Logger]" = None,

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ commands = pip install ./ -vvv -U
5353
[testenv:pylint]
5454
usedevelop = True
5555
deps =
56-
pylint!=2.5.0
56+
pylint>=2.5.2
5757
isort[pyproject,requirements]
5858
-r{toxinidir}/CI_REQUIREMENTS.txt
5959
commands =

0 commit comments

Comments
 (0)