Brain-Tumor-AI / backend /pyproject.toml
StillWorking's picture
Upload folder using huggingface_hub (part 13)
1f2e262 verified
Raw History Blame Contribute Delete
2.38 kB
# Brain Tumor MRI Classifier - Project Configuration
[project]
name = "brain-tumor-classifier"
version = "1.0.0"
description = "Deep learning system for brain MRI tumor classification"
readme = "README.md"
requires-python = ">=3.11"
license = {text = "MIT"}
authors = [
{name = "Your Name", email = "your.email@example.com"}
]
keywords = ["deep-learning", "medical-imaging", "pytorch", "brain-tumor", "mri"]
dependencies = [
"torch>=2.0.0",
"torchvision>=0.15.0",
"timm>=0.9.0",
"albumentations>=1.3.0",
"opencv-python-headless>=4.8.0",
"Pillow>=10.0.0",
"numpy>=1.24.0",
"pandas>=2.0.0",
"scikit-learn>=1.3.0",
"torchmetrics>=1.0.0",
"tqdm>=4.65.0",
"pyyaml>=6.0",
"matplotlib>=3.7.0",
"seaborn>=0.12.0",
"grad-cam>=1.4.8",
"tensorboard>=2.13.0",
"onnx>=1.14.0",
"onnxruntime-gpu>=1.15.0",
"fastapi>=0.100.0",
"uvicorn[standard]>=0.23.0",
"pydantic>=2.0.0",
"python-multipart>=0.0.6",
]
[project.optional-dependencies]
dev = [
"pytest>=7.4.0",
"ruff>=0.0.280",
"black>=23.7.0",
"mypy>=1.4.0",
]
experiment = [
"mlflow>=2.5.0",
"optuna>=3.3.0",
]
data = [
"dvc>=3.0.0",
"kaggle>=1.5.0",
]
[project.scripts]
train = "src.train:main"
evaluate = "src.evaluate:main"
export-onnx = "src.export_onnx:main"
[tool.black]
line-length = 100
target-version = ['py311']
include = '\.pyi?$'
extend-exclude = '''
/(
# directories
\.eggs
| \.git
| \.venv
| build
| dist
)/
'''
[tool.ruff]
line-length = 100
target-version = "py311"
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"UP", # pyupgrade
]
ignore = [
"E501", # line too long (handled by black)
"B008", # do not perform function calls in argument defaults
"C901", # too complex
]
[tool.ruff.per-file-ignores]
"__init__.py" = ["F401"]
[tool.pytest.ini_options]
testpaths = ["tests"]
python_files = ["test_*.py"]
python_classes = ["Test*"]
python_functions = ["test_*"]
addopts = "-v --tb=short"
[tool.mypy]
python_version = "3.11"
warn_return_any = true
warn_unused_configs = true
ignore_missing_imports = true
[build-system]
requires = ["setuptools>=45", "wheel", "setuptools_scm[toml]>=6.2"]
build-backend = "setuptools.build_meta"