Skip to content

Commit 734c585

Browse files
chore(pre-commit): autofix run
1 parent 8407837 commit 734c585

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+199
-155
lines changed

config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,7 @@ class TestConfig(DevConfig):
348348
# pylint: disable=too-few-public-methods
349349
SQLALCHEMY_DATABASE_URI = os.environ.get(
350350
"DATABASE_URL",
351-
"postgresql+psycopg2://postgres@localhost/atlas_hub_scrap_test"
351+
"postgresql+psycopg2://postgres@localhost/atlas_hub_scrap_test",
352352
# "sqlite:///../test.sqlite",
353353
).replace("postgres://", "postgresql://")
354354

runner/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
cp web/model.py scheduler/
3535
3636
"""
37+
3738
import logging
3839
import os
3940

runner/model.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
2121
"""
2222

23-
2423
import datetime
2524
from dataclasses import dataclass
2625
from typing import Optional

runner/scripts/em_cmd.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
"""Functions used to run system commands."""
22

3-
43
import os
54
import re
65
import subprocess

runner/scripts/em_code.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
"""Task source code handler."""
22

3-
43
import re
54
import urllib.parse
65
from typing import Optional

runner/scripts/em_date.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
years
2121
"""
2222

23-
2423
import calendar
2524
import datetime
2625
import re

runner/scripts/em_ftp.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
"""FTP connection manager."""
22

3-
43
import csv
54
import fnmatch
65
import ftplib # noqa: S402

runner/scripts/em_messages.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
"""Exception and logging messages."""
22

3-
43
import datetime
54
import sys
65
from dataclasses import dataclass

runner/scripts/em_python.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
"""Python script runner."""
22

3-
43
import ast
54
import datetime
65
import sys

runner/scripts/em_sftp.py

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
"""SFTP connection manager."""
22

3-
43
import csv
54
import fnmatch
65
import os
@@ -39,9 +38,11 @@ def connection_key(connection: ConnectionSftp) -> Optional[paramiko.pkey.PKey]:
3938

4039
key = paramiko.RSAKey.from_private_key_file(
4140
key_file.name,
42-
password=em_decrypt(connection.key_password, app.config["PASS_KEY"])
43-
if connection.key_password
44-
else None,
41+
password=(
42+
em_decrypt(connection.key_password, app.config["PASS_KEY"])
43+
if connection.key_password
44+
else None
45+
),
4546
)
4647

4748
return key
@@ -81,9 +82,11 @@ def connect(connection: ConnectionSftp) -> Tuple[Transport, SFTPClient]:
8182
transport.auth_publickey(connection.username, key, event=None)
8283
transport.auth_password(
8384
connection.username,
84-
em_decrypt(connection.password, app.config["PASS_KEY"])
85-
if connection.password
86-
else "",
85+
(
86+
em_decrypt(connection.password, app.config["PASS_KEY"])
87+
if connection.password
88+
else ""
89+
),
8790
event=None,
8891
)
8992

0 commit comments

Comments
 (0)