@@ -34,42 +34,42 @@ def another_func(x=1, y=True):
3434
3535
3636# Print current statistics
37- print ("=== Current Statistics ===" )
38- print ("test_func counts:" , test_func ._get_counts ())
39- print ("test_func param stats:" , test_func ._get_param_stats ())
40- print ()
41- print ("another_func counts:" , another_func ._get_counts ())
42- print ("another_func param stats:" , another_func ._get_param_stats ())
43- print ()
37+ print ("=== Current Statistics ===" ) # noqa: T201
38+ print ("test_func counts:" , test_func ._get_counts ()) # noqa: T201
39+ print ("test_func param stats:" , test_func ._get_param_stats ()) # noqa: T201
40+ print () # noqa: T201
41+ print ("another_func counts:" , another_func ._get_counts ()) # noqa: T201
42+ print ("another_func param stats:" , another_func ._get_param_stats ()) # noqa: T201
43+ print () # noqa: T201
4444
4545
4646# Test the stats uploader (this will try to upload to GA4)
47- print ("=== Testing Stats Uploader ===" )
47+ print ("=== Testing Stats Uploader ===" ) # noqa: T201
4848
4949# Use a dummy proxy URL for testing (won't actually send data unless configured)
5050uploader = StatsUploader (
5151 proxy_url = "https://analytics-proxy-production-665e.up.railway.app"
5252)
5353
54- print ("Analytics client enabled:" , uploader .analytics .enabled )
54+ print ("Analytics client enabled:" , uploader .analytics .enabled ) # noqa: T201
5555
5656# Test uploading individual function stats
57- print ("Uploading test_func stats..." )
57+ print ("Uploading test_func stats..." ) # noqa: T201
5858result1 = uploader .upload_function_stats (test_func , package_name = "test_package" )
59- print ("Upload result:" , result1 )
59+ print ("Upload result:" , result1 ) # noqa: T201
6060
61- print ("Uploading another_func stats..." )
61+ print ("Uploading another_func stats..." ) # noqa: T201
6262result2 = uploader .upload_function_stats (another_func , package_name = "test_package" )
63- print ("Upload result:" , result2 )
63+ print ("Upload result:" , result2 ) # noqa: T201
6464
6565# Test uploading all stats
66- print ("\n Uploading all stats..." )
66+ print ("\n Uploading all stats..." ) # noqa: T201
6767summary = uploader .upload_all_stats (package_name = "test_package" )
68- print ("Upload summary:" , summary )
68+ print ("Upload summary:" , summary ) # noqa: T201
6969
7070# Test custom stats upload
71- print ("\n Uploading custom stats..." )
71+ print ("\n Uploading custom stats..." ) # noqa: T201
7272custom_result = uploader .upload_custom_stats (
7373 "custom_metric" , {"metric_name" : "test_metric" , "value" : 42 , "category" : "testing" }
7474)
75- print ("Custom upload result:" , custom_result )
75+ print ("Custom upload result:" , custom_result ) # noqa: T201
0 commit comments