97 lines
1.8 KiB
TOML
97 lines
1.8 KiB
TOML
[project]
|
|
name = "py_dvt_ate"
|
|
description = "Coupled Physics DVT Simulation Platform"
|
|
readme = "README.md"
|
|
license = "MIT"
|
|
authors = [
|
|
{ name = "Kai Chappell" }
|
|
]
|
|
requires-python = ">=3.11"
|
|
dynamic = ["version"]
|
|
dependencies = [
|
|
"numpy>=1.24",
|
|
"scipy>=1.11",
|
|
"pydantic>=2.0",
|
|
"pyyaml>=6.0",
|
|
"typer>=0.9",
|
|
"rich>=13.0",
|
|
"pyarrow>=14.0",
|
|
"streamlit>=1.28",
|
|
"pandas>=2.0",
|
|
"plotly>=5.18",
|
|
]
|
|
|
|
[project.optional-dependencies]
|
|
api = [
|
|
"fastapi>=0.100",
|
|
"uvicorn>=0.23",
|
|
"websockets>=11.0",
|
|
]
|
|
reports = [
|
|
"jinja2>=3.1",
|
|
"weasyprint>=60.0",
|
|
"matplotlib>=3.8",
|
|
]
|
|
dev = [
|
|
"pytest>=7.0",
|
|
"pytest-cov>=4.0",
|
|
"pytest-asyncio>=0.21",
|
|
"ruff>=0.1",
|
|
"mypy>=1.0",
|
|
"types-PyYAML>=6.0",
|
|
"pandas-stubs>=2.0",
|
|
]
|
|
|
|
[project.scripts]
|
|
py-dvt-ate = "py_dvt_ate.app.cli:app"
|
|
py-dvt-ate-server = "py_dvt_ate.simulation.server:main"
|
|
py-dvt-ate-dashboard = "py_dvt_ate.app.dashboard.app:main"
|
|
|
|
[build-system]
|
|
requires = ["hatchling"]
|
|
build-backend = "hatchling.build"
|
|
|
|
[tool.hatch.version]
|
|
path = "src/py_dvt_ate/__init__.py"
|
|
|
|
[tool.ruff]
|
|
line-length = 100
|
|
target-version = "py311"
|
|
|
|
[tool.ruff.lint]
|
|
select = [
|
|
"E", # pycodestyle errors
|
|
"W", # pycodestyle warnings
|
|
"F", # pyflakes
|
|
"I", # isort
|
|
"B", # flake8-bugbear
|
|
"C4", # flake8-comprehensions
|
|
"UP", # pyupgrade
|
|
]
|
|
ignore = [
|
|
"E501", # line too long (handled by formatter)
|
|
]
|
|
|
|
[tool.mypy]
|
|
python_version = "3.11"
|
|
strict = true
|
|
warn_return_any = true
|
|
warn_unused_ignores = true
|
|
disallow_untyped_defs = true
|
|
disallow_incomplete_defs = true
|
|
|
|
[[tool.mypy.overrides]]
|
|
module = [
|
|
"streamlit.*",
|
|
"plotly.*",
|
|
]
|
|
ignore_missing_imports = true
|
|
|
|
[tool.pytest.ini_options]
|
|
testpaths = ["tests"]
|
|
addopts = "-v --tb=short"
|
|
|
|
[tool.pytest-asyncio]
|
|
mode = "auto"
|
|
default_fixture_loop_scope = "function"
|