Skip to content

Commit a0179e3

Browse files
added deprecation warning message
added deprecation warning for AI Code detection. "AI Code Detection will be discontinued on August 29, 2025. Please remove AI code detection integrations before the sunset date." when updating the package version or installing the package.
1 parent 834134a commit a0179e3

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

copyleaks/__init__.py

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
import sys
2+
if sys.stderr.isatty():
3+
yellow = "\033[33m"
4+
red = "\033[31m"
5+
reset = "\033[0m"
6+
else:
7+
yellow = ""
8+
red = ""
9+
reset = ""
10+
notice = (
11+
f"{yellow}"
12+
"================================================================\n"
13+
f"{red} DEPRECATION NOTICE: copyleaks\n"
14+
f"{yellow}================================================================\n"
15+
"AI Code Detection will be discontinued on August 29, 2025.\n"
16+
"Please remove AI code detection integrations before the sunset date.\n"
17+
f"================================================================{reset}"
18+
)
19+
print(notice, file=sys.stderr)

0 commit comments

Comments
 (0)