Skip to content

Commit

Permalink
[pre-commit.ci] pre-commit autoupdate (#539)
Browse files Browse the repository at this point in the history
* [pre-commit.ci] pre-commit autoupdate

updates:
- [github.com/psf/black: 24.10.0 → 25.1.0](psf/black@24.10.0...25.1.0)
- [github.com/astral-sh/ruff-pre-commit: v0.9.3 → v0.9.4](astral-sh/ruff-pre-commit@v0.9.3...v0.9.4)

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
pre-commit-ci[bot] authored Feb 3, 2025
1 parent 0752570 commit 57f3e3f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 11 deletions.
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,13 @@ repos:
- id: trailing-whitespace

- repo: https://github.com/psf/black
rev: "24.10.0"
rev: "25.1.0"
hooks:
- id: black
args: [--preview]

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.9.3
rev: v0.9.4
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix, --show-fixes]
Expand Down
6 changes: 3 additions & 3 deletions src/dolphin/_log.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,9 +121,9 @@ def format(self, record: logging.LogRecord) -> str:

def _prepare_log_dict(self, record: logging.LogRecord):
always_fields = {
"timestamp": datetime.fromtimestamp(
record.created, tz=timezone.utc
).isoformat(),
"timestamp": (
datetime.fromtimestamp(record.created, tz=timezone.utc).isoformat()
),
"message": record.getMessage(),
}
if record.exc_info is not None:
Expand Down
8 changes: 2 additions & 6 deletions tests/test_workflows_ps.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,7 @@ def test_ps_workflow_run(opera_slc_files_official: list[Path], tmpdir):
cfg = config.PsWorkflow(
cslc_file_list=file_list,
input_options={"subdataset": "/data/VV"},
worker_settings={
"gpu_enabled": (os.environ.get("NUMBA_DISABLE_JIT") != "1")
},
worker_settings={"gpu_enabled": os.environ.get("NUMBA_DISABLE_JIT") != "1"},
)
ps.run(cfg)

Expand All @@ -42,9 +40,7 @@ def test_ps_workflow_multi_burst(opera_slc_files_official: list[Path], tmpdir):
cfg = config.PsWorkflow(
cslc_file_list=opera_slc_files_official,
input_options={"subdataset": "/data/VV"},
worker_settings={
"gpu_enabled": (os.environ.get("NUMBA_DISABLE_JIT") != "1")
},
worker_settings={"gpu_enabled": os.environ.get("NUMBA_DISABLE_JIT") != "1"},
log_file=Path() / "dolphin_ps.log",
)
with pytest.raises(NotImplementedError):
Expand Down

0 comments on commit 57f3e3f

Please sign in to comment.