Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
61 lines (52 loc) · 1.49 KB
/
Copy pathpyproject.toml
File metadata and controls
61 lines (52 loc) · 1.49 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
[build-system]
requires = ["setuptools>=77"]
build-backend = "setuptools.build_meta"
[project]
name = "ride-analytics"
version = "0.1.0"
description = "Local-first CLI that analyzes Strava/Garmin FIT exports and builds a self-contained HTML report"
readme = "README.md"
license = "MIT"
authors = [{ name = "Benedict Fuchs" }]
requires-python = ">=3.11"
dependencies = [
"fitparse==1.2.0",
"pandas==3.0.3",
"numpy==2.5.1",
"plotly==6.9.0",
"jinja2==3.1.6",
"click==8.4.2",
"PyYAML==6.0.3",
"fastapi==0.121.3",
"uvicorn[standard]==0.34.0",
"python-multipart==0.0.20",
]
[project.optional-dependencies]
dev = [
"pytest==9.1.1",
"ruff==0.15.22",
"httpx==0.28.1",
]
[project.scripts]
ride-analytics = "ride_analytics.cli:main"
[tool.setuptools.packages.find]
where = ["src"]
[tool.setuptools.package-data]
"ride_analytics.report" = ["templates/*.j2"]
"ride_analytics.web" = ["static/**/*"]
"ride_analytics.geocode" = ["data/*.csv"]
[tool.ruff]
line-length = 100
src = ["src", "tests"]
[tool.ruff.lint]
select = ["E", "F", "I", "UP", "B", "SIM"]
[tool.ruff.lint.flake8-bugbear]
# FastAPI's dependency-injection idiom uses calls as parameter defaults.
extend-immutable-calls = ["fastapi.Depends", "fastapi.Header", "fastapi.File", "fastapi.Query"]
[tool.pytest.ini_options]
testpaths = ["tests"]
pythonpath = ["src"]
filterwarnings = [
# fitparse still uses utcfromtimestamp(); not our code
"ignore:datetime.datetime.utcfromtimestamp:DeprecationWarning:fitparse",
]