-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathpyproject.toml
More file actions
125 lines (109 loc) · 3.93 KB
/
pyproject.toml
File metadata and controls
125 lines (109 loc) · 3.93 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
[tool.poetry]
name = "asyncflow-sim"
version = "0.1.1"
description = "Digital-twin simulator for distributed async systems. Build what-if scenarios and quantify capacity, latency and throughput offline, before you deploy."
authors = ["Gioele Botta"]
readme = "README.md"
license = "MIT"
packages = [
{ include = "asyncflow", from = "src" }
]
include = ["LICENSE", "src/asyncflow/py.typed"]
exclude = ["tests", "docs", "scripts", ".github", "alembic"]
# Better pypi discovery
keywords = [
"simulation", "simpy", "asyncio", "capacity-planning", "performance",
"fastapi", "uvicorn", "distributed-systems", "queuing-theory"
]
homepage = "https://github.com/AsyncFlow-Sim/AsyncFlow"
repository = "https://github.com/AsyncFlow-Sim/AsyncFlow"
documentation = "https://github.com/AsyncFlow-Sim/AsyncFlow/tree/main/docs"
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"Topic :: System :: Distributed Computing",
"Topic :: Software Development :: Testing",
"Topic :: System :: Benchmark",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3.12",
"Typing :: Typed",
"Operating System :: OS Independent",
]
[tool.poetry.dependencies]
python = "^3.12"
pydantic-settings = "^2.10.1"
pydantic = {extras = ["email"], version = "^2.11.7"}
numpy = "^2.3.1"
simpy = "^4.1.1"
matplotlib = "^3.10.3"
pyyaml = "^6.0.2"
[tool.poetry.group.dev.dependencies]
pytest = "^8.4.1"
pytest-asyncio = "^1.0.0"
pytest-cov = "^6.2.1"
mypy = "^1.16.1"
ruff = "^0.12.1"
types-pyyaml = "^6.0.12.20250516"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.ruff]
target-version = "py312"
line-length = 88
fix = true
src = ["src", "tests"]
[tool.ruff.lint]
select = ["ALL"]
ignore = [
# Docstring conflicts
"D203", # 1 blank line required before class docstring (conflicts with D211)
"D205", # 1 blank line required between summary and description
"D212", # Multi-line docstring summary should start at the first line
"D213", # Multi-line docstring summary should start at the second line (conflicts with D212)
"D400", # First line should end with a period
"D401", # First line of docstring should be in imperative mood
"D415", # First line should end with a period, question mark, or exclamation point
# Test-specific ignores
"S101", # Use of assert detected (standard in tests)
"S106", # Possible hardcoded password (acceptable in tests)
# Development/config ignores
"S105", # Possible hardcoded password (acceptable for default config values)
# Overly strict rules
"PLR2004", # Magic value used in comparison (too strict for HTTP status codes, etc.)
"ERA001", # Found commented-out code (sometimes useful for documentation)
# Package structure
"INP001", # File is part of an implicit namespace package (not always needed)
]
# Per-file ignores for specific cases
[tool.ruff.lint.per-file-ignores]
"tests/**" = [
"D100", # Missing docstring in public module (not needed in test files)
"D103", # Missing docstring in public function (test function names are descriptive)
"ARG001", # Unused function argument (common in test fixtures)
]
"alembic/**" = [
"D100", # Missing docstring in public module
"D103", # Missing docstring in public function
"INP001", # Alembic doesn't need __init__.py files
]
"**/conftest.py" = [
"D100", # Missing docstring in public module
]
"src/app/db/base.py" = [
"N805", # First argument should be named `self` (cls is correct for @declared_attr.directive)
]
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
line-ending = "lf"
[tool.mypy]
python_version = "3.12"
disallow_untyped_defs = true
plugins = ["pydantic.mypy"]
strict = true
ignore_missing_imports = true
warn_unused_ignores = true
show_error_codes = true
pretty = true
exclude = ["^.venv/"]