Fixed linting issues found by flake8, pylint and black on video.py.
Removed get_script_path function as it was not being used.
Refactored logging to reduce duplication, improve performance.
Fixed some missing type hints, but didn't resolve all issues found by mypy...
Added isort to ensure imports are sorted in a consistent manner.
Added initial pyproject.toml to prepare for converting codebase to a CLI utility.
Black has also been configured to make it easier to maintain consistent code formatting. Just need to run black . at the repo root to use it's opinionated codestyle standards.
get_script_path
function as it was not being used.black .
at the repo root to use it's opinionated codestyle standards.refs: