Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pre-commit.ci] pre-commit autoupdate #129

Merged
merged 2 commits into from
Feb 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@ repos:
- id: check-merge-conflict

- repo: 'https://github.com/PyCQA/flake8'
rev: 6.1.0
rev: 7.0.0
hooks:
- id: flake8

- repo: 'https://github.com/psf/black'
rev: 23.12.1
rev: 24.1.1
hooks:
- id: black

Expand Down
1 change: 1 addition & 0 deletions CI/SCRIPTS/test_bands.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
""" Script testing EOReader bands """

from CI.scripts_utils import READER, opt_path, s3_env
from eoreader.bands import BLUE, YELLOW

Expand Down
1 change: 1 addition & 0 deletions CI/SCRIPTS/test_custom.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
""" Testing custom stacks. """

import logging
import os

Expand Down
1 change: 1 addition & 0 deletions CI/SCRIPTS/test_end_to_end.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
""" Script testing EOReader satellites in an end-to-end manner. """

import logging
import os
import shutil
Expand Down
1 change: 1 addition & 0 deletions CI/SCRIPTS/test_index.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
""" Script testing EOReader index """

import logging
import os
import tempfile
Expand Down
1 change: 1 addition & 0 deletions CI/SCRIPTS/test_others.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
""" Other tests. """

import os
import sys
import tempfile
Expand Down
1 change: 1 addition & 0 deletions CI/SCRIPTS/test_satellites.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
""" Script testing EOReader satellites in a push routine """

import logging
import os
import sys
Expand Down
1 change: 1 addition & 0 deletions CI/SCRIPTS/test_stac_items.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
""" Script testing EOReader ingestion of STAC Items """

import logging
import os
import tempfile
Expand Down
1 change: 1 addition & 0 deletions CI/SCRIPTS_WEEKLY/test_all_sat_end_to_end_on_disk.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
""" Script testing EOReader satellites in a push routine """

import logging
import os
import tempfile
Expand Down
1 change: 1 addition & 0 deletions CI/SCRIPTS_WEEKLY/test_broken_s2.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
""" Testing broken S2 products weekly. """

import logging

import pytest
Expand Down
1 change: 1 addition & 0 deletions CI/SCRIPTS_WEEKLY/test_custom.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
""" Testing custom stacks weekly """

import logging

import numpy as np
Expand Down
1 change: 1 addition & 0 deletions CI/SCRIPTS_WEEKLY/test_index.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
""" Script testing EOReader index weekly."""

import logging
import os
import tempfile
Expand Down
1 change: 1 addition & 0 deletions CI/SCRIPTS_WEEKLY/test_satellites.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
""" Script testing EOReader satellites weekly """

import logging
import os
import sys
Expand Down
1 change: 1 addition & 0 deletions CI/SCRIPTS_WEEKLY/test_stac_creation.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
""" Script testing the creaction of STAC Items from EOReader Products. """

import logging
import os
import sys
Expand Down
1 change: 1 addition & 0 deletions CI/SCRIPTS_WEEKLY/test_stac_items.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
""" Script testing EOReader ingestion of STAC Items """

import logging
import os
import tempfile
Expand Down
1 change: 1 addition & 0 deletions CI/scripts_utils.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
""" Utils module for scripts """

import logging
import os
from functools import wraps
Expand Down
2 changes: 1 addition & 1 deletion eoreader/products/optical/landsat_product.py
Original file line number Diff line number Diff line change
Expand Up @@ -1874,7 +1874,7 @@ def __init__(
if not self._is_mpc():
self.default_clients = [
self.get_e84_client(),
self.get_usgs_client()
self.get_usgs_client(),
# Not yet handled
# HttpClient(ClientSession(base_url="https://landsatlook.usgs.gov", auth=BasicAuth(login="", password="")))
]
Expand Down
2 changes: 1 addition & 1 deletion eoreader/products/optical/s2_product.py
Original file line number Diff line number Diff line change
Expand Up @@ -1730,7 +1730,7 @@ def __init__(
if not self._is_mpc():
self.default_clients = [
self.get_e84_client(),
self.get_sinergise_client()
self.get_sinergise_client(),
# Not yet handled
# HttpClient(ClientSession(base_url="https://landsatlook.usgs.gov", auth=BasicAuth(login="", password="")))
]
Expand Down
8 changes: 5 additions & 3 deletions eoreader/stac/stac_extensions.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,9 +172,11 @@ def add_to_item(self, item) -> None:
Band.create(
name=band.name,
common_name=common_name,
description="No description available"
if len(band.description) < 1
else band.description,
description=(
"No description available"
if len(band.description) < 1
else band.description
),
center_wavelength=center_wavelength,
full_width_half_max=full_width_half_max,
solar_illumination=solar_illumination,
Expand Down