Skip to content

Commit 77a1aca

Browse files
style: wrap overlong usage line in prepare_phl_geodata.py (ruff E501)
1 parent 91c9e06 commit 77a1aca

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

scripts/prepare_phl_geodata.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@
2424
uv run --with geopandas --with requests --with pandas --with openpyxl scripts/prepare_phl_geodata.py
2525
2626
# Custom simplification tolerance (default: 0.005 degrees, ~500m)
27-
uv run --with geopandas --with requests --with pandas --with openpyxl scripts/prepare_phl_geodata.py --simplify-tolerance 0.003
27+
uv run --with geopandas --with requests --with pandas --with openpyxl \\
28+
scripts/prepare_phl_geodata.py --simplify-tolerance 0.003
2829
2930
# Force re-download (ignore cache)
3031
uv run --with geopandas --with requests --with pandas --with openpyxl scripts/prepare_phl_geodata.py --no-cache
@@ -126,7 +127,9 @@ def download_with_cache(url, filename, cache_dir, no_cache=False):
126127
downloaded += len(chunk)
127128
if total:
128129
pct = downloaded * 100 // total
129-
print(f"\r Progress: {pct}% ({downloaded // (1024 * 1024)}MB / {total // (1024 * 1024)}MB)", end="")
130+
print(
131+
f"\r Progress: {pct}% ({downloaded // (1024 * 1024)}MB / {total // (1024 * 1024)}MB)", end=""
132+
)
130133
print()
131134
_logger.info("Saved to %s", cached_path)
132135
return cached_path

0 commit comments

Comments
 (0)