Skip to content

Commit

Permalink
Release 1.7.3, Merge pull request #90 from sentinel-hub/develop
Browse files Browse the repository at this point in the history
Release 1.7.3
  • Loading branch information
zigaLuksic authored Sep 27, 2024
2 parents 29ad017 + 50da4a2 commit 711d861
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 20 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/ci_action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -103,10 +103,10 @@ jobs:
run: |
pytest -m "not sh_integration"
- name: Upload code coverage
if: ${{ matrix.full_test_suite && github.event_name == 'push' }}
uses: codecov/codecov-action@v2
with:
files: coverage.xml
fail_ci_if_error: true
verbose: false
# - name: Upload code coverage
# if: ${{ matrix.full_test_suite && github.event_name == 'push' }}
# uses: codecov/codecov-action@v2
# with:
# files: coverage.xml
# fail_ci_if_error: true
# verbose: false
8 changes: 4 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
rev: v4.6.0
hooks:
- id: end-of-file-fixer
- id: requirements-txt-fixer
Expand All @@ -13,18 +13,18 @@ repos:
- id: debug-statements

- repo: https://github.com/psf/black
rev: 23.12.1
rev: 24.8.0
hooks:
- id: black
language_version: python3

- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: "v0.1.11"
rev: "v0.6.8"
hooks:
- id: ruff

- repo: https://github.com/nbQA-dev/nbQA
rev: 1.7.1
rev: 1.8.7
hooks:
- id: nbqa-black
- id: nbqa-ruff
14 changes: 7 additions & 7 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ classifiers = [
]
dependencies = [
"lightgbm>=2.0.11",
"numpy>=1.13.3,<2",
"numpy>=1.13.3",
"opencv-python-headless",
"sentinelhub>=3.9.0",
"typing_extensions",
Expand Down Expand Up @@ -65,7 +65,7 @@ preview = true
[tool.ruff]
line-length = 120
target-version = "py38"
select = [
lint.select = [
"F", # pyflakes
"E", # pycodestyle
"W", # pycodestyle
Expand Down Expand Up @@ -97,27 +97,27 @@ select = [
"FA", # checks where future import of annotations would make types nicer
]
fix = true
fixable = [
lint.fixable = [
"I", # sort imports
"F401", # remove redundant imports
"UP007", # use new-style union type annotations
"UP006", # use new-style built-in type annotations
"UP037", # remove quotes around types when not necessary
"FA100", # import future annotations where necessary (not autofixable ATM)
]
ignore = [
lint.ignore = [
"SIM108", # tries to aggresively inline `if`, not always readable
"COM812", # trailing comma missing, fights with black
"PD011", # suggests `.to_numpy` instead of `.values`, also does this for non-pandas objects...
# potentially fixable
"PT011", # complains for `pytest.raises(ValueError)` but we use it a lot
"N803", # clashes with the default naming of model protocols
]
per-file-ignores = { "__init__.py" = ["F401"] }
exclude = [".git", "__pycache__", "build", "dist"]
lint.per-file-ignores = { "__init__.py" = ["F401"] }
exclude = [".git", "__pycache__", "build", "dist", "*.ipynb"]


[tool.ruff.isort]
[tool.ruff.lint.isort]
section-order = [
"future",
"standard-library",
Expand Down
2 changes: 1 addition & 1 deletion s2cloudless/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@
from .pixel_classifier import PixelClassifier
from .utils import download_bands_and_valid_data_mask

__version__ = "1.7.2"
__version__ = "1.7.3"
2 changes: 1 addition & 1 deletion tests/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
),
],
)
@pytest.mark.sh_integration()
@pytest.mark.sh_integration
def test_download_bands_and_valid_data_mask(test_input: dict, expected_shape: tuple[int, int, int]) -> None:
bands, mask = download_bands_and_valid_data_mask(**test_input)
assert bands.shape == expected_shape
Expand Down

0 comments on commit 711d861

Please sign in to comment.