Skip to content

Commit d428ff0

Browse files
mlubejMatic Lubej
and
Matic Lubej
authored
Precommit updates (#40)
* pre-commit autoupdate and fixes * precommit updates --------- Co-authored-by: Matic Lubej <[email protected]>
1 parent 14970d6 commit d428ff0

38 files changed

+46
-10
lines changed

.pre-commit-config.yaml

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
exclude: "GEM-ML"
22
repos:
33
- repo: https://github.com/pre-commit/pre-commit-hooks
4-
rev: v4.4.0
4+
rev: v4.6.0
55
hooks:
66
- id: end-of-file-fixer
77
- id: requirements-txt-fixer
@@ -14,19 +14,19 @@ repos:
1414
- id: debug-statements
1515

1616
- repo: https://github.com/psf/black
17-
rev: 23.1.0
17+
rev: 24.4.2
1818
hooks:
1919
- id: black
2020
language_version: python3
2121

2222
- repo: https://github.com/pycqa/isort
23-
rev: 5.12.0
23+
rev: 5.13.2
2424
hooks:
2525
- id: isort
2626
name: isort (python)
2727

2828
- repo: https://github.com/PyCQA/autoflake
29-
rev: v2.0.1
29+
rev: v2.3.1
3030
hooks:
3131
- id: autoflake
3232
args:
@@ -37,7 +37,7 @@ repos:
3737
]
3838

3939
- repo: https://github.com/pycqa/flake8
40-
rev: 6.0.0
40+
rev: 7.0.0
4141
hooks:
4242
- id: flake8
4343
additional_dependencies:
@@ -47,7 +47,7 @@ repos:
4747
- flake8-typing-imports==1.14.0
4848

4949
- repo: https://github.com/nbQA-dev/nbQA
50-
rev: 1.6.3
50+
rev: 1.8.5
5151
hooks:
5252
- id: nbqa-black
5353
additional_dependencies:

AgriDataValue/data_search.ipynb

+4-4
Original file line numberDiff line numberDiff line change
@@ -494,7 +494,7 @@
494494
"source": [
495495
"collections = catalog.get_collections()\n",
496496
"\n",
497-
"collections = [collection for collection in collections if collection[\"title\"].startswith((\"ADV - indicators\"))]\n",
497+
"collections = [collection for collection in collections if collection[\"title\"].startswith(\"ADV - indicators\")]\n",
498498
"collections"
499499
]
500500
},
@@ -701,7 +701,7 @@
701701
}
702702
],
703703
"source": [
704-
"from sentinelhub import MimeType, SentinelHubDownloadClient, SentinelHubRequest, bbox_to_dimensions, filter_times\n",
704+
"from sentinelhub import MimeType, SentinelHubDownloadClient, SentinelHubRequest, filter_times\n",
705705
"\n",
706706
"time_difference = dt.timedelta(hours=1)\n",
707707
"\n",
@@ -757,7 +757,7 @@
757757
" ],\n",
758758
" responses=[SentinelHubRequest.output_response(\"default\", MimeType.TIFF)],\n",
759759
" bbox=bbox,\n",
760-
" resolution=(10000, 10000), \n",
760+
" resolution=(10000, 10000),\n",
761761
" config=config,\n",
762762
" )\n",
763763
" process_requests.append(request)"
@@ -842,7 +842,7 @@
842842
}
843843
],
844844
"source": [
845-
"fig, ax = plt.subplots(figsize=(10 ,10))\n",
845+
"fig, ax = plt.subplots(figsize=(10, 10))\n",
846846
"plt.imshow(indicator, vmin=0, vmax=20, cmap=\"RdYlBu_r\")\n",
847847
"ax.set_title(\"Average Temperature (Historical 1995-2015)\")"
848848
]

GEM-data/meteoblue.py

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
77
This source code is licensed under the MIT license, see the LICENSE file in the root directory of this source tree.
88
"""
9+
910
from __future__ import annotations
1011

1112
import datetime as dt

extra-tasks/blob/blob.py

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
77
This source code is licensed under the MIT license, see the LICENSE file in the root directory of this source tree.
88
"""
9+
910
from __future__ import annotations
1011

