pygittools 0.2.2__tar.gz → 0.3.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 (110) hide show
  1. {pygittools-0.2.2 → pygittools-0.3.1}/LICENSE +21 -21
  2. {pygittools-0.2.2 → pygittools-0.3.1}/PKG-INFO +63 -65
  3. pygittools-0.2.2/pygittools.egg-info/PKG-INFO → pygittools-0.3.1/README.md +58 -72
  4. pygittools-0.3.1/pyproject.toml +27 -0
  5. pygittools-0.2.2/pyproject.toml → pygittools-0.3.1/pyproject.toml.orig +23 -28
  6. {pygittools-0.2.2 → pygittools-0.3.1/src/pygittools}/__init__.py +10 -10
  7. {pygittools-0.2.2 → pygittools-0.3.1/src/pygittools}/__meta__.py +9 -9
  8. pygittools-0.3.1/src/pygittools/actions.py +322 -0
  9. pygittools-0.3.1/src/pygittools/actions_test.py +266 -0
  10. pygittools-0.3.1/src/pygittools/help.md +109 -0
  11. {pygittools-0.2.2 → pygittools-0.3.1/src/pygittools}/hooks.py +336 -336
  12. {pygittools-0.2.2 → pygittools-0.3.1/src/pygittools}/hooks_notify.py +101 -101
  13. {pygittools-0.2.2 → pygittools-0.3.1/src/pygittools}/hooks_patterns.py +134 -134
  14. {pygittools-0.2.2 → pygittools-0.3.1/src/pygittools}/hooks_patterns_test.py +91 -91
  15. {pygittools-0.2.2 → pygittools-0.3.1/src/pygittools}/hooks_push.py +77 -77
  16. {pygittools-0.2.2 → pygittools-0.3.1/src/pygittools}/hooks_push_test.py +82 -82
  17. {pygittools-0.2.2 → pygittools-0.3.1/src/pygittools}/hooks_ruff.py +104 -104
  18. {pygittools-0.2.2 → pygittools-0.3.1/src/pygittools}/main.py +109 -109
  19. {pygittools-0.2.2 → pygittools-0.3.1/src/pygittools}/mcp_server.py +8 -8
  20. {pygittools-0.2.2 → pygittools-0.3.1/src/pygittools}/merge.py +247 -247
  21. {pygittools-0.2.2 → pygittools-0.3.1/src/pygittools}/merge_test.py +165 -165
  22. {pygittools-0.2.2 → pygittools-0.3.1/src/pygittools}/tags_sync.py +394 -394
  23. {pygittools-0.2.2 → pygittools-0.3.1/src/pygittools}/tags_sync_test.py +162 -162
  24. {pygittools-0.2.2 → pygittools-0.3.1/src/pygittools}/tasks.py +472 -387
  25. {pygittools-0.2.2 → pygittools-0.3.1/src/pygittools}/tasks_query.py +251 -251
  26. {pygittools-0.2.2 → pygittools-0.3.1/src/pygittools}/tasks_query_test.py +96 -96
  27. {pygittools-0.2.2 → pygittools-0.3.1/src/pygittools}/tasks_test.py +292 -240
  28. {pygittools-0.2.2 → pygittools-0.3.1/src/pygittools}/tui/__init__.py +5 -5
  29. {pygittools-0.2.2 → pygittools-0.3.1/src/pygittools}/tui/app.py +118 -121
  30. {pygittools-0.2.2 → pygittools-0.3.1/src/pygittools}/tui/app_test.py +156 -119
  31. {pygittools-0.2.2 → pygittools-0.3.1/src/pygittools}/tui/branches.py +61 -43
  32. {pygittools-0.2.2 → pygittools-0.3.1/src/pygittools}/tui/branches_test.py +108 -92
  33. pygittools-0.3.1/src/pygittools/tui/changes_list.py +318 -0
  34. pygittools-0.3.1/src/pygittools/tui/changes_list_test.py +180 -0
  35. {pygittools-0.2.2 → pygittools-0.3.1/src/pygittools}/tui/colors.json +258 -258
  36. {pygittools-0.2.2 → pygittools-0.3.1/src/pygittools}/tui/commit_draft.py +50 -50
  37. {pygittools-0.2.2 → pygittools-0.3.1/src/pygittools}/tui/commit_draft_test.py +88 -88
  38. {pygittools-0.2.2 → pygittools-0.3.1/src/pygittools}/tui/conftest.py +65 -56
  39. {pygittools-0.2.2 → pygittools-0.3.1/src/pygittools}/tui/coverage_gaps_test.py +302 -300
  40. {pygittools-0.2.2 → pygittools-0.3.1/src/pygittools}/tui/git_colors.py +419 -607
  41. {pygittools-0.2.2 → pygittools-0.3.1/src/pygittools}/tui/git_colors_test.py +88 -85
  42. pygittools-0.3.1/src/pygittools/tui/git_worktrees.py +156 -0
  43. pygittools-0.3.1/src/pygittools/tui/git_worktrees_test.py +98 -0
  44. {pygittools-0.2.2 → pygittools-0.3.1/src/pygittools}/tui/input_context.py +203 -167
  45. pygittools-0.3.1/src/pygittools/tui/input_context_test.py +194 -0
  46. pygittools-0.3.1/src/pygittools/tui/keys.py +87 -0
  47. pygittools-0.3.1/src/pygittools/tui/log_list.py +113 -0
  48. {pygittools-0.2.2 → pygittools-0.3.1/src/pygittools}/tui/log_list_test.py +105 -118
  49. {pygittools-0.2.2 → pygittools-0.3.1/src/pygittools}/tui/pages/__init__.py +20 -17
  50. pygittools-0.3.1/src/pygittools/tui/pages/actions.py +332 -0
  51. pygittools-0.3.1/src/pygittools/tui/pages/actions_test.py +179 -0
  52. pygittools-0.3.1/src/pygittools/tui/pages/branches.py +171 -0
  53. pygittools-0.3.1/src/pygittools/tui/pages/help.py +59 -0
  54. pygittools-0.3.1/src/pygittools/tui/pages/home.py +215 -0
  55. pygittools-0.3.1/src/pygittools/tui/pages/no_repo.py +44 -0
  56. pygittools-0.3.1/src/pygittools/tui/pages/projects.py +99 -0
  57. {pygittools-0.2.2 → pygittools-0.3.1/src/pygittools}/tui/pages/task_editor.py +416 -392
  58. pygittools-0.3.1/src/pygittools/tui/pages/worktree_add.py +120 -0
  59. pygittools-0.3.1/src/pygittools/tui/pages_test.py +469 -0
  60. {pygittools-0.2.2 → pygittools-0.3.1/src/pygittools}/tui/project_label.py +30 -29
  61. {pygittools-0.2.2 → pygittools-0.3.1/src/pygittools}/tui/projects.py +111 -111
  62. {pygittools-0.2.2 → pygittools-0.3.1/src/pygittools}/tui/projects_test.py +162 -162
  63. {pygittools-0.2.2 → pygittools-0.3.1/src/pygittools}/tui/pygitweb_layout.py +149 -149
  64. {pygittools-0.2.2 → pygittools-0.3.1/src/pygittools}/tui/pygitweb_layout_test.py +131 -129
  65. {pygittools-0.2.2 → pygittools-0.3.1/src/pygittools}/tui/repo.py +26 -26
  66. {pygittools-0.2.2 → pygittools-0.3.1/src/pygittools}/tui/repo_test.py +26 -26
  67. pygittools-0.3.1/src/pygittools/tui/status_bar.py +39 -0
  68. pygittools-0.3.1/src/pygittools/tui/status_bar_test.py +45 -0
  69. pygittools-0.3.1/src/pygittools/tui/tabs.py +44 -0
  70. pygittools-0.3.1/src/pygittools/tui/tabs_test.py +28 -0
  71. {pygittools-0.2.2 → pygittools-0.3.1/src/pygittools}/tui/tasks_list.py +274 -274
  72. pygittools-0.3.1/src/pygittools/tui/tasks_list_test.py +50 -0
  73. {pygittools-0.2.2 → pygittools-0.3.1/src/pygittools}/tui/types.py +51 -47
  74. {pygittools-0.2.2 → pygittools-0.3.1/src/pygittools}/tui/worktree.py +121 -113
  75. {pygittools-0.2.2 → pygittools-0.3.1/src/pygittools}/tui/worktree_test.py +172 -162
  76. pygittools-0.3.1/src/pygittools/tui/worktrees_list.py +160 -0
  77. pygittools-0.3.1/src/pygittools/tui/worktrees_list_test.py +83 -0
  78. pygittools-0.2.2/README.md +0 -60
  79. pygittools-0.2.2/help.md +0 -56
  80. pygittools-0.2.2/hook_samples/README.md +0 -62
  81. pygittools-0.2.2/hook_samples/commit-msg.pattern +0 -24
  82. pygittools-0.2.2/hook_samples/post-commit.notify +0 -24
  83. pygittools-0.2.2/hook_samples/post-commit.push-remotes +0 -23
  84. pygittools-0.2.2/hook_samples/post-receive.notify +0 -27
  85. pygittools-0.2.2/hook_samples/pre-commit.ruff +0 -18
  86. pygittools-0.2.2/hook_samples/pre-receive.branch-permissions +0 -69
  87. pygittools-0.2.2/hook_samples/pre-receive.protected-pattern +0 -37
  88. pygittools-0.2.2/pygittools.egg-info/SOURCES.txt +0 -153
  89. pygittools-0.2.2/pygittools.egg-info/dependency_links.txt +0 -1
  90. pygittools-0.2.2/pygittools.egg-info/entry_points.txt +0 -2
  91. pygittools-0.2.2/pygittools.egg-info/requires.txt +0 -2
  92. pygittools-0.2.2/pygittools.egg-info/top_level.txt +0 -1
  93. pygittools-0.2.2/setup.cfg +0 -4
  94. pygittools-0.2.2/tui/changes_list.py +0 -329
  95. pygittools-0.2.2/tui/changes_list_test.py +0 -172
  96. pygittools-0.2.2/tui/draw.py +0 -33
  97. pygittools-0.2.2/tui/draw_test.py +0 -56
  98. pygittools-0.2.2/tui/input_context_test.py +0 -135
  99. pygittools-0.2.2/tui/log_list.py +0 -132
  100. pygittools-0.2.2/tui/pages/branches.py +0 -168
  101. pygittools-0.2.2/tui/pages/help.py +0 -65
  102. pygittools-0.2.2/tui/pages/home.py +0 -152
  103. pygittools-0.2.2/tui/pages/no_repo.py +0 -47
  104. pygittools-0.2.2/tui/pages/projects.py +0 -106
  105. pygittools-0.2.2/tui/pages_test.py +0 -213
  106. pygittools-0.2.2/tui/status_bar.py +0 -32
  107. pygittools-0.2.2/tui/status_bar_test.py +0 -38
  108. pygittools-0.2.2/tui/tabs.py +0 -71
  109. pygittools-0.2.2/tui/tabs_test.py +0 -16
  110. pygittools-0.2.2/tui/ucurses.py +0 -26
