-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
137 lines (122 loc) · 3.39 KB
/
Copy pathpyproject.toml
File metadata and controls
137 lines (122 loc) · 3.39 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
128
129
130
131
132
133
134
135
136
137
[project]
name = "geopy-mcp"
description = "MCP Server exposing GeoPy data via the Model Context Protocol."
readme = "README.md"
requires-python = ">=3.10"
license = "MIT"
authors = [{ name = "Shane" }]
classifiers = [
"Natural Language :: English",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Typing :: Typed",
]
dependencies = [
"geopy>=2.0.0",
"mcp[cli]>=1.27.0",
"pydantic>=2.0.0",
"uvicorn>=0.31.1",
]
dynamic = ["version"]
[project.urls]
Changelog = "https://github.com/cssnr/geopy-mcp/releases"
Discord = "https://discord.gg/wXy6m2X8wY"
Documentation = "https://github.com/cssnr/geopy-mcp"
Download = "https://github.com/cssnr/geopy-mcp/releases/latest"
Funding = "https://ko-fi.com/cssnr"
GitHub = "https://github.com/cssnr/geopy-mcp"
Issues = "https://github.com/cssnr/geopy-mcp/issues"
[project.scripts]
geopy-mcp = "geopy_mcp.server:main"
[dependency-groups]
dev = [
"bandit>=1.9.4",
"black>=26.5.1",
"hatch>=1.16.5",
"isort>=8.0.1",
"mypy>=2.1.0",
"ruff>=0.15.14",
"tombi>=0.11.7",
"toml-run>=0.0.2",
"ty>=0.0.39",
"validate-pyproject[all]>=0.25",
"watchfiles>=1.2.0",
"yamllint>=1.38.0",
]
# https://hatch.pypa.io/latest/config/build/#build-system
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
# Bandit
# https://bandit.readthedocs.io/en/latest/config.html
[tool.bandit]
exclude_dirs = [".venv", "tests"]
skips = ["B105", "B107"]
# Black
# https://black.readthedocs.io/en/stable/usage_and_configuration/
[tool.black]
line-length = 119
target-version = ["py313"]
extend-exclude = '(\.github)'
# Hatchling
# https://hatch.pypa.io/latest/config/build/
[tool.hatch.version]
path = "src/geopy_mcp/_version.py"
[tool.hatch.build.targets.sdist]
include = ["src"]
[tool.hatch.build.targets.wheel]
packages = ["src/geopy_mcp"]
# Isort
# https://pycqa.github.io/isort/docs/configuration/options.html
[tool.isort]
profile = "black"
src_paths = ["src", "test"]
skip = [".venv", ".github"]
# Mypy
# https://mypy.readthedocs.io/en/stable/config_file.html
[tool.mypy]
exclude = [".venv"]
# Ruff
# https://docs.astral.sh/ruff/configuration/
[tool.ruff]
line-length = 119
target-version = "py313"
extend-exclude = [".github"]
[tool.ruff.lint]
select = ["E4", "E7", "E9", "F", "B", "Q"]
# Scripts
# https://github.com/cssnr/toml-run
# Run any script by name with, run name. Example: `run format`
[tool.scripts]
build = "uv run hatch build"
format = [
"uv run black .",
"uv run isort -c .",
"uv run ruff format .",
"uv run tombi format .",
"which prettier && prettier --write . || echo missing prettier",
]
lint = [
"run bandit",
"run mypy",
"run ruff",
"run validate",
"run yamllint",
"which prettier && prettier --check . || echo missing prettier",
"uv run black --check .",
"uv run isort -c .",
"uv run tombi lint",
"uv run ty check -v .",
"uv lock --check",
]
bandit = "uv run bandit -c pyproject.toml -r ."
mypy = "uv run mypy ."
ruff = "uv run ruff check ."
validate = "uv run validate-pyproject pyproject.toml"
yamllint = "uv run yamllint -c .github/yamllint.yaml ."
cli = "uv run python -m geopy_mcp"
dev = "uv run uvicorn geopy_mcp.server:app --app-dir src --reload"
server = "uv run uvicorn geopy_mcp.server:app --app-dir src --host 0.0.0.0"
compose = "docker compose -f docker-compose-dev.yaml up --watch --build --remove-orphans"