File size: 1,520 Bytes
5c067a5
 
 
 
 
 
 
 
 
 
 
17206b7
5c067a5
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
[project]
name = "colipri"
version = "0.1.0"
description = "Vision-language encoder for chest CT scans and reports."
readme = "README.md"
authors = [
    { name = "Microsoft Health Futures", email = "innereyedev@microsoft.com" },
]
requires-python = ">=3.10"
dependencies = [
    "accelerate",
    "dynamic-network-architectures>=0.4.3",
    "huggingface-hub",
    "hydra-core",
    "jaxtyping",
    "safetensors",
    "timm<1.0.23",  # RuntimeError related to position embeddings in 1.0.23
    "torchio>=0.21.1",
    "tqdm",
    "transformers",
    "typer",
]

[project.urls]
Homepage = "https://huggingface.co/microsoft/colipri"
Source = "https://huggingface.co/microsoft/colipri"
"Issue tracker" = "https://huggingface.co/microsoft/colipri/discussions/new"
Documentation = "https://huggingface.co/microsoft/colipri/blob/main/README.md"

[project.optional-dependencies]
demo = [
    "lovely-tensors",
    "matplotlib",
    "scikit-learn",
    "torchinfo",
]

[dependency-groups]
dev = [
    "ipykernel",
    "ipywidgets",
]
types = ["ty"]

[build-system]
requires = ["uv_build"]
build-backend = "uv_build"

[tool.ruff.lint]
# Defaults from https://docs.astral.sh/ruff/linter/#rule-selection
select = [
    # pycodestyle
    "E",
    # Pyflakes
    "F",
    # pyupgrade
    "UP",
    # flake8-bugbear
    "B",
    # flake8-simplify
    "SIM",
    # isort
    "I",
]
ignore = [
    "F722", # https://docs.kidger.site/jaxtyping/faq/#flake8-or-ruff-are-throwing-an-error
]

[tool.ruff.lint.isort]
force-single-line = true