Skip to content

Commit

Permalink
Update tox config
Browse files Browse the repository at this point in the history
  • Loading branch information
mbsantiago committed Jul 15, 2023
1 parent 9567c51 commit 3663329
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/soundevent/io/annotation_projects.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
3 changes: 2 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
@@ -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}

Expand Down

0 comments on commit 3663329

Please sign in to comment.