This repository was archived by the owner on Dec 30, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
179 lines (161 loc) · 3.98 KB
/
pyproject.toml
File metadata and controls
179 lines (161 loc) · 3.98 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
[project]
name = "irc-atl-chat"
version = "0.1.0"
requires-python = ">=3.11"
description = "IRC.atl.chat - Docker-based IRC server with UnrealIRCd and Atheme"
readme = "README.md"
license = "MIT"
authors = [{ name = "All Things Linux", email = "admin@allthingslinux.org" }]
maintainers = [
{ name = "All Things Linux", email = "admin@allthingslinux.org" },
]
dependencies = [
"docker>=7.1.0",
"pyyaml>=6.0.2",
"requests>=2.32.5",
"psutil>=5.9.0",
"irc>=20.5.0",
"irc-toolkit>=0.2.0",
"pydle>=1.1.0",
"unrealircd-rpc-py>=2.0.0",
"websocket-client>=1.0.0",
"pytest>=8.0.0",
"pytest-mock>=3.12.0",
"pytest-asyncio>=0.23.0",
"pytest-xdist>=3.0.0",
"pytest-html>=4.0.0",
"pytest-timeout>=2.4.0",
"pytest-sugar>=1.1.1",
"pytest-docker>=3.0.0",
"pytest-docker-tools>=3.1.0",
"ruff>=0.6.0",
"basedpyright>=0.6.0",
"pre-commit>=3.0.0",
]
[project.urls]
repository = "https://github.com/allthingslinux/irc.atl.chat"
homepage = "https://irc.atl.chat"
[tool.pytest.ini_options]
# Test discovery
testpaths = ["tests"]
python_files = ["test_*.py", "*_test.py"]
python_classes = ["Test*"]
python_functions = ["test_*"]
# Default options for all pytest runs
addopts = [
# Output formatting
"--strict-markers",
"--tb=short",
# Verbose logging
"-v",
"--color=yes",
"--durations=10",
# Async support
"--asyncio-mode=auto",
]
# Markers
markers = [
"slow: marks tests as slow (deselect with '-m \"not slow\"')",
"integration: marks tests as integration tests",
"unit: marks tests as unit tests",
"docker: marks tests that require Docker",
"irc: marks tests that require IRC server",
"network: marks tests that require network access",
"e2e: marks tests as end-to-end tests",
"atheme: marks tests that require Atheme services",
"webpanel: marks tests that require WebPanel",
"ssl: marks tests that require SSL functionality",
"performance: marks tests as performance tests",
"async: marks tests as async tests",
"protocol: marks tests for IRC protocol compliance",
"unrealircd: marks tests specific to UnrealIRCd",
"ircv3: marks tests for IRCv3 features",
# IRC specification markers (from irctest)
"RFC1459",
"RFC2812",
"IRCv3",
"modern",
"ircdocs",
"Ergo",
"strict",
"deprecated",
"services",
# IRCv3 capabilities
"account-notify",
"account-tag",
"away-notify",
"batch",
"echo-message",
"extended-join",
"extended-monitor",
"labeled-response",
"message-tags",
"metadata-2",
"draft/multiline",
"multi-prefix",
"server-time",
"setname",
"sts",
# ISUPPORT tokens
"BOT",
"ELIST",
"INVEX",
"MONITOR",
"PREFIX",
"STATUSMSG",
"TARGMAX",
"UTF8ONLY",
"WHOX",
]
# Filter warnings
filterwarnings = ["error", "ignore::UserWarning", "ignore::DeprecationWarning"]
# Minimum version
minversion = "8.0"
# Test timeout (in seconds)
timeout = 300
# AsyncIO configuration
asyncio_mode = "auto"
asyncio_default_fixture_loop_scope = "session"
# Directories to skip during test discovery
norecursedirs = [
".git",
".venv",
"venv",
"__pycache__",
".pytest_cache",
"logs",
"data",
"tests/legacy/**",
]
[tool.ruff]
exclude = [".venv", "__pycache__", ".pytest_cache", "logs", "data"]
line-length = 120
target-version = "py311"
[tool.ruff.lint]
ignore = [
"E501", # Line too long (handled by formatter)
"PLR0913", # Too many arguments
"PLR2004", # Magic value comparison
]
select = [
"E", # pycodestyle-error
"F", # pyflakes
"I", # isort
"N", # pep8-naming
"UP", # pyupgrade
"B", # flake8-bugbear
"SIM", # flake8-simplify
"PL", # pylint
"RUF", # ruff
]
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
line-ending = "lf"
[tool.uv]
# uv-specific configuration
cache-dir = ".uv_cache"
[dependency-groups]
dev = [
"pytest-github-actions-annotate-failures>=0.3.0",
]