Skip to content
Open
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
98 changes: 97 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,100 @@
# Environment and config files
.env_variables.json
.DS_Store
.env_shell.json
.env
.env

# Testing related
.pytest_cache/
.coverage
htmlcov/
coverage.xml
*.cover
*.py,cover
.hypothesis/
.tox/
.nox/
.coverage.*
.cache
nosetests.xml
coverage.xml
*.cover
.hypothesis/

# Claude settings
.claude/*

# Virtual environments
venv/
ENV/
env/
.venv/
*.virtualenv

# Python build artifacts
__pycache__/
*.py[cod]
*$py.class
*.so
.Python
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
wheels/
pip-wheel-metadata/
share/python-wheels/
*.egg-info/
.installed.cfg
*.egg
MANIFEST

# IDE files
.vscode/
.idea/
*.swp
*.swo
*~
.project
.pydevproject
.settings/

# Logs
*.log
logs/

# Database
*.db
*.sqlite
*.sqlite3

# Media files (local development)
uploads/
media/
static/collected/

# OS files
Thumbs.db
ehthumbs.db
Desktop.ini
$RECYCLE.BIN/
*.lnk

# Backup files
*.bak
*.backup
*~
.*.swp

# Temporary files
tmp/
temp/
*.tmp
*.temp
3,038 changes: 3,038 additions & 0 deletions poetry.lock

Large diffs are not rendered by default.

118 changes: 118 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,118 @@
[tool.poetry]
name = "media-toolkit-api"
version = "0.1.0"
description = "Media processing toolkit API with audio/video processing, transcription, and cloud integration"
authors = ["Media Toolkit Team"]
readme = "README.md"
package-mode = false

[tool.poetry.dependencies]
python = "^3.9"
Flask = "*"
Werkzeug = "*"
requests = "*"
ffmpeg-python = "*"
openai-whisper = "*"
gunicorn = "*"
APScheduler = "*"
srt = "*"
numpy = "*"
torch = "*"
google-auth = "*"
google-auth-oauthlib = "*"
google-auth-httplib2 = "*"
google-api-python-client = "*"
google-cloud-storage = "*"
psutil = "*"
boto3 = "*"
Pillow = "*"
matplotlib = "*"
yt-dlp = "*"

[tool.poetry.group.dev.dependencies]
pytest = "^7.4.0"
pytest-cov = "^4.1.0"
pytest-mock = "^3.11.0"

[tool.pytest.ini_options]
minversion = "7.0"
testpaths = ["tests"]
python_files = ["test_*.py", "*_test.py"]
python_classes = ["Test*"]
python_functions = ["test_*"]
addopts = [
"--strict-markers",
"--strict-config",
"--verbose",
"--tb=short",
"--cov=.",
"--cov-branch",
"--cov-report=term-missing:skip-covered",
"--cov-report=html:htmlcov",
"--cov-report=xml:coverage.xml",
"--cov-fail-under=80",
]
markers = [
"unit: Unit tests",
"integration: Integration tests",
"slow: Tests that take a long time to run",
]
filterwarnings = [
"error",
"ignore::UserWarning",
"ignore::DeprecationWarning",
]

[tool.coverage.run]
source = ["."]
omit = [
"*/tests/*",
"*/test_*",
"*/__pycache__/*",
"*/venv/*",
"*/env/*",
"*/.venv/*",
"*/site-packages/*",
"setup.py",
"*/migrations/*",
"*/config.py",
"*/settings.py",
"*/manage.py",
"*/wsgi.py",
"*/asgi.py",
"*/docs/*",
"*/static/*",
"*/media/*",
"*/htmlcov/*",
"*/.pytest_cache/*",
"*/node_modules/*",
]

[tool.coverage.report]
precision = 2
show_missing = true
skip_covered = true
exclude_lines = [
"pragma: no cover",
"def __repr__",
"if self.debug",
"if settings.DEBUG",
"raise AssertionError",
"raise NotImplementedError",
"if 0:",
"if __name__ == .__main__.:",
"if TYPE_CHECKING:",
"class .*\\bProtocol\\):",
"@(abc\\.)?abstractmethod",
]

[tool.coverage.html]
directory = "htmlcov"

[tool.coverage.xml]
output = "coverage.xml"


[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
Empty file added tests/__init__.py
Empty file.
Loading