Skip to content

Commit ed23f18

Browse files
committed
black checks fixes.
1 parent 4a08e60 commit ed23f18

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

Mergin/repair.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ def fix_datum_shift_grids(mp):
2525

2626
return None
2727

28+
2829
def fix_project_home_path():
2930
"""Remove home path settings from the project."""
3031
cur_project = QgsProject.instance()

scripts/deploy_win.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@
55

66
this_dir = os.path.dirname(os.path.realpath(__file__))
77
home_dir = os.path.expanduser("~")
8-
dest_dir_plug = os.path.join(home_dir, "AppData", "Roaming", "QGIS", "QGIS3", "profiles", profile, "python", "plugins", "Mergin")
8+
dest_dir_plug = os.path.join(
9+
home_dir, "AppData", "Roaming", "QGIS", "QGIS3", "profiles", profile, "python", "plugins", "Mergin"
10+
)
911
print(dest_dir_plug)
1012
src_dir_plug = os.path.join(os.path.dirname(this_dir), "Mergin")
1113
try:

scripts/update_version.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55

66
def replace_in_file(filepath, regex, sub):
7-
with open(filepath, 'r') as f:
7+
with open(filepath, "r") as f:
88
content = f.read()
99

1010
content_new = re.sub(regex, sub, content, flags=re.M)
@@ -15,7 +15,7 @@ def replace_in_file(filepath, regex, sub):
1515

1616
dir_path = os.path.dirname(os.path.realpath(__file__))
1717
parser = argparse.ArgumentParser()
18-
parser.add_argument('--version', help='version to replace')
18+
parser.add_argument("--version", help="version to replace")
1919
args = parser.parse_args()
2020
ver = args.version
2121
print("using version " + ver)

0 commit comments

Comments
 (0)