procclean 2.0.0__tar.gz → 2.0.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (24) hide show
  1. {procclean-2.0.0 → procclean-2.0.1}/PKG-INFO +1 -1
  2. {procclean-2.0.0 → procclean-2.0.1}/pyproject.toml +1 -1
  3. {procclean-2.0.0 → procclean-2.0.1}/src/procclean/cli/docs.py +5 -1
  4. {procclean-2.0.0 → procclean-2.0.1}/LICENSE +0 -0
  5. {procclean-2.0.0 → procclean-2.0.1}/README.md +0 -0
  6. {procclean-2.0.0 → procclean-2.0.1}/src/procclean/__init__.py +0 -0
  7. {procclean-2.0.0 → procclean-2.0.1}/src/procclean/__main__.py +0 -0
  8. {procclean-2.0.0 → procclean-2.0.1}/src/procclean/cli/__init__.py +0 -0
  9. {procclean-2.0.0 → procclean-2.0.1}/src/procclean/cli/commands.py +0 -0
  10. {procclean-2.0.0 → procclean-2.0.1}/src/procclean/cli/parser.py +0 -0
  11. {procclean-2.0.0 → procclean-2.0.1}/src/procclean/core/__init__.py +0 -0
  12. {procclean-2.0.0 → procclean-2.0.1}/src/procclean/core/actions.py +0 -0
  13. {procclean-2.0.0 → procclean-2.0.1}/src/procclean/core/constants.py +0 -0
  14. {procclean-2.0.0 → procclean-2.0.1}/src/procclean/core/filters.py +0 -0
  15. {procclean-2.0.0 → procclean-2.0.1}/src/procclean/core/memory.py +0 -0
  16. {procclean-2.0.0 → procclean-2.0.1}/src/procclean/core/models.py +0 -0
  17. {procclean-2.0.0 → procclean-2.0.1}/src/procclean/core/process.py +0 -0
  18. {procclean-2.0.0 → procclean-2.0.1}/src/procclean/formatters/__init__.py +0 -0
  19. {procclean-2.0.0 → procclean-2.0.1}/src/procclean/formatters/columns.py +0 -0
  20. {procclean-2.0.0 → procclean-2.0.1}/src/procclean/formatters/output.py +0 -0
  21. {procclean-2.0.0 → procclean-2.0.1}/src/procclean/tui/__init__.py +0 -0
  22. {procclean-2.0.0 → procclean-2.0.1}/src/procclean/tui/app.py +0 -0
  23. {procclean-2.0.0 → procclean-2.0.1}/src/procclean/tui/app.tcss +0 -0
  24. {procclean-2.0.0 → procclean-2.0.1}/src/procclean/tui/screens.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: procclean
3
- Version: 2.0.0
3
+ Version: 2.0.1
4
4
  Summary: Interactive TUI for exploring and cleaning up processes - find orphans, memory hogs, and kill them
5
5
  Keywords: cleanup,kill,memory,orphan,process,terminal,tui
6
6
  Author: Kaj Kowalski
@@ -3,7 +3,7 @@
3
3
 
4
4
  [project]
5
5
  name = "procclean"
6
- version = "2.0.0"
6
+ version = "2.0.1"
7
7
  description = "Interactive TUI for exploring and cleaning up processes - find orphans, memory hogs, and kill them"
8
8
  readme = "README.md"
9
9
  requires-python = ">=3.14"
@@ -150,8 +150,12 @@ def _extract_h2_sections(
150
150
  h2_starts: list[tuple[str, int]] = []
151
151
  for i, token in enumerate(tokens):
152
152
  if token.type == "heading_open" and token.tag == "h2":
153
+ # heading_open tokens always carry a source map; skip if absent
154
+ # rather than defaulting to 0, which would collapse section ranges.
155
+ if token.map is None:
156
+ continue
153
157
  title = tokens[i + 1].content
154
- start_line = token.map[0] # type: ignore[index]
158
+ start_line = token.map[0]
155
159
  h2_starts.append((title, start_line))
156
160
 
157
161
  h2_sections: list[tuple[str, int, int]] = []
File without changes
File without changes