1112
import itertools as it

extra-tasks/blob/test_blob.py

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
77
This source code is licensed under the MIT license, see the LICENSE file in the root directory of this source tree.
88
"""
9+
910
from __future__ import annotations
1011

1112
import os

extra-tasks/class_frequency/class_frequency.py

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
77
This source code is licensed under the MIT license, see the LICENSE file in the root directory of this source tree.
88
"""
9+
910
from __future__ import annotations
1011

1112
from typing import Iterator

extra-tasks/class_frequency/test_class_frequency.py

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
55
This source code is licensed under the MIT license, see the LICENSE file in the root directory of this source tree.
66
"""
7+
78
from __future__ import annotations
89

910
import numpy as np

extra-tasks/cloud_mask/cloud_mask.py

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
77
This source code is licensed under the MIT license, see the LICENSE file in the root directory of this source tree.
88
"""
9+
910
from __future__ import annotations
1011

1112
import logging

extra-tasks/cloud_mask/test_cloud_mask.py

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
55
This source code is licensed under the MIT license, see the LICENSE file in the root directory of this source tree.
66
"""
7+
78
from __future__ import annotations
89

910
import os

extra-tasks/doubly_logistic_approximation/doubly_logistic_approximation.py

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
77
This source code is licensed under the MIT license, see the LICENSE file in the root directory of this source tree.
88
"""
9+
910
from __future__ import annotations
1011

1112
import itertools as it

extra-tasks/doubly_logistic_approximation/test_doubly_logistic_approximation.py

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
55
This source code is licensed under the MIT license, see the LICENSE file in the root directory of this source tree.
66
"""
7+
78
from __future__ import annotations
89

910
import os

extra-tasks/euclidean_norm/euclidean_norm.py

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
77
This source code is licensed under the MIT license, see the LICENSE file in the root directory of this source tree.
88
"""
9+
910
from __future__ import annotations
1011

1112
import numpy as np

extra-tasks/euclidean_norm/test_bands_extraction.py

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
77
This source code is licensed under the MIT license, see the LICENSE file in the root directory of this source tree.
88
"""
9+
910
from __future__ import annotations
1011

1112
import numpy as np

extra-tasks/geodb/geodb.py

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
99
This source code is licensed under the MIT license, see the LICENSE file in the root directory of this source tree.
1010
"""
11+
1112
from __future__ import annotations
1213

1314
from typing import Any

extra-tasks/geopedia/test_geopedia.py

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
55
This source code is licensed under the MIT license, see the LICENSE file in the root directory of this source tree.
66
"""
7+
78
from __future__ import annotations
89

910
import pytest

extra-tasks/haralick/haralick.py

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
77
This source code is licensed under the MIT license, see the LICENSE file in the root directory of this source tree.
88
"""
9+
910
from __future__ import annotations
1011

1112
import itertools as it

extra-tasks/haralick/test_haralick.py

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
55
This source code is licensed under the MIT license, see the LICENSE file in the root directory of this source tree.
66
"""
7+
78
from __future__ import annotations
89

910
import copy

extra-tasks/hog/hog.py

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
77
This source code is licensed under the MIT license, see the LICENSE file in the root directory of this source tree.
88
"""
9+
910
from __future__ import annotations
1011

1112
import itertools as it

extra-tasks/hog/test_hog.py

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
55
This source code is licensed under the MIT license, see the LICENSE file in the root directory of this source tree.
66
"""
7+
78
from __future__ import annotations
89

910
import copy

extra-tasks/linear_function/linear_function.py

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
88
This source code is licensed under the MIT license, see the LICENSE file in the root directory of this source tree.
99
"""
10+
1011
from __future__ import annotations
1112

1213
import numpy as np

