Skip to content

Commit 1bb7b93

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 0218d6c commit 1bb7b93

File tree

13 files changed

+24
-26
lines changed

13 files changed

+24
-26
lines changed

AUTHORS.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ The following people have made contributions to this project:
1313
- [Alexis Berne](https://people.epfl.ch/alexis.berne?lang=en) - EPFL
1414
- [Gionata Ghiggi (ghiggi)](https://github.com/ghiggi) - EPFL
1515
- [Jacopo Grazioli (jacgraz)](https://github.com/jacgraz) - EPFL
16-
- [Saverio Guzzo (saveriogzz)](https://github.com/saveriogzz) - TU DELFT
16+
- [Saverio Guzzo (saveriogzz)](https://github.com/saveriogzz) - TU DELFT
1717
- [Kim Candolfi (KimCandolfi)](https://github.com/KimCandolfi) - EPFL
1818
- [Régis Longchamp (regislon)](https://github.com/regislon) - EPFL
1919
- [Son Pham-Ba (sphamba)](https://github.com/sphamba) - EPFL
20-
- [Charlotte Gisèle Weil (charlottegiseleweil)](https://github.com/charlottegiseleweil) - EPFL
20+
- [Charlotte Gisèle Weil (charlottegiseleweil)](https://github.com/charlottegiseleweil) - EPFL

CODE_OF_CONDUCT.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ representative at an online or offline event.
5858

5959
Instances of abusive, harassing, or otherwise unacceptable behavior may be
6060
reported to the community leaders responsible for enforcement at
61-
\[INSERT CONTACT METHOD\].
61+
[INSERT CONTACT METHOD].
6262
All complaints will be reviewed and investigated promptly and fairly.
6363

6464
All community leaders are obligated to respect the privacy and security of the

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ we highly recommend to join the [**DISDRODB Slack Workspace**](https://join.slac
124124
Feel free to also open a [GitHub Issue](https://github.com/ltelab/disdrodb/issues) or a
125125
[GitHub Discussion](https://github.com/ltelab/disdrodb/discussions) specific to your questions or ideas.
126126

127-
## ✍️ Contributors
127+
## ✍️ Contributors
128128

129129
- [Gionata Ghiggi](https://people.epfl.ch/gionata.ghiggi)
130130
- [Kim Candolfi](https://github.com/KimCandolfi)
@@ -137,7 +137,7 @@ Feel free to also open a [GitHub Issue](https://github.com/ltelab/disdrodb/issue
137137

138138
You can cite the DISDRODB software by:
139139

140-
> Gionata Ghiggi, Kim Candolfi, Régis Longchamp, Charlotte Weil, Alexis Berne (2023). ltelab/disdrodb Zenodo. https://doi.org/10.5281/zenodo.7680581
140+
> Gionata Ghiggi, Kim Candolfi, Régis Longchamp, Charlotte Weil, Alexis Berne (2023). ltelab/disdrodb Zenodo. https://doi.org/10.5281/zenodo.7680581
141141
142142
If you want to cite a specific version, have a look at the [Zenodo site](https://doi.org/10.5281/zenodo.7680581)
143143

SECURITY.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ backported more regularly.
1010
| Version | Supported |
1111
| -------------- | ------------------ |
1212
| 0.x.x (latest) | :white_check_mark: |
13-
| \< 0.0.17 | :x: |
13+
| < 0.0.17 | :x: |
1414

1515
## Unsafe YAML Loading
1616

disdrodb/__init__.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,19 +19,19 @@
1919
)
2020

2121
__all__ = [
22-
"define_configs",
23-
"available_stations",
2422
"available_campaigns",
2523
"available_data_sources",
2624
"available_sensor_names",
25+
"available_stations",
2726
"check_archive_metadata_compliance",
2827
"check_archive_metadata_geolocation",
28+
"define_configs",
29+
"download_archive",
30+
"download_station",
2931
"open_documentation",
30-
"open_sensor_documentation",
3132
"open_documentation",
33+
"open_sensor_documentation",
3234
"read_station_metadata",
33-
"download_archive",
34-
"download_station",
3535
]
3636

3737
__root_path__ = os.path.dirname(os.path.dirname(os.path.realpath(__file__)))

disdrodb/metadata/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
from disdrodb.metadata.reader import read_station_metadata
33
from disdrodb.metadata.search import get_list_metadata
44

5-
__all__ = ["read_station_metadata", "get_list_metadata", "get_archive_metadata_key_value"]
5+
__all__ = ["get_archive_metadata_key_value", "get_list_metadata", "read_station_metadata"]

disdrodb/tests/conftest.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,8 +151,8 @@ def create_fake_raw_data_file(
151151
return str(filepath)
152152

153153

154-
@pytest.fixture()
155-
def create_test_config_files(request): # noqa PT004
154+
@pytest.fixture
155+
def create_test_config_files(request):
156156
"""Create the specified config files into a temporary "test" directory.
157157
158158
This fixture facilitates the creation of configuration files from provided dictionaries.

disdrodb/tests/test_api/test_api_info.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,15 +68,15 @@
6868
# valid_filepath = VALID_FNAME
6969

7070

71-
@pytest.fixture()
71+
@pytest.fixture
7272
def valid_filepath(tmp_path):
7373
# Create a valid filepath for testing
7474
filepath = tmp_path / VALID_FNAME
7575
filepath.write_text("content does not matter")
7676
return str(filepath)
7777

7878

79-
@pytest.fixture()
79+
@pytest.fixture
8080
def invalid_filepath(tmp_path):
8181
# Create an invalid filepath for testing
8282
filepath = tmp_path / INVALID_FNAME

disdrodb/tests/test_l0/test_l0b_processing.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -474,7 +474,7 @@ def test__convert_object_variables_to_string():
474474
assert ds["b"].dtype == "float"
475475

476476

477-
@pytest.fixture()
477+
@pytest.fixture
478478
def encoding_dict_1():
479479
# create a test encoding dictionary
480480
return {
@@ -484,7 +484,7 @@ def encoding_dict_1():
484484
}
485485

486486

487-
@pytest.fixture()
487+
@pytest.fixture
488488
def encoding_dict_2():
489489
# create a test encoding dictionary
490490
return {
@@ -494,7 +494,7 @@ def encoding_dict_2():
494494
}
495495

496496

497-
@pytest.fixture()
497+
@pytest.fixture
498498
def ds():
499499
# create a test xr.Dataset
500500
data = {

disdrodb/tests/test_metadata/test_metadata_checks.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,7 @@ def test_check_archive_metadata_geolocation(tmp_path, latlon_value, platform_typ
321321
metadata_dict=metadata_dict,
322322
)
323323
is_valid = check_archive_metadata_geolocation(base_dir)
324-
if platform_type == "mobile" and latlon_value == -9999 or platform_type != "mobile" and latlon_value == 0:
324+
if (platform_type == "mobile" and latlon_value == -9999) or (platform_type != "mobile" and latlon_value == 0):
325325
assert is_valid
326326
else:
327327
assert not is_valid

0 commit comments

Comments
 (0)