Skip to content

Commit

Permalink
Merge branch 'dev' into minor-updates
Browse files Browse the repository at this point in the history
  • Loading branch information
rly authored Feb 18, 2025
2 parents 722a772 + 4d42540 commit 5c3f624
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,15 @@ repos:
# hooks:
# - id: black
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.9.2
rev: v0.9.6
hooks:
- id: ruff
# - repo: https://github.com/econchick/interrogate
# rev: 1.5.0
# hooks:
# - id: interrogate
- repo: https://github.com/codespell-project/codespell
rev: v2.3.0
rev: v2.4.1
hooks:
- id: codespell
additional_dependencies:
Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
### Changed
- Removed `requirements-min.txt` in favor of the `min-reqs` optional dependency group in `pyproject.toml`. @rly [#1246](https://github.com/hdmf-dev/hdmf/pull/1246)
- Updated GitHub actions and ruff configuration. @rly [#1246](https://github.com/hdmf-dev/hdmf/pull/1246)
- `hdmf.monitor` is unused and undocumented. It has been deprecated and will be removed in HDMF 5.0. @rly [#1245](https://github.com/hdmf-dev/hdmf/pull/1245)

## HDMF 4.0.0 (January 22, 2025)

Expand Down
8 changes: 8 additions & 0 deletions src/hdmf/monitor.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,16 @@
from abc import ABCMeta, abstractmethod
import warnings

from .data_utils import AbstractDataChunkIterator, DataChunkIterator, DataChunk
from .utils import docval, getargs

warnings.warn(
"The hdmf.monitor module is deprecated and will be removed in HDMF 5.0. If you are using this module, "
"please copy this module to your codebase or raise an issue in the HDMF repository: "
"https://github.com/hdmf-dev/hdmf/issues",
DeprecationWarning,
)


class NotYetExhausted(Exception):
pass
Expand Down
6 changes: 6 additions & 0 deletions tests/unit/test_monitor.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import pytest


def test_deprecation_warning():
with pytest.warns(DeprecationWarning):
import hdmf.monitor # noqa: F401

0 comments on commit 5c3f624

Please sign in to comment.