extra-tasks/local_binary_pattern/local_binary_pattern.py

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
77
This source code is licensed under the MIT license, see the LICENSE file in the root directory of this source tree.
88
"""
9+
910
from __future__ import annotations
1011

1112
import numpy as np

extra-tasks/local_binary_pattern/test_local_binary_pattern.py

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
55
This source code is licensed under the MIT license, see the LICENSE file in the root directory of this source tree.
66
"""
7+
78
from __future__ import annotations
89

910
import copy

extra-tasks/meteoblue/meteoblue.py

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
77
This source code is licensed under the MIT license, see the LICENSE file in the root directory of this source tree.
88
"""
9+
910
from __future__ import annotations
1011

1112
import datetime as dt

extra-tasks/meteoblue/test_meteoblue.py

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
77
This source code is licensed under the MIT license, see the LICENSE file in the root directory of this source tree.
88
"""
9+
910
from __future__ import annotations
1011

1112
import datetime as dt

extra-tasks/radiometric_normalization/radiometric_normalization.py

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
77
This source code is licensed under the MIT license, see the LICENSE file in the root directory of this source tree.
88
"""
9+
910
from __future__ import annotations
1011

1112
from abc import ABCMeta, abstractmethod

extra-tasks/radiometric_normalization/test_radiometric_normalization.py

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
55
This source code is licensed under the MIT license, see the LICENSE file in the root directory of this source tree.
66
"""
7+
78
from __future__ import annotations
89

910
import copy

extra-tasks/superpixel/superpixel.py

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
77
This source code is licensed under the MIT license, see the LICENSE file in the root directory of this source tree.
88
"""
9+
910
from __future__ import annotations
1011

1112
import logging

extra-tasks/superpixel/test_superpixel.py

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
55
This source code is licensed under the MIT license, see the LICENSE file in the root directory of this source tree.
66
"""
7+
78
from __future__ import annotations
89

910
import os

extra-tasks/tdigest/tdigest.py

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
88
This source code is licensed under the MIT license, see the LICENSE file in the root directory of this source tree.
99
"""
10+
1011
from __future__ import annotations
1112

1213
from functools import partial

extra-tasks/temporal_features/temporal_features.py

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
77
This source code is licensed under the MIT license, see the LICENSE file in the root directory of this source tree.
88
"""
9+
910
from __future__ import annotations
1011

1112
import itertools as it

extra-tasks/temporal_features/test_temporal_features.py

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
55
This source code is licensed under the MIT license, see the LICENSE file in the root directory of this source tree.
66
"""
7+
78
from __future__ import annotations
89

910
from datetime import date, timedelta

extra-tasks/theia_snow_mask/test_theia_snow_mask.py

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
55
This source code is licensed under the MIT license, see the LICENSE file in the root directory of this source tree.
66
"""
7+
78
from __future__ import annotations
89

910
import os

extra-tasks/theia_snow_mask/theia_snow_mask.py

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
77
This source code is licensed under the MIT license, see the LICENSE file in the root directory of this source tree.
88
"""
9+
910
from __future__ import annotations
1011

1112
import itertools

extra-tasks/train_test_split/test_train_test_split.py

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
55
This source code is licensed under the MIT license, see the LICENSE file in the root directory of this source tree.
66
"""
7+
78
from __future__ import annotations
89

910
from typing import Any

extra-tasks/train_test_split/train_test_split.py

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
77
This source code is licensed under the MIT license, see the LICENSE file in the root directory of this source tree.
88
"""
9+
910
from __future__ import annotations
1011

1112
from enum import Enum

extra-tasks/value_fillout/value_fillout.py

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
88
This source code is licensed under the MIT license, see the LICENSE file in the root directory of this source tree.
99
"""
10+
1011
from __future__ import annotations
1112

1213
from typing import Literal, cast

poverty-detection-keras/pred_cong_pd.py

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
55
List some configuration parameters for prediction
66
"""
7+
78
import os
89
from os import path as op
910

poverty-detection-keras/utils.py

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
66
Utility functions for printing training details
77
"""
8+
89
import pprint
910

1011
import train_config_pd as tcf

0 commit comments

Comments
 (0)