-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
140 lines (129 loc) · 2.75 KB
/
Copy pathpyproject.toml
File metadata and controls
140 lines (129 loc) · 2.75 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
136
137
138
139
140
[project]
name = "bstew"
version = "1.0.0"
description = "BeeSteward v2 Python transpilation - Agent-based pollinator population modeling"
authors = [
{name = "BSTEW Team"}
]
license = {text = "BSD-3-Clause"}
readme = "README.md"
requires-python = ">=3.11"
dependencies = [
"mesa",
"numpy",
"pandas",
"scipy",
"matplotlib",
"plotly",
"pyyaml",
"pillow",
"tqdm",
"typer",
"rich",
"seaborn>=0.13.2",
"scikit-learn>=1.6.1",
"pydantic>=2.11.7",
"openpyxl>=3.1.5",
"geopandas>=1.1.1",
"shapely>=2.1.1",
"rasterio>=1.4.3",
"fiona>=1.10.1",
"dash>=3.1.1",
"ipywidgets>=8.1.7",
"dash-bootstrap-components>=2.0.3",
"reportlab>=4.4.2",
"psutil>=7.0.0",
"networkx>=3.5",
"streamlit>=1.32.0",
]
[project.optional-dependencies]
dev = [
"pytest",
"black",
"ruff",
"mypy"
]
[project.scripts]
bstew = "bstew.cli:app"
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.black]
line-length = 88
target-version = ['py311']
[tool.ruff]
line-length = 88
target-version = "py311"
[tool.mypy]
python_version = "3.11"
warn_return_any = true
warn_unused_configs = true
disallow_untyped_defs = true
show_error_codes = true
warn_unused_ignores = true
exclude = [
"tests/",
"docs/",
"build/",
"dist/",
]
# Ignore missing imports for libraries without type stubs
[[tool.mypy.overrides]]
module = [
"plotly.*",
"sklearn.*",
"mesa.*",
"rasterio.*",
"geopandas.*",
"dash_bootstrap_components.*",
"dash.*",
"xarray.*",
"SALib.*",
"fiona.*",
"ipywidgets.*",
"pyproj.*",
"jinja2.*",
"shapely.*",
"seaborn.*",
"reportlab.*",
"streamlit.*",
]
ignore_missing_imports = true
[tool.pytest.ini_options]
testpaths = ["tests"]
python_files = ["test_*.py"]
python_classes = ["Test*"]
python_functions = ["test_*"]
addopts = [
"--cov=src/bstew",
"--cov-report=term-missing",
"--cov-report=html:artifacts/coverage/html",
"--cov-report=xml:artifacts/coverage/coverage.xml",
"--cov-fail-under=80"
]
[tool.coverage.run]
source = ["src/bstew"]
omit = ["tests/*", "src/bstew/cli/netlogo_cli.py"]
[tool.coverage.report]
fail_under = 80
show_missing = true
skip_covered = false
precision = 2
[tool.uv]
dev-dependencies = [
"black>=25.1.0",
"mypy>=1.16.1",
"pandas-stubs>=2.2.2.240807",
"pre-commit>=4.2.0",
"pytest-cov>=6.2.1",
"ruff>=0.12.2",
"scipy-stubs>=1.15.3.0",
"types-networkx>=3.5.0.20250712",
"types-openpyxl>=3.1.5.20250602",
"types-psutil>=7.0.0.20250601",
"types-pyyaml>=6.0.12.20250516",
"types-reportlab>=4.4.1.20250602",
"types-requests>=2.32.4.20250611",
"types-seaborn>=0.13.2.20250516",
"types-shapely>=2.1.0.20250710",
]