-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
127 lines (112 loc) · 2.77 KB
/
pyproject.toml
File metadata and controls
127 lines (112 loc) · 2.77 KB
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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
[build-system]
requires = ["setuptools>=61.0", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "GeoMatchAI"
version = "1.0.0"
description = "High-Performance Visual Place Verification System"
requires-python = "==3.13.*"
dependencies = [
"pillow>=11.3.0",
"torch>=2.9.1",
"torchvision>=0.24.1",
"timm>=1.0.22",
"requests>=2.32.5",
"mapillary>=1.0.15",
"aiohttp>=3.13.2",
"torchinfo>=1.8.0",
]
[dependency-groups]
dev = [
"pytest>=9.0.1",
"pytest-asyncio>=0.24.0",
"pytest-cov>=6.0.0",
"pytest-mock>=3.14.0",
"pytest-xdist>=3.6.1",
"pytest-timeout>=2.3.1",
"pytest-benchmark>=5.1.0",
"hypothesis>=6.122.3",
"faker>=33.3.0",
]
[tool.setuptools.packages.find]
where = ["src"]
include = ["geomatchai*"]
[tool.uv.sources] # TODO: make automatic selection based on available hardware
torch = [
{ index = "pytorch-cu128" },
]
torchvision = [
{ index = "pytorch-cu128" },
]
timm = [
{ index = "pypi" },
]
[[tool.uv.index]]
name = "pypi"
url = "https://pypi.org/simple"
[[tool.uv.index]]
name = "pytorch-cpu"
url = "https://download.pytorch.org/whl/cpu"
explicit = true
[[tool.uv.index]]
name = "pytorch-cu128"
url = "https://download.pytorch.org/whl/cu128"
default = true
[tool.isort]
profile = "black"
skip_gitignore = true
known_first_party = ["geomatchai", "tests"]
[tool.ruff]
target-version = "py313"
line-length = 100
indent-width = 4
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"C", # flake8-comprehensions
"B", # flake8-bugbear
]
ignore = [
"E501", # line too long
"B008", # do not perform function calls in argument defaults
"C901", # complexity
"E402", # module level import not at top (needed for __init__.py to set metadata first)
]
[tool.ruff.lint.per-file-ignores]
"examples/*" = ["ANN", "F841", "E712"] # Don't require annotations, allow unused vars, allow == True/False in tests
"__init__.py" = ["F401"] # Allow unused imports in __init__.py
"example_usage.py" = ["N806"] # Allow uppercase variables in example
[tool.pytest.ini_options]
testpaths = ["tests"]
python_files = ["test_*.py"]
python_classes = ["Test*"]
python_functions = ["test_*"]
asyncio_mode = "auto"
addopts = [
"--verbose",
"--cov=geomatchai",
"--cov-report=term-missing",
"--cov-report=html",
]
[tool.mypy]
python_version = "3.13"
warn_return_any = true
warn_unused_configs = true
disallow_untyped_defs = false
disallow_incomplete_defs = false
check_untyped_defs = true
no_implicit_optional = true
warn_redundant_casts = true
warn_unused_ignores = true
warn_no_return = true
strict_optional = true
[[tool.mypy.overrides]]
module = [
"timm.*",
"mapillary.*",
"torchvision.*",
]
ignore_missing_imports = true