Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
81 lines (67 loc) · 2.11 KB
/
Copy pathpyproject.toml
File metadata and controls
81 lines (67 loc) · 2.11 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
[project]
name = "pytroll-db"
dynamic = ["version"]
description = "The database API of Pytroll"
authors = [
{ name = "Pouria Khalaj", email = "pouria.khalaj@smhi.se" },
{ name = "Martin Raspaud", email = "martin.raspaud@smhi.se" },
{ name = "Adam Dybbroe", email = "Adam.Dybbroe@smhi.se" },
{ name = "Esben S. Nielsen", email = "esn@dmi.dk" },
{ name = "Kristian Rune Larsen", email = "krl@dmi.dk" }
]
readme = "README.rst"
requires-python = ">= 3.12"
license = { file = "LICENSE" }
classifiers = [
"Development Status :: 4 - Beta",
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
"Programming Language :: Python",
"Operating System :: OS Independent",
"Intended Audience :: Science/Research",
"Topic :: Scientific/Engineering",
"Topic :: Database"
]
dependencies = [
"fastapi",
"loguru",
"motor",
"posttroll",
"pydantic",
"pymongo",
"pyyaml",
"urllib3",
"uvicorn"
]
[project.optional-dependencies]
doc = ["sphinx", "sphinx_rtd_theme"]
hooks = ["pre-commit", "ruff"]
tests = ["httpx", "pytest", "pytest-asyncio", "pytest-cov", "pytest-lazy-fixtures"]
dev = ["pytroll-db[doc,hooks,tests]"]
[project.urls]
"Documentation" = "https://pytroll-db.readthedocs.io/en/latest/"
[project.scripts]
pytroll-db-recorder = "trolldb.cli:run_sync"
[build-system]
requires = ["hatchling", "hatch-vcs"]
build-backend = "hatchling.build"
[tool.hatch.metadata]
allow-direct-references = true
[tool.hatch.build.targets.wheel]
packages = ["trolldb"]
[tool.hatch.version]
source = "vcs"
[tool.hatch.build.hooks.vcs]
version-file = "trolldb/version.py"
[tool.ruff]
line-length = 120
[tool.ruff.lint]
# See https://docs.astral.sh/ruff/rules/
select = ["A", "B", "D", "E", "W", "F", "I", "N", "PT", "S", "TID", "C90", "Q", "T10", "T20"]
[tool.ruff.lint.per-file-ignores]
"*/tests/*" = ["S101"] # assert allowed in tests
"docs/source/conf.py" = ["D100", "A001", "I001"] # sphinx misbihaving
"src/trolldb/version.py" = ["D100", "Q000"] # automatically generated by hatch-vcs
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.ruff.lint.mccabe]
max-complexity = 10