-
Notifications
You must be signed in to change notification settings - Fork 6
/
pyproject.toml
61 lines (48 loc) · 1.61 KB
/
pyproject.toml
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
[project]
name = "pytroll-db"
dynamic = ["version"]
description = "The database API of Pytroll."
authors = [
{ name = "Pouria Khalaj", email = "[email protected]" }
]
dependencies = ["pymongo", "posttroll", "motor", "pydantic", "fastapi", "uvicorn", "loguru", "pyyaml", "urllib3"]
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"
]
[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"] # 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