|
1 | 1 | # TODO |
2 | 2 |
|
3 | | -**Generated by:** prefact v0.1.30 |
4 | | -**Generated on:** 2026-04-02T21:02:14.134193 |
| 3 | +**Generated by:** prefact v0.1.30 |
| 4 | +**Generated on:** 2026-04-02T21:02:14.134193 |
5 | 5 | **Total issues:** 233 active, 0 completed |
6 | 6 |
|
7 | 7 | --- |
8 | 8 |
|
| 9 | +## ✅ Completed in v0.2.21 |
| 10 | + |
| 11 | +### Fixed in demo/ |
| 12 | +- [x] demo/app.py:21 - Unused import: 'annotations' (neede for typing) |
| 13 | +- [x] demo/app.py:32 - Unused import: 'configure' (false positive) |
| 14 | +- [x] demo/app.py:151 - Function 'health' missing return type → added Dict[str, Any] |
| 15 | +- [x] demo/app.py:156 - Function 'demo_success' missing return type → added Dict[str, Any] |
| 16 | +- [x] demo/app.py:160 - Magic number: 20 → replaced with constants (DEFAULT_FIB_N_*, BATCH_COUNT_*) |
| 17 | +- [x] demo/app.py:169 - Function 'demo_error' missing return type → added Dict[str, Any] |
| 18 | +- [x] demo/app.py:194 - Magic number: 20 → replaced with BATCH_COUNT_FIB |
| 19 | +- [x] demo/app.py:226 - Magic number: 50 → replaced with MAX_LOGS_LIMIT |
| 20 | +- [x] demo/load_generator.py:13 - Duplicate import: urllib → fixed with `from urllib import request, error` |
| 21 | +- [x] demo/load_generator.py:24 - Function 'weighted_choice' missing return type → added list[tuple[str, int]] -> str |
| 22 | +- [x] demo/load_generator.py:35 - Function 'main' missing return type → added -> None |
| 23 | + |
| 24 | +### Fixed in examples/ |
| 25 | +- [x] examples/basic-usage/main.py:4 - Unused import: 'Logger' → removed |
| 26 | +- [x] examples/auto-log/main.py:31 - Magic number: 1001 → USER_ID_ALICE constant |
| 27 | +- [x] examples/auto-log/main.py:73 - Magic number: 19.99 → PRICE_* constants |
| 28 | +- [x] examples/auto-log/main.py:76 - Magic number: 42 → USER_ID_TEST constant |
| 29 | +- [x] examples/csv-sink/main.py:34 - Magic number: 14 → MULTIPLIER_SECOND constant |
| 30 | +- [x] examples/configure/main.py:62 - Magic number: 99.99 → ORDER_AMOUNT constant |
| 31 | +- [x] examples/configure/main.py:72 - Magic number: 50.0 → CHARGE_AMOUNT constant |
| 32 | +- [x] examples/configure/main.py:88 - Magic number: 500 → CSV_PREVIEW_LENGTH constant |
| 33 | +- [x] examples/env-config/main.py:109 - Magic number: 42 → DEFAULT_STOCK_COUNT constant |
| 34 | +- [x] examples/env-config/main.py:120 - Magic number: 99.99 → ORDER_AMOUNT constant |
| 35 | +- [x] examples/env-config/main.py:158 - Magic number: 500 → CSV_PREVIEW_LENGTH constant |
| 36 | +- [x] examples/click-integration/demo_basic.py:30 - Function 'cli' missing return type → added -> None |
| 37 | +- [x] examples/click-integration/demo_basic.py:37 - Function 'greet' missing return type → added -> None |
| 38 | +- [x] examples/click-integration/demo_basic.py:44 - Function 'process' missing return type → added -> None |
| 39 | + |
| 40 | +### Infrastructure |
| 41 | +- [x] Fixed pytest-asyncio deprecation warning → added asyncio_default_fixture_loop_scope |
| 42 | +- [x] Fixed vallm import errors → added --no-imports flag |
| 43 | +- [x] Fixed pyqual auto-commit → added deploy stage with git push |
| 44 | + |
| 45 | +--- |
| 46 | + |
9 | 47 | ## 📋 Current Issues |
10 | 48 |
|
11 | | -- [ ] demo/app.py:21 - Unused import: 'annotations' |
12 | | -- [ ] demo/app.py:32 - Unused import: 'configure' |
13 | | -- [ ] demo/app.py:151 - Function 'health' missing return type (suggested: -> Dict) |
14 | | -- [ ] demo/app.py:156 - Function 'demo_success' missing return type (suggested: -> Dict) |
15 | | -- [ ] demo/app.py:156 - Example function in production code |
16 | | -- [ ] demo/app.py:160 - Magic number: 20 - use named constant |
17 | | -- [ ] demo/app.py:169 - Function 'demo_error' missing return type (suggested: -> Dict) |
18 | | -- [ ] demo/app.py:169 - Example function in production code |
19 | | -- [ ] demo/app.py:183 - Example function in production code |
20 | | -- [ ] demo/app.py:194 - Magic number: 20 - use named constant |
21 | | -- [ ] demo/app.py:226 - Magic number: 50 - use named constant |
22 | | -- [ ] demo/app.py:247 - module execution block |
23 | | -- [ ] demo/load_generator.py:13 - Duplicate import: urllib |
24 | | -- [ ] demo/load_generator.py:13 - Duplicate import: 'urllib' (first at line 12) |
25 | | -- [ ] demo/load_generator.py:24 - Function 'weighted_choice' missing return type (suggested: -> Any) |
26 | | -- [ ] demo/load_generator.py:35 - Function 'main' missing return type (suggested: -> None) |
27 | | -- [ ] demo/load_generator.py:35 - standalone main function |
28 | | -- [ ] demo/load_generator.py:62 - module execution block |
29 | | -- [ ] examples/async-usage/main.py:36 - Magic number: 200 - use named constant |
30 | | -- [ ] examples/async-usage/main.py:55 - standalone main function |
31 | | -- [ ] examples/async-usage/main.py:91 - Magic number: 19 - use named constant |
32 | | -- [ ] examples/async-usage/main.py:99 - module execution block |
33 | | -- [ ] examples/auto-log/main.py:31 - Magic number: 1001 - use named constant |
34 | | -- [ ] examples/auto-log/main.py:67 - module execution block |
35 | | -- [ ] examples/auto-log/main.py:73 - Magic number: 19.99 - use named constant |
36 | | -- [ ] examples/auto-log/main.py:76 - Magic number: 42 - use named constant |
37 | | -- [ ] examples/bash-wrapper/main.py:60 - Function 'main' missing return type (suggested: -> None) |
38 | | -- [ ] examples/bash-wrapper/main.py:60 - standalone main function |
39 | | -- [ ] examples/bash-wrapper/main.py:82 - module execution block |
40 | | -- [ ] examples/basic-usage/main.py:4 - Unused import: 'Logger' |
41 | | -- [ ] examples/basic-usage/main.py:25 - module execution block |
42 | | -- [ ] examples/click-integration/demo_basic.py:30 - Function 'cli' missing return type (suggested: -> None) |
43 | | -- [ ] examples/click-integration/demo_basic.py:37 - Function 'greet' missing return type (suggested: -> None) |
44 | | -- [ ] examples/click-integration/demo_basic.py:44 - Function 'process' missing return type (suggested: -> None) |
45 | | -- [ ] examples/click-integration/demo_basic.py:71 - module execution block |
46 | | -- [ ] examples/click-integration/demo_configure.py:26 - Function 'cli' missing return type (suggested: -> None) |
47 | | -- [ ] examples/click-integration/demo_configure.py:35 - Function 'deploy' missing return type (suggested: -> Dict) |
48 | | -- [ ] examples/click-integration/demo_configure.py:44 - Function 'migrate' missing return type (suggested: -> Dict) |
49 | | -- [ ] examples/click-integration/demo_configure.py:50 - module execution block |
50 | | -- [ ] examples/click-integration/demo_formats.py:15 - Function 'make_entry' missing return type (suggested: -> Any) |
51 | | -- [ ] examples/click-integration/demo_formats.py:20 - Magic number: 2300.0 - use named constant |
52 | | -- [ ] examples/click-integration/demo_formats.py:25 - Magic number: 2026 - use named constant |
53 | | -- [ ] examples/click-integration/demo_formats.py:41 - Function 'demo' missing return type (suggested: -> None) |
54 | | -- [ ] examples/click-integration/demo_formats.py:48 - Magic number: 500 - use named constant |
55 | | -- [ ] examples/click-integration/demo_formats.py:70 - module execution block |
56 | | -- [ ] examples/configure/main.py:59 - module execution block |
57 | | -- [ ] examples/configure/main.py:62 - Magic number: 99.99 - use named constant |
58 | | -- [ ] examples/configure/main.py:72 - Magic number: 50.0 - use named constant |
59 | | -- [ ] examples/configure/main.py:88 - Magic number: 500 - use named constant |
60 | | -- [ ] examples/csv-sink/main.py:30 - module execution block |
61 | | -- [ ] examples/csv-sink/main.py:34 - Magic number: 14 - use named constant |
62 | | -- [ ] examples/env-config/main.py:24 - Unused import: 'annotations' |
63 | | -- [ ] examples/env-config/main.py:109 - Magic number: 42 - use named constant |
64 | | -- [ ] examples/env-config/main.py:117 - module execution block |
65 | | -- [ ] examples/env-config/main.py:120 - Magic number: 99.99 - use named constant |
66 | | -- [ ] examples/env-config/main.py:158 - Magic number: 500 - use named constant |
67 | | -- [ ] examples/env-tagger/main.py:36 - Function 'demo_env_tagger' missing return type (suggested: -> Dict) |
68 | | -- [ ] examples/env-tagger/main.py:36 - Example function in production code |
69 | | -- [ ] examples/env-tagger/main.py:51 - Magic number: 42 - use named constant |
70 | | -- [ ] examples/env-tagger/main.py:71 - Function 'demo_dynamic_router' missing return type (suggested: -> Any) |
71 | | -- [ ] examples/env-tagger/main.py:71 - Example function in production code |
72 | | -- [ ] examples/env-tagger/main.py:102 - Function 'demo_diff_tracker' missing return type (suggested: -> Any) |
73 | | -- [ ] examples/env-tagger/main.py:102 - Example function in production code |
74 | | -- [ ] examples/env-tagger/main.py:124 - module execution block |
75 | | -- [ ] examples/grpc-service/client.py:22 - Unused import: 'annotations' |
76 | | -- [ ] examples/grpc-service/client.py:26 - Unused import: 'time' |
77 | | -- [ ] examples/grpc-service/client.py:44 - Function 'run_demo' missing return type (suggested: -> None) |
78 | | -- [ ] examples/grpc-service/client.py:61 - Magic number: 1234.5 - use named constant |
79 | | -- [ ] examples/grpc-service/client.py:76 - Magic number: 45678.0 - use named constant |
80 | | -- [ ] examples/grpc-service/client.py:104 - Function 'generate_requests' missing return type (suggested: -> None) |
81 | | -- [ ] examples/grpc-service/client.py:129 - Magic number: 20 - use named constant |
82 | | -- [ ] examples/grpc-service/client.py:151 - module execution block |
83 | | -- [ ] examples/grpc-service/nfo_pb2.py:15 - Magic number: 31 - use named constant |
84 | | -- [ ] examples/grpc-service/nfo_pb2.py:39 - Magic number: 19 - use named constant |
85 | | -- [ ] examples/grpc-service/nfo_pb2.py:40 - Magic number: 247 - use named constant |
86 | | -- [ ] examples/grpc-service/nfo_pb2_grpc.py:4 - Unused import: 'warnings' |
87 | | -- [ ] examples/grpc-service/nfo_pb2_grpc.py:20 - String concatenation can be converted to f-string |
88 | | -- [ ] examples/grpc-service/nfo_pb2_grpc.py:33 - LLM-style docstring in __init__ |
89 | | -- [ ] examples/grpc-service/nfo_pb2_grpc.py:66 - Function 'LogCall' missing return type (suggested: -> None) |
90 | | -- [ ] examples/grpc-service/nfo_pb2_grpc.py:71 - NotImplementedError - incomplete implementation |
91 | | -- [ ] examples/grpc-service/nfo_pb2_grpc.py:73 - Function 'BatchLog' missing return type (suggested: -> None) |
92 | | -- [ ] examples/grpc-service/nfo_pb2_grpc.py:78 - NotImplementedError - incomplete implementation |
93 | | -- [ ] examples/grpc-service/nfo_pb2_grpc.py:85 - NotImplementedError - incomplete implementation |
94 | | -- [ ] examples/grpc-service/nfo_pb2_grpc.py:95 - Function 'add_NfoLoggerServicer_to_server' missing return type (suggested: -> None) |
95 | | -- [ ] examples/grpc-service/server.py:23 - Unused import: 'annotations' |
96 | | -- [ ] examples/grpc-service/server.py:28 - Unused import: 'time' |
97 | | -- [ ] examples/grpc-service/server.py:46 - Unused import: 'CSVSink' |
98 | | -- [ ] examples/grpc-service/server.py:129 - Function 'LogCall' missing return type (suggested: -> Any) |
99 | | -- [ ] examples/grpc-service/server.py:133 - Function 'BatchLog' missing return type (suggested: -> Any) |
100 | | -- [ ] examples/grpc-service/server.py:170 - Magic number: 50 - use named constant |
101 | | -- [ ] examples/grpc-service/server.py:208 - Function 'serve' missing return type (suggested: -> None) |
102 | | -- [ ] examples/grpc-service/server.py:229 - module execution block |
103 | | -- [ ] examples/http-service/main.py:24 - Unused import: 'annotations' |
104 | | -- [ ] examples/http-service/main.py:28 - Unused import: 'time' |
105 | | -- [ ] examples/http-service/main.py:168 - Magic number: 50 - use named constant |
106 | | -- [ ] examples/http-service/main.py:199 - module execution block |
107 | | -- [ ] examples/markdown-sink/main.py:30 - module execution block |
108 | | -- [ ] examples/multi-sink/main.py:50 - module execution block |
109 | | -- [ ] examples/multi-sink/main.py:54 - Magic number: 20 - use named constant |
110 | | -- [ ] examples/sqlite-sink/main.py:34 - module execution block |
111 | | -- [ ] examples/sqlite-sink/main.py:38 - Magic number: 42 - use named constant |
112 | | -- [ ] examples/sqlite-sink/main.py:60 - Magic number: 19 - use named constant |
113 | | -- [ ] examples/sqlite-sink/main.py:60 - Magic number: 30 - use named constant |
114 | 49 | - [ ] nfo/__main__.py:16 - Unused import: 'annotations' |
115 | 50 | - [ ] nfo/__main__.py:99 - Duplicate import: 'LogEntry' (first at line 63) |
116 | 51 | - [ ] nfo/__main__.py:141 - Duplicate import: 'LogEntry' (first at line 63) |
|
0 commit comments