diff --git a/src/soundevent/io/annotation_projects.py b/src/soundevent/io/annotation_projects.py index 7391065..48fc180 100644 --- a/src/soundevent/io/annotation_projects.py +++ b/src/soundevent/io/annotation_projects.py @@ -122,7 +122,7 @@ def load_annotation_project_in_aoef_format( """Load annotation project from path in AOEF format.""" path = Path(path) audio_dir = Path(audio_dir).resolve() - annotation_project_object = AnnotationProjectObject.validate_json( + annotation_project_object = AnnotationProjectObject.model_validate_json( path.read_text() ) return annotation_project_object.to_annotation_project(audio_dir=audio_dir) diff --git a/tox.ini b/tox.ini index 5008ba0..792de29 100644 --- a/tox.ini +++ b/tox.ini @@ -1,11 +1,12 @@ [tox] requires = tox>=4 -env_list = lint, type, py{37,38,39,310,311} +env_list = lint, type, py{38,39,310,311} [testenv] description = run the tests with pytest deps = pytest>=6 + hypothesis commands = pytest {tty:--color=yes} {posargs:tests}