-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
68 lines (59 loc) · 1.98 KB
/
Copy pathpyproject.toml
File metadata and controls
68 lines (59 loc) · 1.98 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
[build-system]
requires = ["setuptools>=68", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "garmin-cli"
version = "2.5.0"
description = "CLI tool for extracting health and activity data from Garmin Connect"
requires-python = ">=3.10"
dependencies = [
"garminconnect==0.3.2",
"click>=8.0",
"tabulate>=0.9",
"pyyaml>=6.0",
]
[project.optional-dependencies]
mcp = ["mcp[cli] @ git+https://github.com/modelcontextprotocol/python-sdk.git@d5b9155f14ab3b4b203a47c55b53955b2d0bca09"]
dev = [
"pytest>=9.0",
"pytest-mock>=3.15",
"ruff>=0.4",
"mypy>=1.8",
"tomli>=2.0; python_version < '3.11'",
]
[project.scripts]
garmin-cli = "garmin_cli.cli:main"
[tool.setuptools.packages.find]
where = ["src"]
include = ["garmin_cli*"]
exclude = ["tests*"]
[tool.pytest.ini_options]
testpaths = ["tests"]
markers = [
"e2e: end-to-end tests against real Garmin Connect API",
]
[tool.ruff]
target-version = "py310"
line-length = 130
[tool.ruff.lint]
select = ["E", "F", "W", "I", "UP", "B"]
ignore = [
"E501", # line-too-long: many long docstrings/strings in mcp_server.py and tests; not worth mass-reformatting
"I001", # unsorted-imports: widespread across entire codebase; would require mass import reorg
"UP045", # non-pep604-annotation-optional: Optional[X] style used consistently; not changing
"UP035", # deprecated-import: collections.abc imports; not changing legacy typing imports
"UP037", # quoted-annotation: quoted annotations present; not changing
"B904", # raise-without-from-inside-except: intentional style in this codebase
]
[tool.ruff.lint.per-file-ignores]
"src/garmin_cli/mcp_server.py" = [
"E402", # mcp imports appear after WriteOutcome type alias (conditional import pattern)
]
"tests/**/*.py" = [
"F401", # unused imports in test files are often for re-export or fixture side-effects
]
[tool.mypy]
files = ["src"]
ignore_missing_imports = true
follow_imports = "silent"
disable_error_code = ["import-untyped"]