Skip to content

Commit 6eaa5da

Browse files
docs: add deprecation notice to main.py
- Mark main.py as deprecated but keep for backward compatibility - Add warning message when main.py is imported - Direct users to the new modular structure in src/ directory
1 parent 9e689dc commit 6eaa5da

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

main.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
# DEPRECATED: This file is kept for backward compatibility with tests
2+
# New development should use the modular structure in src/ with app.py as the entry point
3+
4+
import warnings
5+
warnings.warn(
6+
"main.py is deprecated. Use the modular structure in src/ with app.py as the entry point",
7+
DeprecationWarning,
8+
stacklevel=2
9+
)
10+
111
import asyncio
212
import datetime
313
import logging

0 commit comments

Comments
 (0)