Skip to content

Commit 3e0adfa

Browse files
committed
Python 3.10 for CI + pylint update
1 parent 09e2c36 commit 3e0adfa

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

.github/workflows/pythonpackage.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
- name: Set up Python
2727
uses: actions/setup-python@v2
2828
with:
29-
python-version: '3.8'
29+
python-version: '3.7'
3030
- name: Install dependencies
3131
run: |
3232
python -m pip install --upgrade pip
@@ -81,8 +81,8 @@ jobs:
8181
strategy:
8282
max-parallel: 6
8383
matrix:
84-
os: [ubuntu-latest, windows-latest]
85-
python-version: [3.7, 3.8, 3.9]
84+
os: ["ubuntu-latest", "windows-latest"]
85+
python-version: ["3.7", "3.8", "3.9", "3.10"]
8686

8787
steps:
8888
- uses: actions/checkout@v2

exec_helpers/_ssh_helpers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -473,7 +473,7 @@ def parse_ssh_config(
473473
ssh_config_path = pathlib.Path(ssh_config).expanduser()
474474
if ssh_config_path.exists():
475475
real_config = paramiko.SSHConfig()
476-
with ssh_config_path.open() as f_config:
476+
with ssh_config_path.open("t", encoding="utf-8") as f_config:
477477
real_config.parse(f_config)
478478
return _parse_paramiko_ssh_config(real_config, host)
479479

exec_helpers/api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -557,7 +557,7 @@ def execute(
557557
self.logger.log(level=log_level, msg=f"Command {result.cmd!r} exit code: {result.exit_code!s}")
558558
return result
559559

560-
def __call__(
560+
def __call__( # pylint: disable=arguments-differ
561561
self,
562562
command: CommandT,
563563
verbose: bool = False,

exec_helpers/async_api/api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -520,7 +520,7 @@ async def execute(
520520
self.logger.log(level=log_level, msg=f"Command {result.cmd!r} exit code: {result.exit_code!s}")
521521
return result
522522

523-
async def __call__(
523+
async def __call__( # pylint: disable=invalid-overridden-method,arguments-differ
524524
self,
525525
command: CommandT,
526526
verbose: bool = False,

0 commit comments

Comments
 (0)