Skip to content

Commit

Permalink
lint again
Browse files Browse the repository at this point in the history
  • Loading branch information
griembauer committed Dec 23, 2024
1 parent 532ed38 commit 738b281
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,10 @@ def main() -> None:
# image band export
image_file = os.path.join(output_dir, f"image_{tile_name}.tif")
grass.run_command(
"i.group", group="image_bands", input=image_bands, quiet=True
"i.group",
group="image_bands",
input=image_bands,
quiet=True,
)
grass.run_command(
"r.out.gdal",
Expand Down
6 changes: 3 additions & 3 deletions m.neural_network.preparedata/m.neural_network.preparedata.py
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ def main() -> None:
west = reg["w"]
for col in range(num_tiles_col):
grass.message(
_(f"Checking for null cells: " f"row {row} - col {col}")
_(f"Checking for null cells: row {row} - col {col}"),
)
row_str = str(row).zfill(num_zeros)
col_str = str(col).zfill(num_zeros)
Expand Down Expand Up @@ -333,7 +333,7 @@ def main() -> None:
_(
f"Segmenting and/or Exporting: "
f"training tile {i + 1} of {len(tr_tiles)}"

Check failure on line 335 in m.neural_network.preparedata/m.neural_network.preparedata.py

View workflow job for this annotation

GitHub Actions / lint / ruff

Ruff (COM812)

m.neural_network.preparedata/m.neural_network.preparedata.py:335:64: COM812 Trailing comma missing
)
),
)
new_mapset = f"tmp_mapset_{ID}_{tile_id}"
# update geojson values
Expand Down Expand Up @@ -371,7 +371,7 @@ def main() -> None:
tile_path = os.path.join(output_dir, "apply", tile_name)
tile_id = geojson_dict["features"][ap_tile]["properties"]["fid"]
grass.message(
_(f"Exporting: " f"apply tile {i + 1} of {len(ap_tiles)}")
_(f"Exporting: apply tile {i + 1} of {len(ap_tiles)}"),
)
new_mapset = f"tmp_mapset_{ID}_{tile_id}"
# update jeojson values
Expand Down

0 comments on commit 738b281

Please sign in to comment.