@@ -1,21 +1,21 @@
1
- MIT License
2
-
3
- Copyright (c) 2026 Will Bowers
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Will Bowers
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -1,72 +1,70 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pygittools
3
- Version: 0.2.2
3
+ Version: 0.3.1
4
4
  Summary: Hooks and task storage in Git
5
5
  License-Expression: MIT
6
- Requires-Python: >=3.11
7
- Description-Content-Type: text/markdown
8
6
  License-File: LICENSE
7
+ Requires-Dist: abcreg==0.2.0
9
8
  Requires-Dist: pygit2>=1.12.0
10
- Requires-Dist: uni-curses>=3.1.2
11
- Dynamic: license-file
12
-
13
- # PyGitTools
14
-
15
- Hooks, tooling, and pygit2 workflows used by PyGitWeb. Can be used headless for many purposes.
16
-
17
- ## PGT
18
-
19
- PGT is a command line curses application you can use to make commits, switch branches and repos, and do other basic git tasks. Keybinds:
20
- - Arrow keys or `j`/`k` to navigate
21
- - `Enter` to confirm actions, stage or unstage files or categories
22
- - `Space` to collapse menus
23
- - `ctrl-c` or `esc` to exit.
24
-
25
- To run from the repo root, use `uv run pgt`.
26
-
27
- ## Hook framework
28
-
29
- `pygittools.hooks` provides a thin `Hook` base class plus one subclass per git hook type
30
- (client- and server-side). Receive-pack hooks (`PreReceive`, `PostReceive`) parse their
31
- ref-update lines via `parse_ref_updates(stdin)`.
32
-
33
- `pygittools.hooks_notify` adds `PreReceiveNotify` / `PostReceiveNotify`: minimal hook
34
- variants that POST `?project=<name>` to a pygitweb `/_internal/notify` endpoint so its
35
- long-poll `updates=true` subscribers wake up immediately on each push. Notification
36
- failures never reject the push.
37
-
38
- See `hook_samples/` for ready-to-use scripts.
39
-
40
- ## MCP task server
41
-
42
- Boards, tasks, and comments stored in Git can be exposed to AI tools via MCP.
43
-
44
- Configure the repository path with `PYGITTOOLS_REPO`, or set `PYGITWEB_PROJECTROOT` and pass a
45
- `project` argument to each tool. When neither is set, the server discovers a repo from the current
46
- working directory.
47
-
48
- Run locally:
49
-
50
- ```bash
51
- PYGITTOOLS_REPO=/path/to/repo uv run pygittools-mcp
52
- ```
53
-
54
- Cursor project config (`.cursor/mcp.json`):
55
-
56
- ```json
57
- {
58
- "mcpServers": {
59
- "pygittools-tasks": {
60
- "command": "uv",
61
- "args": ["run", "--directory", "/path/to/pygitweb", "pygittools-mcp"],
62
- "env": {
63
- "PYGITTOOLS_REPO": "/path/to/your/repo"
64
- }
65
- }
66
- }
67
- }
68
- ```
69
-
70
- Tools: `list_boards_tool`, `list_tasks_tool`, `get_task_tool`, `board_by_status_tool`.
71
- Resources: `board://{board_name}`, `task://{task_ref}`.
9
+ Requires-Dist: pyratatui>=0.3.0
10
+ Requires-Python: >=3.12
11
+ Description-Content-Type: text/markdown
72
12
 
