Skip to content

Latest commit

 

History

History
171 lines (165 loc) · 10.3 KB

File metadata and controls

171 lines (165 loc) · 10.3 KB

TODO

Generated by: prefact v0.1.30 Generated on: 2026-03-30T09:23:01.462365 Total issues: 261 active, 0 completed


📋 Current Issues

  • demo/load_generator.py:13 - Duplicate import: urllib
  • demo/load_generator.py:13 - Duplicate import: 'urllib' (first at line 12)
  • demo/load_generator.py:24 - Function 'weighted_choice' missing return type (suggested: -> Any)
  • demo/load_generator.py:35 - Function 'main' missing return type (suggested: -> None)
  • demo/load_generator.py:57 - String concatenation can be converted to f-string
  • demo/load_generator.py:50 - String concatenation can be converted to f-string
  • demo/load_generator.py:52 - String concatenation can be converted to f-string
  • demo/load_generator.py:35 - standalone main function
  • demo/load_generator.py:62 - module execution block
  • nfo/binary_router.py:8 - Unused import: 'annotations'
  • nfo/binary_router.py:16 - LLM-style docstring in BinaryAwareRouter
  • nfo/auto.py:27 - Unused Sequence imported from typing
  • nfo/auto.py:27 - Unused Union imported from typing
  • nfo/auto.py:22 - Unused import: 'annotations'
  • nfo/auto.py:58 - LLM-style docstring in auto_log
  • nfo/auto.py:141 - LLM-style docstring in auto_log_by_name
  • nfo/buffered_sink.py:13 - Unused import time
  • nfo/buffered_sink.py:14 - Unused Optional imported from typing
  • nfo/buffered_sink.py:8 - Unused import: 'annotations'
  • nfo/buffered_sink.py:20 - LLM-style docstring in AsyncBufferedSink
  • examples/http-service/main.py:28 - Unused import time
  • examples/http-service/main.py:51 - Unused JSONResponse imported from fastapi.responses
  • examples/http-service/main.py:24 - Unused import: 'annotations'
  • examples/http-service/main.py:168 - Magic number: 50 - use named constant
  • examples/http-service/main.py:199 - module execution block
  • nfo/decorators/init.py:14 - Relative import (level=1): '._core'
  • nfo/decorators/init.py:24 - Relative import (level=1): '._catch'
  • nfo/decorators/init.py:25 - Relative import (level=1): '._decision'
  • nfo/decorators/init.py:14 - Unused F imported from _core
  • nfo/decorators/init.py:11 - Unused import: 'annotations'
  • nfo/decorators/init.py:14 - Unused import: 'F'
  • nfo/click.py:7 - Unused import: 'annotations'
  • nfo/click.py:143 - Duplicate import: '_parse_sink_spec' (first at line 105)
  • nfo/main.py:52 - Function 'cmd_run' missing return type (suggested: -> None)
  • nfo/main.py:133 - Function 'cmd_logs' missing return type (suggested: -> None)
  • nfo/main.py:207 - Function 'cmd_version' missing return type (suggested: -> None)
  • nfo/main.py:16 - Unused import: 'annotations'
  • nfo/main.py:228 - Duplicate import: 'LogEntry' (first at line 54)
  • nfo/main.py:269 - Duplicate import: 'Logger' (first at line 34)
  • nfo/main.py:269 - Duplicate import: 'SQLiteSink' (first at line 34)
  • nfo/main.py:323 - Magic number: 50 - use named constant
  • nfo/main.py:424 - Magic number: 20 - use named constant
  • nfo/main.py:130 - Magic number: 127 - use named constant
  • nfo/main.py:383 - standalone main function
  • nfo/main.py:459 - module execution block
  • nfo/decorators/_catch.py:13 - Relative import (level=1): '._core'
  • nfo/decorators/_catch.py:14 - Relative import (level=1): '._extract'
  • nfo/decorators/_catch.py:9 - Unused TypeVar imported from typing
  • nfo/decorators/_catch.py:9 - Unused Union imported from typing
  • nfo/decorators/_catch.py:3 - Unused import: 'annotations'
  • nfo/configure.py:267 - String concatenation can be converted to f-string
  • nfo/configure.py:9 - Unused import: 'annotations'
  • nfo/configure.py:205 - Duplicate import: 'LLMSink' (first at line 194)
  • nfo/configure.py:61 - Magic number: 9090 - use named constant
  • nfo/configure.py:118 - LLM-style docstring in _read_env_config
  • nfo/configure.py:276 - LLM-style docstring in configure
  • nfo/decorators/_core.py:5 - Unused import functools
  • nfo/decorators/_core.py:6 - Unused import inspect
  • nfo/decorators/_core.py:8 - Unused import time
  • nfo/decorators/_decision.py:13 - Relative import (level=1): '._core'
  • nfo/decorators/_decision.py:3 - Unused import: 'annotations'
  • nfo/decorators/_decision.py:16 - LLM-style docstring in decision_log
  • nfo/decorators/_extract.py:3 - Unused import: 'annotations'
  • nfo/decorators/_log_call.py:13 - Relative import (level=1): '._core'
  • nfo/decorators/_log_call.py:14 - Relative import (level=1): '._extract'
  • nfo/decorators/_log_call.py:9 - Unused TypeVar imported from typing
  • nfo/decorators/_log_call.py:9 - Unused Union imported from typing
  • nfo/decorators/_log_call.py:3 - Unused import: 'annotations'
  • nfo/decorators/_log_call.py:33 - LLM-style docstring in log_call
  • nfo/env.py:197 - String concatenation can be converted to f-string
  • nfo/env.py:16 - Unused Any imported from typing
  • nfo/env.py:16 - Unused List imported from typing
  • nfo/env.py:10 - Unused import: 'annotations'
  • nfo/env.py:63 - Magic number: 12 - use named constant
  • nfo/env.py:122 - LLM-style docstring in DynamicRouter
  • nfo/extractors.py:66 - String concatenation can be converted to f-string
  • nfo/extractors.py:67 - String concatenation can be converted to f-string
  • nfo/extractors.py:7 - Unused import: 'annotations'
  • nfo/extractors.py:156 - Magic number in comparison: 44
  • nfo/extractors.py:156 - Magic number: 44 - use named constant
  • nfo/extractors.py:220 - Magic number in comparison: 12
  • nfo/extractors.py:177 - LLM-style docstring in register_extractor
  • nfo/fastapi_middleware.py:27 - Unused import: 'annotations'
  • nfo/fastapi_middleware.py:94 - Magic number in comparison: 300
  • nfo/fastapi_middleware.py:112 - Magic number in comparison: 500
  • nfo/fastapi_middleware.py:94 - Magic number: 200 - use named constant
  • nfo/json_sink.py:64 - String concatenation can be converted to f-string
  • nfo/json_sink.py:13 - Unused import os
  • nfo/json_sink.py:16 - Unused Any imported from typing
  • nfo/json_sink.py:16 - Unused Dict imported from typing
  • nfo/json_sink.py:22 - LLM-style docstring in JSONSink
  • nfo/llm.py:139 - String concatenation can be converted to f-string
  • nfo/llm.py:173 - String concatenation can be converted to f-string
  • nfo/llm.py:16 - Unused Any imported from typing
  • nfo/llm.py:16 - Unused Dict imported from typing
  • nfo/llm.py:12 - Unused import: 'annotations'
  • nfo/llm.py:157 - Magic number: 200 - use named constant
  • nfo/llm.py:89 - LLM-style docstring in LLMSink
  • nfo/log_flow.py:12 - Unused import: 'annotations'
  • nfo/log_flow.py:368 - Magic number: 80 - use named constant
  • nfo/log_flow.py:370 - Magic number: 12 - use named constant
  • nfo/log_flow.py:126 - LLM-style docstring in parse_jsonl
  • nfo/logged.py:25 - Unused import functools
  • nfo/logged.py:23 - Unused import: 'annotations'
  • nfo/logged.py:25 - Unused import: 'functools'
  • nfo/logged.py:64 - LLM-style docstring in logged
  • nfo/meta.py:7 - Unused Optional imported from typing
  • nfo/meta.py:3 - Unused import: 'annotations'
  • nfo/meta.py:7 - Unused import: 'Optional'
  • nfo/meta_decorators.py:11 - Unused import: 'annotations'
  • nfo/meta_decorators.py:83 - LLM-style docstring in meta_log
  • nfo/logger.py:10 - Unused redact_string imported from nfo.redact
  • nfo/logger.py:3 - Unused import: 'annotations'
  • nfo/logger.py:10 - Unused import: 'redact_string'
  • nfo/models.py:3 - Unused import: 'annotations'
  • nfo/pipeline_sink.py:268 - String concatenation can be converted to f-string
  • nfo/pipeline_sink.py:393 - String concatenation can be converted to f-string
  • nfo/pipeline_sink.py:418 - String concatenation can be converted to f-string
  • nfo/pipeline_sink.py:29 - Unused Callable imported from typing
  • nfo/pipeline_sink.py:23 - Unused import: 'annotations'
  • nfo/pipeline_sink.py:29 - Unused import: 'Callable'
  • nfo/pipeline_sink.py:67 - Magic number: 72 - use named constant
  • nfo/pipeline_sink.py:74 - Magic number: 40 - use named constant
  • nfo/pipeline_sink.py:301 - Magic number: 25 - use named constant
  • nfo/prometheus.py:11 - Unused import: 'annotations'
  • nfo/prometheus.py:34 - LLM-style docstring in PrometheusSink
  • nfo/redact.py:22 - String concatenation can be converted to f-string
  • nfo/redact.py:48 - String concatenation can be converted to f-string
  • nfo/redact.py:6 - Unused Set imported from typing
  • nfo/redact.py:3 - Unused import: 'annotations'
  • nfo/redact.py:6 - Unused import: 'Set'
  • nfo/redact.py:35 - LLM-style docstring in redact_value
  • nfo/redact.py:62 - LLM-style docstring in redact_args
  • nfo/ring_buffer_sink.py:9 - Unused import: 'annotations'
  • nfo/ring_buffer_sink.py:19 - LLM-style docstring in RingBufferSink
  • nfo/sinks.py:194 - String concatenation can be converted to f-string
  • nfo/sinks.py:6 - Unused import io
  • nfo/sinks.py:12 - Unused Any imported from typing
  • nfo/sinks.py:12 - Unused Dict imported from typing
  • tools/sync_pactown_com_dependency.py:7 - module execution block
  • nfo/webhook.py:13 - Duplicate import: urllib
  • nfo/webhook.py:13 - Duplicate import: 'urllib' (first at line 12)
  • nfo/webhook.py:14 - Unused List imported from typing
  • nfo/webhook.py:8 - Unused import: 'annotations'
  • nfo/webhook.py:14 - Unused import: 'List'
  • nfo/webhook.py:94 - Magic number: 16711680 - use named constant
  • nfo/webhook.py:94 - Magic number: 16755200 - use named constant
  • nfo/webhook.py:20 - LLM-style docstring in WebhookSink
  • nfo/terminal.py:86 - String concatenation can be converted to f-string
  • nfo/terminal.py:121 - String concatenation can be converted to f-string
  • nfo/terminal.py:219 - String concatenation can be converted to f-string
  • nfo/terminal.py:11 - Unused import: 'annotations'
  • nfo/terminal.py:224 - Duplicate import: 'Console' (first at line 156)
  • nfo/terminal.py:43 - Magic number: 120 - use named constant
  • nfo/terminal.py:98 - Magic number: 80 - use named constant
  • nfo/terminal.py:177 - Magic number: 30 - use named constant
  • nfo/terminal.py:164 - LLM-style docstring in _write_toon

To execute all tasks, run: prefact -a --execute-todos