-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpyproject.toml
More file actions
86 lines (76 loc) · 1.95 KB
/
pyproject.toml
File metadata and controls
86 lines (76 loc) · 1.95 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
[project]
name = "solvis-graphql-api"
version = "0.9.2"
description = "The Graphql API for analysis of opensha modular Inversion Solutions."
authors = [
{name = "Chris B Chamberlain",email = "chrisbc@artisan.co.nz"},
{name="NSHM Compute Working Group", email="nshm@gns.cri.nz"}
]
readme = "README.md"
requires-python = ">=3.12"
license = "AGPL-3.0-or-later"
classifiers=[
'Development Status :: 2 - Pre-Alpha',
'Intended Audience :: Developers',
'Natural Language :: English',
'Programming Language :: Python :: 3.12',
]
dependencies = [
"flask>=3.0.3,<4.0.0",
"flask-cors>=6.0,<7.0.0",
"geopandas>=1.0.0,<2.0.0",
"graphene>=3.3,<4.0.0",
"graphql-server==3.0.0b7",
"matplotlib>=3.10.7,<4.0.0",
"nzshm-common>=0.9.0,<1.0",
"nzshm-model>=0.14.0,<1.0",
"pandas>=3.0.0,<4.0.0",
"pynamodb>=6.0.0,<7.0.0",
"pyyaml>=6.0.1,<7.0.0",
"serverless-wsgi>=3.0,<4.0",
"solvis>=1.2.0,<2.0",
]
[tool.hatch.build.targets.wheel]
packages = ["solvis_graphql_api"]
[project.scripts]
cli = 'solvis_graphql_api.scripts.cli:cli'
cli_ab_test = 'solvis_graphql_api.scripts.cli_ab_test:cli'
[dependency-groups]
dev = [
"bump2version",
"click",
"deepdiff",
"moto",
"mypy",
"pre-commit",
"pytest-cov",
"pytest",
"ruff",
"sgqlc",
"shapely",
"toml",
"tox",
"twine",
"types-python-dateutil",
"types-PyYAML",
"types-toml",
]
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.uv]
exclude-newer = "1 week"
# nzshm* packages ship fresh — always resolve to latest.
exclude-newer-package = { "nzshm-common" = false, "nzshm-model" = false }
[tool.ruff]
line-length = 120
[tool.ruff.lint]
select = ["E", "F", "I", "B", "UP"]
ignore = ["E203", "E266", "E501"]
[tool.ruff.lint.per-file-ignores]
"__init__.py" = ["F401"]
[tool.ruff.format]
quote-style = "preserve"
[tool.mypy]
ignore_missing_imports = true
exclude = ["solvis_graphql_api/ab_test/client"]