13
+ # PyGitTools
14
+
15
+ Hooks, tooling, and pygit2 workflows used by PyGitWeb. Can be used headless for many purposes.
16
+
17
+ ## PGT
18
+
19
+ `pgt` is a terminal UI for commits, branches, tasks, and worktrees. The home page has **Status**, **Log**, **Tasks**, and **Worktrees** tabs. `H` / `L` switch tabs, `J` / `K` move the selection, `Q` or `Ctrl-C` quits, and `?` opens help. On **Status**, `!` or the Actions row runs project scripts from `pyproject.toml` or `actions.toml`. Full key bindings are in the in-app help (`src/pygittools/help.md`).
20
+
21
+ To run from the repo root, use `uv run pgt`.
22
+
23
+ Task objects may include `points`, a Fibonacci story-point value: `0`, `1`, `2`, `3`, `5`, `8`, `13`, or `21`. Leave it unset when the task is unestimated.
24
+
25
+ ## Hook framework
26
+
27
+ `pygittools.hooks` provides a thin `Hook` base class plus one subclass per git hook type
28
+ (client- and server-side). Receive-pack hooks (`PreReceive`, `PostReceive`) parse their
29
+ ref-update lines via `parse_ref_updates(stdin)`.
30
+
31
+ `pygittools.hooks_notify` adds `PreReceiveNotify` / `PostReceiveNotify`: minimal hook
32
+ variants that POST `?project=<name>` to a pygitweb `/_internal/notify` endpoint so its
33
+ long-poll `updates=true` subscribers wake up immediately on each push. Notification
34
+ failures never reject the push.
35
+
36
+ See `hook_samples/` for ready-to-use scripts.
37
+
38
+ ## MCP task server
39
+
40
+ Boards, tasks, and comments stored in Git can be exposed to AI tools via MCP.
41
+
42
+ Configure the repository path with `PYGITTOOLS_REPO`, or set `PYGITWEB_PROJECTROOT` and pass a
43
+ `project` argument to each tool. When neither is set, the server discovers a repo from the current
44
+ working directory.
45
+
46
+ Run locally:
47
+
48
+ ```bash
49
+ PYGITTOOLS_REPO=/path/to/repo uv run pygittools-mcp
50
+ ```
51
+
52
+ Cursor project config (`.cursor/mcp.json`):
53
+
54
+ ```json
55
+ {
56
+ "mcpServers": {
57
+ "pygittools-tasks": {
58
+ "command": "uv",
59
+ "args": ["run", "--directory", "/path/to/pygitweb", "pygittools-mcp"],
60
+ "env": {
61
+ "PYGITTOOLS_REPO": "/path/to/your/repo"
62
+ }
63
+ }
64
+ }
65
+ }
66
+ ```
67
+
68
+ Tools: `list_boards_tool`, `list_tasks_tool`, `get_task_tool`, `board_by_status_tool`.
69
+ Resources: `board://{board_name}`, `task://{task_ref}`.
70
+
@@ -1,72 +1,58 @@
1
- Metadata-Version: 2.4
2
- Name: pygittools
3
- Version: 0.2.2
4
- Summary: Hooks and task storage in Git
5
- License-Expression: MIT
6
- Requires-Python: >=3.11
7
- Description-Content-Type: text/markdown
8
- License-File: LICENSE
9
- Requires-Dist: pygit2>=1.12.0
10
- Requires-Dist: uni-curses>=3.1.2
11
- Dynamic: license-file
12
-
13
- # PyGitTools
14
-
15
- Hooks, tooling, and pygit2 workflows used by PyGitWeb. Can be used headless for many purposes.
16
-
17
- ## PGT
18
-
19
- PGT is a command line curses application you can use to make commits, switch branches and repos, and do other basic git tasks. Keybinds:
20
- - Arrow keys or `j`/`k` to navigate
21
- - `Enter` to confirm actions, stage or unstage files or categories
22
- - `Space` to collapse menus
23
- - `ctrl-c` or `esc` to exit.
24
-
25
- To run from the repo root, use `uv run pgt`.
26
-
27
- ## Hook framework
28
-
29
- `pygittools.hooks` provides a thin `Hook` base class plus one subclass per git hook type
30
- (client- and server-side). Receive-pack hooks (`PreReceive`, `PostReceive`) parse their
31
- ref-update lines via `parse_ref_updates(stdin)`.
32
-
33
- `pygittools.hooks_notify` adds `PreReceiveNotify` / `PostReceiveNotify`: minimal hook
34
- variants that POST `?project=<name>` to a pygitweb `/_internal/notify` endpoint so its
35
- long-poll `updates=true` subscribers wake up immediately on each push. Notification
36
- failures never reject the push.
37
-
38
- See `hook_samples/` for ready-to-use scripts.
39
-
40
- ## MCP task server
41
-
42
- Boards, tasks, and comments stored in Git can be exposed to AI tools via MCP.
43
-
44
- Configure the repository path with `PYGITTOOLS_REPO`, or set `PYGITWEB_PROJECTROOT` and pass a
45
- `project` argument to each tool. When neither is set, the server discovers a repo from the current
46
- working directory.
47
-
48
- Run locally:
49
-
50
- ```bash
51
- PYGITTOOLS_REPO=/path/to/repo uv run pygittools-mcp
52
- ```
53
-
54
- Cursor project config (`.cursor/mcp.json`):
55
-
56
- ```json
57
- {
58
- "mcpServers": {
59
- "pygittools-tasks": {
60
- "command": "uv",
61
- "args": ["run", "--directory", "/path/to/pygitweb", "pygittools-mcp"],
62
- "env": {
63
- "PYGITTOOLS_REPO": "/path/to/your/repo"
64
- }
65
- }
66
- }
67
- }
68
- ```
69
-
70
- Tools: `list_boards_tool`, `list_tasks_tool`, `get_task_tool`, `board_by_status_tool`.
71
- Resources: `board://{board_name}`, `task://{task_ref}`.
72
-
1
+ # PyGitTools
2
+
3
+ Hooks, tooling, and pygit2 workflows used by PyGitWeb. Can be used headless for many purposes.
4
+
5
+ ## PGT
6
+
7
+ `pgt` is a terminal UI for commits, branches, tasks, and worktrees. The home page has **Status**, **Log**, **Tasks**, and **Worktrees** tabs. `H` / `L` switch tabs, `J` / `K` move the selection, `Q` or `Ctrl-C` quits, and `?` opens help. On **Status**, `!` or the Actions row runs project scripts from `pyproject.toml` or `actions.toml`. Full key bindings are in the in-app help (`src/pygittools/help.md`).
8
+
9
+ To run from the repo root, use `uv run pgt`.
10
+
11
+ Task objects may include `points`, a Fibonacci story-point value: `0`, `1`, `2`, `3`, `5`, `8`, `13`, or `21`. Leave it unset when the task is unestimated.
12
+
13
+ ## Hook framework
14
+
15
+ `pygittools.hooks` provides a thin `Hook` base class plus one subclass per git hook type
16
+ (client- and server-side). Receive-pack hooks (`PreReceive`, `PostReceive`) parse their
17
+ ref-update lines via `parse_ref_updates(stdin)`.
18
+
19
+ `pygittools.hooks_notify` adds `PreReceiveNotify` / `PostReceiveNotify`: minimal hook
20
+ variants that POST `?project=<name>` to a pygitweb `/_internal/notify` endpoint so its
21
+ long-poll `updates=true` subscribers wake up immediately on each push. Notification
22
+ failures never reject the push.
23
+
24
+ See `hook_samples/` for ready-to-use scripts.
25
+
26
+ ## MCP task server
27
+
28
+ Boards, tasks, and comments stored in Git can be exposed to AI tools via MCP.
29
+
30
+ Configure the repository path with `PYGITTOOLS_REPO`, or set `PYGITWEB_PROJECTROOT` and pass a
31
+ `project` argument to each tool. When neither is set, the server discovers a repo from the current
32
+ working directory.
33
+
34
+ Run locally:
35
+
36
+ ```bash
37
+ PYGITTOOLS_REPO=/path/to/repo uv run pygittools-mcp
38
+ ```
39
+
40
+ Cursor project config (`.cursor/mcp.json`):
41
+
42
+ ```json
43
+ {
44
+ "mcpServers": {
45
+ "pygittools-tasks": {
46
+ "command": "uv",
47
+ "args": ["run", "--directory", "/path/to/pygitweb", "pygittools-mcp"],
48
+ "env": {
49
+ "PYGITTOOLS_REPO": "/path/to/your/repo"
50
+ }
51
+ }
52
+ }
53
+ }
54
+ ```
55
+
56
+ Tools: `list_boards_tool`, `list_tasks_tool`, `get_task_tool`, `board_by_status_tool`.
57
+ Resources: `board://{board_name}`, `task://{task_ref}`.
58
+
@@ -0,0 +1,27 @@
1
+ [project]
2
+ name = "pygittools"
3
+ version = "0.3.1"
4
+ description = "Hooks and task storage in Git"
5
+ readme = "README.md"
6
+ license = "MIT"
7
+ license-files = ["LICENSE"]
8
+ requires-python = ">=3.12"
9
+ dependencies = [
10
+ "abcreg==0.2.0",
11
+ "pygit2>=1.12.0",
12
+ "pyratatui>=0.3.0",
13
+ ]
14
+
15
+ [project.scripts]
16
+ pgt = "pygittools.main:main"
17
+
18
+ [tool.setuptools]
19
+ packages = [
20
+ "pygittools",
21
+ "pygittools.tui",
22
+ "pygittools.tui.pages",
23
+ ]
24
+
25
+ [build-system]
26
+ requires = ["uv_build>=0.12.23,<0.13"]
27
+ build-backend = "uv_build"
@@ -1,28 +1,23 @@
1
- [build-system]
2
- requires = ["setuptools>=61", "wheel"]
3
- build-backend = "setuptools.build_meta"
4
-
5
- [project]
6
- name = "pygittools"
7
- version = "0.2.2"
8
- description = "Hooks and task storage in Git"
9
- readme = "README.md"
10
- license = "MIT"
11
- license-files = ["LICENSE"]
12
- requires-python = ">=3.11"
13
- dependencies = [
14
- "pygit2>=1.12.0",
15
- "uni-curses>=3.1.2",
16
- ]
17
-
18
- [project.scripts]
19
- pgt = "pygittools.main:main"
20
-
21
- [tool.setuptools]
22
- packages = ["pygittools", "pygittools.tui", "pygittools.tui.pages"]
23
-
24
- [tool.setuptools.package-dir]
25
- pygittools = "."
26
-
27
- [tool.setuptools.package-data]
28
- pygittools = ["hook_samples/**/*", "help.md", "tui/colors.json"]
1
+ [project]
2
+ name = "pygittools"
3
+ version = "0.3.1"
4
+ description = "Hooks and task storage in Git"
5
+ readme = "README.md"
6
+ license = "MIT"
7
+ license-files = ["LICENSE"]
8
+ requires-python = ">=3.12"
9
+ dependencies = [
10
+ "abcreg==0.2.0",
11
+ "pygit2>=1.12.0",
12
+ "pyratatui>=0.3.0",
13
+ ]
14
+
15
+ [project.scripts]
16
+ pgt = "pygittools.main:main"
17
+
18
+ [tool.setuptools]
19
+ packages = ["pygittools", "pygittools.tui", "pygittools.tui.pages"]
20
+
21
+ [build-system]
22
+ requires = ["uv_build>=0.12.23,<0.13"]
23
+ build-backend = "uv_build"
@@ -1,10 +1,10 @@
1
- import pygittools.__meta__
2
-
3
- """
4
- Python hooks and metadata storage in Git
5
- """
6
- __version__ = pygittools.__meta__.__version__
7
- __author__ = pygittools.__meta__.__author__
8
- __description__ = pygittools.__meta__.__description__
9
- __url__ = pygittools.__meta__.__url__
10
- __license__ = pygittools.__meta__.__license__
1
+ import pygittools.__meta__
2
+
3
+ """
4
+ Python hooks and metadata storage in Git
5
+ """
6
+ __version__ = pygittools.__meta__.__version__
7
+ __author__ = pygittools.__meta__.__author__
8
+ __description__ = pygittools.__meta__.__description__
9
+ __url__ = pygittools.__meta__.__url__
10
+ __license__ = pygittools.__meta__.__license__
@@ -1,9 +1,9 @@
1
- """
2
- Metadata for PyGitTools - this is the canonical source of all information below.
3
- """
4
-
5
- __version__ = "0.2.0"
6
- __author__ = "Will Bowers"
7
- __license__ = "MIT"
8
- __description__ = "Python hooks and metadata storage in Git"
9
- __url__ = "https://pygitweb.com"
1
+ """
2
+ Metadata for PyGitTools - this is the canonical source of all information below.
3
+ """
4
+
5
+ __version__ = "0.3.1"
6
+ __author__ = "Will Bowers"
7
+ __license__ = "MIT"
8
+ __description__ = "Python hooks and metadata storage in Git"
9
+ __url__ = "https://pygitweb.com"