Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions .github/workflows/test_and_lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ jobs:
python-version: [ '3.10', '3.11', '3.12', '3.13' ]
steps:
- uses: actions/checkout@v4
- uses: FedericoCarboni/setup-ffmpeg@v3
id: setup-ffmpeg
with:
ffmpeg-version: release
- name: Install FFmpeg via apt
run: |
sudo apt-get update
sudo apt-get install -y ffmpeg
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
Expand All @@ -27,4 +27,4 @@ jobs:
- name: Run linter checks
run: flake8 . && interrogate --verbose .
- name: Run tests and coverage
run: coverage run -m unittest discover && coverage report -m
run: coverage run -m unittest discover && coverage report -m
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ exclude_lines = [
"import",
"pragma: no cover",
]
fail_under = 93
fail_under = 92

[tool.isort]
line_length = 79
Expand Down
4 changes: 4 additions & 0 deletions src/aind_behavior_video_transformation/filesystem.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
"""Module for handling file discovery to transform videos."""

import logging
import re
from os import symlink, walk
from os.path import relpath
Expand Down Expand Up @@ -138,6 +139,9 @@ def transform_directory(

else:
out_path = dst_dir / file_name
if out_path.exists():
logging.warning(f"Output path {out_path} already exists!")
continue
Comment thread
jtyoung84 marked this conversation as resolved.
symlink(file_path, out_path)

return convert_video_args