Skip to content

Commit cffc07d

Browse files
refactor: ruff check --fix + ruff format autofixes
1 parent 42f2ec4 commit cffc07d

50 files changed

Lines changed: 2134 additions & 1384 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.taskill/state.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"last_run_iso": "2026-04-25T18:20:37.662138+00:00",
3+
"last_commit_sha": "42f2ec450d50110a271b47c4b9efeb43516389b2",
4+
"last_coverage_pct": null,
5+
"last_failed_tests": null,
6+
"last_sumd_hash": null,
7+
"last_todo_hash": "2c1fc90a02108672",
8+
"last_readme_hash": "1d3fbc1d4bc73090",
9+
"file_mtimes": {}
10+
}

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,16 @@
22

33
## [Unreleased]
44

5+
6+
- docs(docs): add markdown output
7+
- docs(docs): update README
8+
- docs: regenerate documentation
9+
- refactor(docs): code analysis engine
10+
- refactor(docs): configuration management system
11+
- fix: repair syntax errors and module-level definitions
12+
- feat(tests): add tests for code analysis engine
13+
- feat(docs): code analysis engine
14+
515
## [3.0.33] - 2026-04-20
616

717
### Docs

README.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -526,3 +526,20 @@ code2docs/
526526
## License
527527
528528
Licensed under Apache-2.0.
529+
530+
<!-- taskill:status:start -->
531+
532+
## Status
533+
534+
_Last updated by [taskill](https://github.com/oqlos/taskill) at 2026-04-25 18:20 UTC_
535+
536+
| Metric | Value |
537+
|---|---|
538+
| HEAD | `42f2ec4` |
539+
| Coverage | — |
540+
| Failing tests | — |
541+
| Commits in last cycle | 0 |
542+
543+
> No commits or file changes since the last run. The project state is unchanged; TODO.md shows a number of completed lints/tasks but there are still active issues to address.
544+
545+
<!-- taskill:status:end -->

TODO.md

Lines changed: 30 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -8,29 +8,6 @@
88

99
## ✅ Completed Tasks
1010

11-
- [x] code2docs/analyzers/dependency_scanner.py:11 - Expected an indented block after `except` clause
12-
- [x] code2docs/analyzers/endpoint_detector.py:7 - Unused import: 'Dict'
13-
- [x] code2docs/analyzers/docstring_extractor.py:3 - Unused import: 'ast'
14-
- [x] code2docs/analyzers/docstring_extractor.py:5 - Unused import: 'Path'
15-
- [x] code2docs/analyzers/docstring_extractor.py:6 - Unused import: 'Tuple'
16-
- [x] code2docs/analyzers/project_scanner.py:6 - Unused import: 'FAST_CONFIG'
17-
- [x] code2docs/config.py:11 - Expected `except` or `finally` after `try` block
18-
- [x] code2docs/config.py:13 - Expected a statement
19-
- [x] code2docs/config.py:13 - Expected an expression
20-
- [x] code2docs/config.py:32 - Example class in production code
21-
- [x] code2docs/config.py:11 - module execution block
22-
- [x] code2docs/examples/quickstart.py:11 - Unused import: 'analyze_and_document'
23-
- [x] code2docs/formatters/markdown.py:3 - Unused import: 'Optional'
24-
- [x] code2docs/generators/_registry_adapters.py:13 - Expected an indented block after `class` definition
25-
- [x] code2docs/generators/_registry_adapters.py:129 - Example class in production code
26-
- [x] code2docs/generators/_registry_adapters.py:13 - module execution block
27-
- [x] code2docs/generators/api_changelog_gen.py:6 - Unused import: 'Tuple'
28-
- [x] docs/examples/quickstart.py:11 - Unused import: 'analyze_and_document'
29-
- [x] examples/advanced_usage.py:32 - Unexpected indentation
30-
- [x] examples/advanced_usage.py:33 - Expected a statement
31-
- [x] examples/advanced_usage.py:40 - Unexpected indentation
32-
- [x] examples/quickstart.py:17 - Unexpected indentation
33-
- [x] examples/quickstart.py:21 - Expected a statement
3411

3512
## 📋 Current Issues
3613

@@ -235,4 +212,33 @@
235212

236213
---
237214

238-
*To execute all tasks, run: `prefact -a --execute-todos`*
215+
*To execute all tasks, run: `prefact -a --execute-todos`*
216+
217+
## Done (moved to CHANGELOG)
218+
219+
- [x] code2docs/analyzers/dependency_scanner.py:11 - Expected an indented block after `except` clause
220+
- [x] code2docs/config.py:11 - Expected `except` or `finally` after `try` block
221+
- [x] code2docs/formatters/markdown.py:3 - Unused import: 'Optional'
222+
- [x] code2docs/generators/_registry_adapters.py:13 - Expected an indented block after `class` definition
223+
- [x] code2docs/generators/api_changelog_gen.py:6 - Unused import: 'Tuple'
224+
- [x] docs/examples/quickstart.py:11 - Unused import: 'analyze_and_document'
225+
226+
## Done (moved to CHANGELOG)
227+
228+
- [x] code2docs/analyzers/endpoint_detector.py:7 - Unused import: 'Dict'
229+
- [x] code2docs/analyzers/docstring_extractor.py:3 - Unused import: 'ast'
230+
- [x] code2docs/analyzers/docstring_extractor.py:5 - Unused import: 'Path'
231+
- [x] code2docs/analyzers/docstring_extractor.py:6 - Unused import: 'Tuple'
232+
- [x] code2docs/analyzers/project_scanner.py:6 - Unused import: 'FAST_CONFIG'
233+
- [x] code2docs/config.py:13 - Expected a statement
234+
- [x] code2docs/config.py:13 - Expected an expression
235+
- [x] code2docs/config.py:32 - Example class in production code
236+
- [x] code2docs/config.py:11 - module execution block
237+
- [x] code2docs/examples/quickstart.py:11 - Unused import: 'analyze_and_document'
238+
- [x] code2docs/generators/_registry_adapters.py:129 - Example class in production code
239+
- [x] code2docs/generators/_registry_adapters.py:13 - module execution block
240+
- [x] examples/advanced_usage.py:32 - Unexpected indentation
241+
- [x] examples/advanced_usage.py:33 - Expected a statement
242+
- [x] examples/advanced_usage.py:40 - Unexpected indentation
243+
- [x] examples/quickstart.py:17 - Unexpected indentation
244+
- [x] examples/quickstart.py:21 - Expected a statement

code2docs/__init__.py

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,20 +5,23 @@
55
README.md, API references, module docs, examples, and architecture diagrams.
66
"""
77

8-
__version__ = '3.0.33'
9-
__author__ = 'Tom Sapletta'
10-
__all__ = ['Code2DocsConfig', 'generate_readme', 'generate_docs', 'analyze_and_document']
8+
__version__ = "3.0.33"
9+
__author__ = "Tom Sapletta"
10+
__all__ = ["Code2DocsConfig", "generate_readme", "generate_docs", "analyze_and_document"]
1111

1212

1313
def __getattr__(name):
1414
"""Lazy import heavy modules on first access."""
15-
if name == 'generate_readme':
15+
if name == "generate_readme":
1616
from .generators.readme_gen import generate_readme
17+
1718
return generate_readme
18-
if name == 'generate_docs':
19+
if name == "generate_docs":
1920
from .generators import generate_docs
21+
2022
return generate_docs
21-
if name == 'analyze_and_document':
23+
if name == "analyze_and_document":
2224
from .analyzers.project_scanner import analyze_and_document
25+
2326
return analyze_and_document
24-
raise AttributeError(f'module {__name__!r} has no attribute {name!r}')
27+
raise AttributeError(f"module {__name__!r} has no attribute {name!r}")

0 commit comments

Comments
 (0)