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 Dec 10, 2024
1 parent 589c80d commit 5f7dadc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions movement/validators/files.py
Original file line number Diff line number Diff line change
Expand Up @@ -244,9 +244,7 @@ class ValidAniposeCSV:

@path.validator
def _file_contains_expected_columns(self, attribute, value):
"""Ensure that the .csv file contains the expected columns.
"""
"""Ensure that the .csv file contains the expected columns."""
expected_column_suffixes = [
"_x",
"_y",
Expand Down Expand Up @@ -284,7 +282,9 @@ def _file_contains_expected_columns(self, attribute, value):
)

# For other headers, check they have expected suffixes and base names
other_columns = [col for col in columns if col not in expected_non_keypoint_columns]
other_columns = [
col for col in columns if col not in expected_non_keypoint_columns
]
for column in other_columns:
# Check suffix
if not any(
Expand Down
2 changes: 1 addition & 1 deletion tests/test_unit/test_validators/test_files_validators.py
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ def test_anipose_csv_validator_with_invalid_input(
Errors to check:
- error if .csv is missing some columns
- error if .csv misses some of the expected columns for a keypoint
- error if .csv has columns that are not expected
- error if .csv has columns that are not expected
(either common ones or keypoint-specific ones)
"""
file_path = request.getfixturevalue(invalid_input)
Expand Down

0 comments on commit 5f7dadc

Please sign in to comment.