-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
121 lines (109 loc) · 2.8 KB
/
pyproject.toml
File metadata and controls
121 lines (109 loc) · 2.8 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
[build-system]
requires = ["setuptools>=42", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "sim-lab"
version = "0.3.0"
description = "A set of classes for simulating various business-related scenarios for educational use"
readme = "README.md"
authors = [
{name = "Michael Borck", email = "michael@borck.me"}
]
license = "MIT"
license-files = ["LICENSE"]
requires-python = ">=3.10"
classifiers = [
"Development Status :: 4 - Beta",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Intended Audience :: Education",
"Topic :: Scientific/Engineering :: Information Analysis",
]
dependencies = [
"numpy>=1.26.0",
"typer[all]>=0.9.0",
"uvicorn>=0.29.0",
"textual>=0.52.1",
"matplotlib>=3.8.0",
"plotly>=5.19.0",
"pydantic>=2.7.0",
"pymdown-extensions>=10.8.1",
"pycparser>=2.22",
"jinja2>=3.1.3",
"python-fasthtml>=0.1.0",
]
[project.optional-dependencies]
dev = [
"pytest>=8.2.0",
"pytest-cov>=4.1.0",
"mkdocs>=1.6.0",
"mkdocs-material>=9.5.2",
"mkdocstrings>=0.25.0",
"mkdocstrings-python>=1.10.0",
"ruff>=0.1.5",
"mypy>=1.8.0",
"build>=1.0.0",
"twine==6.0.1",
]
web = [
"uvicorn>=0.29.0",
"python-fasthtml>=0.1.0",
]
cli = [
"typer[all]>=0.9.0",
]
[project.urls]
Homepage = "http://sim-lab.borck.me"
Documentation = "https://michael-borck.github.io/sim-lab/"
Repository = "https://github.com/michael-borck/sim-lab"
[project.scripts]
simlab = "sim_lab.cli.main:app"
[tool.ruff]
target-version = "py310"
line-length = 100
select = [
"E", # pycodestyle errors
"F", # pyflakes
"I", # isort
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"UP", # pyupgrade
"D", # pydocstyle
]
ignore = [
"E501", # line too long - let ruff formatter handle this
"D100", # Missing docstring in public module
"D104", # Missing docstring in public package
]
[tool.ruff.per-file-ignores]
"tests/**/*.py" = ["D", "E501"]
[tool.ruff.isort]
known-first-party = ["sim_lab"]
[tool.ruff.pydocstyle]
convention = "google"
[tool.ruff.format]
indent-style = "space"
line-ending = "auto"
[tool.pytest.ini_options]
minversion = "8.0"
testpaths = ["tests"]
python_files = "test_*.py"
# Temporarily disable coverage for testing
# addopts = "--cov=sim_lab --cov-report=term-missing"
[tool.mypy]
python_version = "3.10"
disallow_untyped_defs = true
disallow_incomplete_defs = true
check_untyped_defs = true
disallow_untyped_decorators = false
no_implicit_optional = true
strict_optional = true
warn_redundant_casts = true
warn_return_any = true
warn_unused_ignores = true
[[tool.mypy.overrides]]
module = "tests.*"
disallow_untyped_defs = false
disallow_incomplete_defs = false