Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
61 lines (52 loc) · 1.59 KB
/
Copy pathpyproject.toml
File metadata and controls
61 lines (52 loc) · 1.59 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
[project]
name = "dscim-cil"
version = "0.1.0"
description = "Command-line interface to the dscim social cost of carbon library"
requires-python = ">=3.12"
dependencies = ["click>=8.1", "pyyaml>=6.0", "rich>=13.0"]
[project.optional-dependencies]
# dscim pinned to the main commit the test suite runs against. To use
# a different dscim, skip the extra and install your version instead.
run = [
"dscim @ git+https://github.com/ClimateImpactLab/dscim@6a1f4d7e5ebe87653f149460a9585951ed0f3b06",
]
[project.scripts]
dscim-cil = "dscim_cil.cli:main"
[dependency-groups]
tests = [
"jupyterlab>=4.6.3",
"pytest>=8.0",
"pytest-cov>=6.0",
"ruff>=0.8",
"ty>=0.0.35",
]
docs = ["mkdocstrings[python]>=1.0.4", "zensical>=0.0.41"]
dev = [{ include-group = "tests" }, { include-group = "docs" }]
[build-system]
requires = ["uv_build>=0.11.13,<0.13.0"]
build-backend = "uv_build"
[tool.ty.environment]
# tests/fixture_factory.py is imported via a runtime path insertion by
# the integration tests and the demo notebook.
extra-paths = ["tests"]
[tool.pytest.ini_options]
markers = [
"integration: needs dscim and its dependency stack installed",
"full_matrix: recipe x discounting cross beyond the default cells; set DSCIM_CIL_FULL_MATRIX=1",
]
[tool.ruff.lint]
extend-select = [
"B", # bugbear
"C4", # comprehensions
"I", # isort
"ISC", # implicit string concat
"PIE",
"SIM", # simplify
"TID", # tidy imports
"UP", # pyupgrade
"RUF",
]
[tool.ruff.lint.isort]
known-first-party = ["dscim_cil"]
[tool.ruff.lint.flake8-tidy-imports]
ban-relative-imports = "all"