-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
191 lines (175 loc) · 4.34 KB
/
Copy pathpyproject.toml
File metadata and controls
191 lines (175 loc) · 4.34 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
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
[build-system]
requires = ["setuptools>=83.0.0", "wheel>=0.47.0"]
build-backend = "setuptools.build_meta"
[project]
name = "i3-gateway"
version = "0.4.7-beta"
description = "Intermud3 Protocol Gateway - A standalone Python service for MUD-to-I3 network bridging"
readme = "README.md"
requires-python = ">=3.12"
license = "MIT"
license-files = ["LICENSE"]
authors = [
{name = "I3 Gateway Team", email = "admin@example.com"}
]
keywords = ["intermud3", "mud", "gateway", "protocol", "networking"]
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Topic :: Games/Entertainment :: Multi-User Dungeons (MUD)",
"Topic :: Internet",
"Topic :: Software Development :: Libraries :: Python Modules",
]
dependencies = [
"pyyaml>=6.0.3",
"structlog>=26.1.0",
"aiohttp>=3.14.3",
"pydantic>=2.13.4",
"python-dotenv>=1.2.2",
"click>=8.4.2",
"psutil>=7.2.2",
]
[project.optional-dependencies]
dev = [
"pytest>=9.1.1",
"pytest-asyncio>=1.4.0",
"pytest-cov>=7.1.0",
"pytest-mock>=3.15.1",
"black>=26.5.1",
"ruff>=0.16.0",
"mypy>=2.3.0",
"pre-commit>=4.6.1",
"types-pyyaml>=6.0.12.20260724",
]
docs = [
"sphinx>=9.1.0",
"sphinx-rtd-theme>=3.1.0",
]
security = [
"bandit>=1.9.4",
"safety>=3.8.1",
"pip-audit>=2.10.1",
]
[project.scripts]
i3-gateway = "src.__main__:main"
[project.urls]
Homepage = "https://github.com/yourusername/Intermud3"
Documentation = "https://intermud3.readthedocs.io"
Repository = "https://github.com/yourusername/Intermud3"
Issues = "https://github.com/yourusername/Intermud3/issues"
# Tool configurations
[tool.setuptools.packages.find]
where = ["."]
include = ["src", "src.*"]
[tool.black]
line-length = 100
target-version = ['py312', 'py313', 'py314']
include = '\.pyi?$'
extend-exclude = '''
/(
\.eggs
| \.git
| \.hg
| \.mypy_cache
| \.tox
| \.venv
| _build
| buck-out
| build
| dist
)/
'''
[tool.ruff]
line-length = 100
target-version = "py312"
extend-include = ["*.pyi?"]
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"UP", # pyupgrade
"ARG", # flake8-unused-arguments
"SIM", # flake8-simplify
"PTH", # flake8-use-pathlib
"ERA", # flake8-eradicate
"RUF", # Ruff-specific rules
]
ignore = [
"E501", # Line too long (handled by black)
"B008", # Function calls in argument defaults
"B904", # raise without from inside except
"SIM108", # Use ternary operator instead of if-else
]
fixable = ["ALL"]
unfixable = []
[tool.ruff.lint.per-file-ignores]
"tests/*" = ["S101", "ARG001", "ARG002"] # Allow assert and unused arguments in tests
"**/__init__.py" = ["F401"] # Allow unused imports in __init__ files
[tool.ruff.lint.isort]
known-first-party = ["src"]
[tool.mypy]
python_version = "3.12"
warn_return_any = true
warn_unused_configs = true
disallow_untyped_defs = true
disallow_any_generics = true
check_untyped_defs = true
no_implicit_optional = true
warn_redundant_casts = true
warn_unused_ignores = true
warn_no_return = true
follow_imports = "normal"
ignore_missing_imports = true
pretty = true
show_column_numbers = true
show_error_codes = true
show_error_context = true
[tool.pytest.ini_options]
testpaths = ["tests"]
python_files = ["test_*.py", "*_test.py"]
python_classes = ["Test*"]
python_functions = ["test_*"]
addopts = [
"--verbose",
"--cov=src",
"--cov-report=term-missing",
"--cov-report=html",
"--cov-report=xml",
"--cov-fail-under=80",
"--strict-markers",
"--tb=short",
]
asyncio_mode = "auto"
markers = [
"unit: Unit tests",
"integration: Integration tests",
"slow: Slow tests",
"network: Tests requiring network access",
]
[tool.coverage.run]
source = ["src"]
omit = [
"*/tests/*",
"*/__init__.py",
"*/conftest.py",
]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"def __repr__",
"def __str__",
"raise AssertionError",
"raise NotImplementedError",
"if __name__ == .__main__.:",
"if TYPE_CHECKING:",
"class .*\\bProtocol\\):",
"@abstractmethod",
]