-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathpyproject.toml
More file actions
135 lines (120 loc) · 2.65 KB
/
Copy pathpyproject.toml
File metadata and controls
135 lines (120 loc) · 2.65 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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
[build-system]
requires = [
"setuptools>=69",
"setuptools_scm>=8",
]
build-backend = "setuptools.build_meta"
[project]
name = "larch"
description = "Estimating and applying discrete choice models"
dynamic = ["version"]
authors = [
{name = "Jeff Newman", email = "jeff@driftless.xyz"},
]
dependencies = [
"numpy >=1.19",
"pandas >=1.5",
"pyarrow",
"xarray",
"numba >=0.60.0",
"numexpr",
"filelock",
"dask",
"networkx",
"addicty",
"xmle >=0.1.25",
"rich",
"sparse",
"scipy >=1.15,<1.16",
"Jinja2",
"sharrow >=2.15"
]
readme = "README.md"
requires-python = ">= 3.10"
[project.optional-dependencies]
# development dependency groups
test = [
"pytest >=4.6",
"jax >=0.6,<0.7",
"tables",
"geopandas",
"matplotlib",
"seaborn",
"nbmake",
"xlsxwriter",
"zarr",
"tabulate",
"altair",
"vl-convert-python",
"pydot",
"pytest-regressions",
"openmatrix",
]
jax = [
"jax",
]
[tool.setuptools.packages.find]
where = ["src"]
include = ["larch*"]
namespaces = false
[tool.setuptools.package-data]
data_warehouse = ["*.csv.gz", "*.omx", "*.zarr.zip", "*.parquet"]
[tool.setuptools_scm]
fallback_version = "6.0"
write_to = "src/larch/_version.py"
[tool.isort]
profile = "black"
skip_gitignore = true
float_to_top = true
default_section = "THIRDPARTY"
known_first_party = "larch"
[tool.pytest.ini_options]
minversion = "6.0"
addopts = "-v --nbmake --disable-warnings --ignore=sandbox"
testpaths = [
"tests",
"docs/examples",
"docs/user-guide",
]
[tool.ruff]
fix = true
line-length = 88
target-version = "py310"
extend-include = ["*.ipynb"]
extend-exclude = ["sandbox"]
[tool.ruff.lint]
ignore = ["B905", "D1", "E731", "UP038"]
select = [
"F", # Pyflakes
"E", # Pycodestyle Errors
"W", # Pycodestyle Warnings
"I", # isort
"UP", # pyupgrade
"D", # pydocstyle
"B", # flake8-bugbear
]
[tool.ruff.lint.per-file-ignores]
"*.ipynb" = [
"E402", # allow imports to appear anywhere in Jupyter Notebooks
"E501", # allow long lines in Jupyter Notebooks
"F811", # allow redefinition of unused variables in Jupyter Notebooks
"I002", # allow required imports to be missing
]
"tests/*.py" = [
"E501", # allow long lines in tests
]
"docs/*.py" = [
"I002", # allow required imports to be missing
]
[tool.ruff.lint.isort]
known-first-party = ["larch"]
required-imports = ["from __future__ import annotations"]
[tool.ruff.lint.pycodestyle]
max-line-length = 105
ignore-overlong-task-comments = true
[tool.ruff.lint.pydocstyle]
convention = "numpy"
[tool.uv.sources]
sharrow = { workspace = true }
[tool.uv.workspace]
members = ["subs/*"]