Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Sep 23, 2024
1 parent f21626e commit 1b70758
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 12 deletions.
2 changes: 1 addition & 1 deletion disdrodb/tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ def create_fake_raw_data_file(
return str(filepath)


@pytest.fixture()
@pytest.fixture
def create_test_config_files(request): # noqa PT004
"""Create the specified config files into a temporary "test" directory.
Expand Down
4 changes: 2 additions & 2 deletions disdrodb/tests/test_api/test_api_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,15 +68,15 @@
# valid_filepath = VALID_FNAME


@pytest.fixture()
@pytest.fixture
def valid_filepath(tmp_path):
# Create a valid filepath for testing
filepath = tmp_path / VALID_FNAME
filepath.write_text("content does not matter")
return str(filepath)


@pytest.fixture()
@pytest.fixture
def invalid_filepath(tmp_path):
# Create an invalid filepath for testing
filepath = tmp_path / INVALID_FNAME
Expand Down
6 changes: 3 additions & 3 deletions disdrodb/tests/test_l0/test_l0b_processing.py
Original file line number Diff line number Diff line change
Expand Up @@ -474,7 +474,7 @@ def test__convert_object_variables_to_string():
assert ds["b"].dtype == "float"


@pytest.fixture()
@pytest.fixture
def encoding_dict_1():
# create a test encoding dictionary
return {
Expand All @@ -484,7 +484,7 @@ def encoding_dict_1():
}


@pytest.fixture()
@pytest.fixture
def encoding_dict_2():
# create a test encoding dictionary
return {
Expand All @@ -494,7 +494,7 @@ def encoding_dict_2():
}


@pytest.fixture()
@pytest.fixture
def ds():
# create a test xr.Dataset
data = {
Expand Down
4 changes: 2 additions & 2 deletions disdrodb/tests/test_utils/test_utils_logger.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ def test_define_summary_log_when_no_problems(tmp_path):
assert not os.path.exists(problem_log_path)


@pytest.fixture()
@pytest.fixture
def test_logger():
logger = logging.getLogger("test_logger")
logger.setLevel(logging.DEBUG) # Capture all log levels
Expand Down Expand Up @@ -155,7 +155,7 @@ def test_log_error(caplog, test_logger, capfd):
assert " - Error message" in out


@pytest.fixture()
@pytest.fixture
def log_environment(tmp_path):
processed_dir = tmp_path / "processed"
os.makedirs(processed_dir, exist_ok=True)
Expand Down
2 changes: 0 additions & 2 deletions docs/source/tutorials/.gitkeep
Original file line number Diff line number Diff line change
@@ -1,2 +0,0 @@


4 changes: 2 additions & 2 deletions tutorials/reader_preparation.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -819,7 +819,7 @@
"df_raw = read_raw_file(filepath, column_names=None, reader_kwargs=reader_kwargs)\n",
"# Print the dataframe\n",
"print(f\"Dataframe for the file {os.path.basename(filepath)} :\")\n",
"display(df_raw) # noqa F821"
"display(df_raw)"
]
},
{
Expand Down Expand Up @@ -2432,7 +2432,7 @@
" verbose=verbose,\n",
" df_sanitizer_fun=df_sanitizer_fun,\n",
")\n",
"display(df) # noqa F821"
"display(df)"
]
},
{
Expand Down

0 comments on commit 1b70758

Please sign in to comment.