Skip to content

Commit

Permalink
cleanup, use ruff
Browse files Browse the repository at this point in the history
  • Loading branch information
fgebhart committed Oct 27, 2024
1 parent 9ba0ae2 commit 14f45a0
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 164 deletions.
17 changes: 4 additions & 13 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
repos:

- repo: https://github.com/psf/black
rev: 23.1.0
hooks:
- id: black

- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
Expand All @@ -14,12 +9,8 @@ repos:
- id: end-of-file-fixer
types: [python]

- repo: https://github.com/pycqa/flake8
rev: 6.0.0
hooks:
- id: flake8

- repo: https://github.com/pycqa/isort
rev: 5.12.0
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.7.1
hooks:
- id: isort
- id: ruff
- id: ruff-format
2 changes: 0 additions & 2 deletions mapa/stac.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@


def _download_file(url: str, local_file: Path) -> Path:
log.info(f"downloading {url} to {local_file}")
request.urlretrieve(url, local_file)
return local_file

Expand Down Expand Up @@ -60,7 +59,6 @@ def fetch_stac_items_for_bbox(
)
search = client.search(collections=[conf.PLANETARY_COMPUTER_COLLECTION], bbox=bbox)
items = list(search.items())
log.info(f"got items: {items}")
n = len(items)
if progress_bar:
progress_bar.steps += n
Expand Down
149 changes: 0 additions & 149 deletions mapa/test.ipynb

This file was deleted.

0 comments on commit 14f45a0

Please sign in to comment.