repowatch 0.4.0__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.
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Mark Wharry
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.
@@ -0,0 +1,218 @@
1
+ Metadata-Version: 2.4
2
+ Name: repowatch
3
+ Version: 0.4.0
4
+ Summary: Every git repo under a folder, compared across all its remotes, with fast-forward-only sync and safe branch pruning.
5
+ Author: Mark Wharry
6
+ License-Expression: MIT
7
+ Project-URL: Homepage, https://github.com/markgwharry/repowatch
8
+ Project-URL: Issues, https://github.com/markgwharry/repowatch/issues
9
+ Project-URL: Changelog, https://github.com/markgwharry/repowatch/blob/main/CHANGELOG.md
10
+ Keywords: git,multi-repo,remotes,mirror,gitea,github,tui,textual
11
+ Classifier: Development Status :: 4 - Beta
12
+ Classifier: Environment :: Console
13
+ Classifier: Intended Audience :: Developers
14
+ Classifier: Operating System :: OS Independent
15
+ Classifier: Programming Language :: Python :: 3
16
+ Classifier: Programming Language :: Python :: 3.11
17
+ Classifier: Programming Language :: Python :: 3.12
18
+ Classifier: Programming Language :: Python :: 3.13
19
+ Classifier: Topic :: Software Development :: Version Control :: Git
20
+ Requires-Python: >=3.11
21
+ Description-Content-Type: text/markdown
22
+ License-File: LICENSE
23
+ Requires-Dist: textual>=0.80
24
+ Provides-Extra: dev
25
+ Requires-Dist: pytest>=8; extra == "dev"
26
+ Requires-Dist: ruff>=0.6; extra == "dev"
27
+ Dynamic: license-file
28
+
29
+ # repowatch
30
+
31
+ [![CI](https://github.com/markgwharry/repowatch/actions/workflows/ci.yml/badge.svg)](https://github.com/markgwharry/repowatch/actions/workflows/ci.yml)
32
+ [![PyPI](https://img.shields.io/pypi/v/repowatch)](https://pypi.org/project/repowatch/)
33
+ [![Python](https://img.shields.io/pypi/pyversions/repowatch)](https://pypi.org/project/repowatch/)
34
+ [![License: MIT](https://img.shields.io/badge/license-MIT-blue)](LICENSE)
35
+
36
+ **Every git repo under a folder, compared across all of its remotes.**
37
+
38
+ Point repowatch at your code folder. It finds every repo, then shows one row per repo with a column per remote, so you can see at a glance where each copy stands: local, GitHub, a self-hosted Gitea, a backup.
39
+
40
+ ![repowatch TUI](docs/screenshot.png)
41
+
42
+ It's built for people who keep the same code in more than one place, for example GitHub plus a work or home Gitea, or one machine at work and another at home. It answers three questions:
43
+
44
+ 1. **Where does everything stand?** A matrix of every repo against every remote.
45
+ 2. **Can it level them for me, safely?** `sync` fast-forwards your secondary remote and your local checkout to match the primary, in both directions. It never force-pushes or merges.
46
+ 3. **What's all this branch clutter?** `prune` deletes branches whose work is already in `main`, including squash-merged ones, and explains every branch it keeps.
47
+
48
+ ## Install
49
+
50
+ Requires Python 3.11+ and `git` on your PATH.
51
+
52
+ ```bash
53
+ pipx install repowatch # or: uv tool install repowatch
54
+ ```
55
+
56
+ From source:
57
+
58
+ ```bash
59
+ git clone https://github.com/markgwharry/repowatch && cd repowatch
60
+ pipx install .
61
+ ```
62
+
63
+ > On Windows, use Windows Terminal, which is the default on Windows 11. The legacy console mangles the arrows. In Git Bash, write paths with forward slashes (`./repowatch`), because backslashes get eaten.
64
+
65
+ ## Quick start
66
+
67
+ ```bash
68
+ repowatch ~/code # interactive matrix
69
+ repowatch ~/code --fetch # fetch every remote first
70
+ repowatch status ~/code # print the matrix once
71
+ repowatch status ~/code --json # machine-readable, for scripts and dashboards
72
+ repowatch init # write a commented config file
73
+ ```
74
+
75
+ Set `root` in the config and plain `repowatch` opens your code folder.
76
+
77
+ ## Reading the matrix
78
+
79
+ ```
80
+ Repo Branch Local github gitea Status
81
+ core-lib main 965f254 ✓ 965f254 = 965f254 = ok
82
+ cli-tool main e5c17be ✓ f4a93cd ↑2 f4a93cd ↑2 push
83
+ ticker main 5cd32d9 ✓ 5cd32d9 = e88d620 ↑1 mirror lag
84
+ work/tracker main 577c22d ✓ 5296d38 ↓1 577c22d = pull mirror lag
85
+ work/analysis main fe0af99 ~1 ?1 $1 883a7b7 ↑1 ↓1 c458ab1 ↑1 dirty untracked stash diverged
86
+ ```
87
+
88
+ Each remote cell shows that remote's tip of your current branch, and how your local HEAD compares with it:
89
+
90
+ | Symbol | Meaning |
91
+ |---|---|
92
+ | `=` | Same commit |
93
+ | `↑n` | Local has n commits the remote doesn't (push) |
94
+ | `↓n` | Remote has n commits local doesn't (pull) |
95
+ | `↑n ↓m` | Diverged |
96
+ | `—` | Branch doesn't exist on that remote |
97
+ | `✗` | Last fetch failed (offline, VPN down, auth) |
98
+ | cyan | A mirror remote is lagging. Expected; `sync` deals with it |
99
+
100
+ **Local** shows HEAD plus `+` staged, `~` modified, `?` untracked, `!` conflicts and `$` stashes, or `✓` when clean.
101
+
102
+ **Columns are labelled by host, not remote name.** `origin → github.com` and `upstream → github.com` both appear under `github`. Map your own hosts in the config.
103
+
104
+ ### TUI keys
105
+
106
+ | Key | Action |
107
+ |---|---|
108
+ | `r` | Rescan (local only, fast) |
109
+ | `f` / `F` | Fetch the selected repo / all repos |
110
+ | `s` / `S` | Sync the selected repo / all repos: shows the plan first, `y` applies it |
111
+ | `a` | Add a remote (pre-filled from a template) |
112
+ | `o` | Open the folder |
113
+ | `d` | Show only repos that need attention |
114
+ | `q` | Quit |
115
+
116
+ ## Sync
117
+
118
+ Keeps a **secondary** remote (e.g. Gitea) and your local checkout level with a **primary** remote (e.g. GitHub).
119
+
120
+ ```bash
121
+ repowatch sync # dry run: the plan, nothing changed
122
+ repowatch sync --apply
123
+ repowatch sync --apply --repo my-service --repo docs
124
+ ```
125
+
126
+ Everything is **fast-forward only**:
127
+
128
+ | Situation | What sync does |
129
+ |---|---|
130
+ | Primary ahead of secondary | Pushes primary's tip to secondary |
131
+ | Branch only on primary | Creates it on secondary |
132
+ | Secondary ahead of primary | Pushes secondary's tip to primary, so work done on the secondary flows up |
133
+ | Primary and secondary diverged | Flags it and touches nothing |
134
+ | Branch only on secondary | Flags it: could be new there, or deleted on primary |
135
+ | Local checkout behind and clean | Fast-forwards it |
136
+ | Local dirty, detached or diverged | Leaves it alone and flags it |
137
+ | Local has unpushed commits | Flags it. Pushing your own work stays your decision |
138
+
139
+ By default only `main`/`master` are synced and `dependabot/*` is skipped. Change `sync_branches` and `sync_exclude` (glob lists) in the config.
140
+
141
+ A protected branch on the primary rejects a secondary-ahead push. That's reported as a failed step and nothing else is affected. Unattended runs over SSH need a key without a passphrase, or a running agent; otherwise that remote shows as unreachable and is skipped.
142
+
143
+ ### Run sync on a schedule
144
+
145
+ ```bash
146
+ repowatch schedule # hourly via Windows Task Scheduler (silent, via pythonw)
147
+ repowatch schedule --every 30
148
+ repowatch schedule --remove
149
+ ```
150
+
151
+ Output goes to `sync.log` in the config folder and rotates at 1 MB. On macOS and Linux, `schedule` prints a crontab line for you to add.
152
+
153
+ ## Prune
154
+
155
+ Deletes stale branches on the primary remote.
156
+
157
+ ```bash
158
+ repowatch prune # dry run: what goes, and why the rest stay
159
+ repowatch prune --apply
160
+ repowatch prune --include-unmerged 180 # also abandoned branches, >180 days old, with no open PR
161
+ repowatch prune -v # also list merged branches it keeps
162
+ ```
163
+
164
+ | Kind | Meaning | Default |
165
+ |---|---|---|
166
+ | **merged** | Tip already in the default branch (merge, fast-forward or rebase) | Deleted |
167
+ | **squash-merged** | Its combined change is already in the default branch as one commit | Deleted |
168
+ | **unmerged** | Has commits the default branch doesn't | Kept and listed |
169
+
170
+ It never deletes the default branch, anything matching `prune_keep` (default `main`, `master`, `develop`, `release/*`), anything younger than `prune_min_age_days` (default 7), or the branch you have checked out. Unmerged branches are only deleted with `--include-unmerged`, and only after the GitHub CLI (`gh`) confirms they have no open PR. Without `gh`, they're never touched. Deletions are verified against the remote afterwards.
171
+
172
+ To stop branches piling up again: `gh repo edit OWNER/REPO --delete-branch-on-merge`.
173
+
174
+ ## Configuration
175
+
176
+ `repowatch init` writes a commented file to:
177
+
178
+ - Windows: `%APPDATA%\repowatch\config.toml`
179
+ - macOS / Linux: `~/.config/repowatch/config.toml`, or `$XDG_CONFIG_HOME/repowatch/config.toml`
180
+
181
+ ```toml
182
+ root = "~/code"
183
+ depth = 3 # folder levels to search
184
+ refresh_seconds = 30 # TUI local auto-refresh; 0 = off
185
+ fetch_timeout = 25 # seconds, per remote
186
+ column_order = ["github", "gitea"]
187
+ primary_labels = ["github"] # sync's source of truth; prune's target
188
+ mirror_labels = ["gitea"] # kept level by sync; lag shown as "mirror lag"
189
+ sync_branches = ["main", "master"]
190
+ sync_exclude = ["dependabot/*"]
191
+ prune_keep = ["main", "master", "develop", "release/*"]
192
+ prune_min_age_days = 7
193
+
194
+ [hosts] # host -> column label (exact match, then substring)
195
+ "git.example.internal" = "gitea"
196
+ "192.168.1.20" = "gitea"
197
+
198
+ [remote_templates] # pre-fills the TUI's add-remote dialog
199
+ gitea = "https://git.example.internal/{owner}/{repo}.git"
200
+ ```
201
+
202
+ Use `repowatch --config other.toml …` to point at a different file.
203
+
204
+ ## How it behaves
205
+
206
+ - **Remote columns are only as fresh as your last fetch.** `r` and the auto-refresh are local-only; `f`, `F`, `--fetch`, `sync` and `prune` go to the network.
207
+ - **It never prompts.** Terminal prompts, credential-manager pop-ups and interactive SSH are disabled. A remote that needs input shows `✗` and the reason, rather than hanging. Cached credentials (credential managers, keychain, ssh-agent) work normally.
208
+ - **Each remote is fetched separately, with a timeout**, so an unreachable Gitea doesn't hold up GitHub.
209
+ - **Discovery stops at the first `.git`.** It doesn't descend into repos, and it skips `node_modules`, `.venv`, `build` and similar.
210
+ - **Don't keep repos in a cloud-synced folder** (OneDrive, Dropbox, iCloud). Sync clients lock and duplicate files inside `.git`. Your remotes are the backup.
211
+
212
+ ## Contributing
213
+
214
+ Issues and PRs are welcome. See [CONTRIBUTING.md](CONTRIBUTING.md). The test suite builds throwaway repos with GitHub- and Gitea-style remotes for every state repowatch distinguishes, and runs on Windows, macOS and Linux.
215
+
216
+ ## Licence
217
+
218
+ [MIT](LICENSE)
@@ -0,0 +1,190 @@
1
+ # repowatch
2
+
3
+ [![CI](https://github.com/markgwharry/repowatch/actions/workflows/ci.yml/badge.svg)](https://github.com/markgwharry/repowatch/actions/workflows/ci.yml)
4
+ [![PyPI](https://img.shields.io/pypi/v/repowatch)](https://pypi.org/project/repowatch/)
5
+ [![Python](https://img.shields.io/pypi/pyversions/repowatch)](https://pypi.org/project/repowatch/)
6
+ [![License: MIT](https://img.shields.io/badge/license-MIT-blue)](LICENSE)
7
+
8
+ **Every git repo under a folder, compared across all of its remotes.**
9
+
10
+ Point repowatch at your code folder. It finds every repo, then shows one row per repo with a column per remote, so you can see at a glance where each copy stands: local, GitHub, a self-hosted Gitea, a backup.
11
+
12
+ ![repowatch TUI](docs/screenshot.png)
13
+
14
+ It's built for people who keep the same code in more than one place, for example GitHub plus a work or home Gitea, or one machine at work and another at home. It answers three questions:
15
+
16
+ 1. **Where does everything stand?** A matrix of every repo against every remote.
17
+ 2. **Can it level them for me, safely?** `sync` fast-forwards your secondary remote and your local checkout to match the primary, in both directions. It never force-pushes or merges.
18
+ 3. **What's all this branch clutter?** `prune` deletes branches whose work is already in `main`, including squash-merged ones, and explains every branch it keeps.
19
+
20
+ ## Install
21
+
22
+ Requires Python 3.11+ and `git` on your PATH.
23
+
24
+ ```bash
25
+ pipx install repowatch # or: uv tool install repowatch
26
+ ```
27
+
28
+ From source:
29
+
30
+ ```bash
31
+ git clone https://github.com/markgwharry/repowatch && cd repowatch
32
+ pipx install .
33
+ ```
34
+
35
+ > On Windows, use Windows Terminal, which is the default on Windows 11. The legacy console mangles the arrows. In Git Bash, write paths with forward slashes (`./repowatch`), because backslashes get eaten.
36
+
37
+ ## Quick start
38
+
39
+ ```bash
40
+ repowatch ~/code # interactive matrix
41
+ repowatch ~/code --fetch # fetch every remote first
42
+ repowatch status ~/code # print the matrix once
43
+ repowatch status ~/code --json # machine-readable, for scripts and dashboards
44
+ repowatch init # write a commented config file
45
+ ```
46
+
47
+ Set `root` in the config and plain `repowatch` opens your code folder.
48
+
49
+ ## Reading the matrix
50
+
51
+ ```
52
+ Repo Branch Local github gitea Status
53
+ core-lib main 965f254 ✓ 965f254 = 965f254 = ok
54
+ cli-tool main e5c17be ✓ f4a93cd ↑2 f4a93cd ↑2 push
55
+ ticker main 5cd32d9 ✓ 5cd32d9 = e88d620 ↑1 mirror lag
56
+ work/tracker main 577c22d ✓ 5296d38 ↓1 577c22d = pull mirror lag
57
+ work/analysis main fe0af99 ~1 ?1 $1 883a7b7 ↑1 ↓1 c458ab1 ↑1 dirty untracked stash diverged
58
+ ```
59
+
60
+ Each remote cell shows that remote's tip of your current branch, and how your local HEAD compares with it:
61
+
62
+ | Symbol | Meaning |
63
+ |---|---|
64
+ | `=` | Same commit |
65
+ | `↑n` | Local has n commits the remote doesn't (push) |
66
+ | `↓n` | Remote has n commits local doesn't (pull) |
67
+ | `↑n ↓m` | Diverged |
68
+ | `—` | Branch doesn't exist on that remote |
69
+ | `✗` | Last fetch failed (offline, VPN down, auth) |
70
+ | cyan | A mirror remote is lagging. Expected; `sync` deals with it |
71
+
72
+ **Local** shows HEAD plus `+` staged, `~` modified, `?` untracked, `!` conflicts and `$` stashes, or `✓` when clean.
73
+
74
+ **Columns are labelled by host, not remote name.** `origin → github.com` and `upstream → github.com` both appear under `github`. Map your own hosts in the config.
75
+
76
+ ### TUI keys
77
+
78
+ | Key | Action |
79
+ |---|---|
80
+ | `r` | Rescan (local only, fast) |
81
+ | `f` / `F` | Fetch the selected repo / all repos |
82
+ | `s` / `S` | Sync the selected repo / all repos: shows the plan first, `y` applies it |
83
+ | `a` | Add a remote (pre-filled from a template) |
84
+ | `o` | Open the folder |
85
+ | `d` | Show only repos that need attention |
86
+ | `q` | Quit |
87
+
88
+ ## Sync
89
+
90
+ Keeps a **secondary** remote (e.g. Gitea) and your local checkout level with a **primary** remote (e.g. GitHub).
91
+
92
+ ```bash
93
+ repowatch sync # dry run: the plan, nothing changed
94
+ repowatch sync --apply
95
+ repowatch sync --apply --repo my-service --repo docs
96
+ ```
97
+
98
+ Everything is **fast-forward only**:
99
+
100
+ | Situation | What sync does |
101
+ |---|---|
102
+ | Primary ahead of secondary | Pushes primary's tip to secondary |
103
+ | Branch only on primary | Creates it on secondary |
104
+ | Secondary ahead of primary | Pushes secondary's tip to primary, so work done on the secondary flows up |
105
+ | Primary and secondary diverged | Flags it and touches nothing |
106
+ | Branch only on secondary | Flags it: could be new there, or deleted on primary |
107
+ | Local checkout behind and clean | Fast-forwards it |
108
+ | Local dirty, detached or diverged | Leaves it alone and flags it |
109
+ | Local has unpushed commits | Flags it. Pushing your own work stays your decision |
110
+
111
+ By default only `main`/`master` are synced and `dependabot/*` is skipped. Change `sync_branches` and `sync_exclude` (glob lists) in the config.
112
+
113
+ A protected branch on the primary rejects a secondary-ahead push. That's reported as a failed step and nothing else is affected. Unattended runs over SSH need a key without a passphrase, or a running agent; otherwise that remote shows as unreachable and is skipped.
114
+
115
+ ### Run sync on a schedule
116
+
117
+ ```bash
118
+ repowatch schedule # hourly via Windows Task Scheduler (silent, via pythonw)
119
+ repowatch schedule --every 30
120
+ repowatch schedule --remove
121
+ ```
122
+
123
+ Output goes to `sync.log` in the config folder and rotates at 1 MB. On macOS and Linux, `schedule` prints a crontab line for you to add.
124
+
125
+ ## Prune
126
+
127
+ Deletes stale branches on the primary remote.
128
+
129
+ ```bash
130
+ repowatch prune # dry run: what goes, and why the rest stay
131
+ repowatch prune --apply
132
+ repowatch prune --include-unmerged 180 # also abandoned branches, >180 days old, with no open PR
133
+ repowatch prune -v # also list merged branches it keeps
134
+ ```
135
+
136
+ | Kind | Meaning | Default |
137
+ |---|---|---|
138
+ | **merged** | Tip already in the default branch (merge, fast-forward or rebase) | Deleted |
139
+ | **squash-merged** | Its combined change is already in the default branch as one commit | Deleted |
140
+ | **unmerged** | Has commits the default branch doesn't | Kept and listed |
141
+
142
+ It never deletes the default branch, anything matching `prune_keep` (default `main`, `master`, `develop`, `release/*`), anything younger than `prune_min_age_days` (default 7), or the branch you have checked out. Unmerged branches are only deleted with `--include-unmerged`, and only after the GitHub CLI (`gh`) confirms they have no open PR. Without `gh`, they're never touched. Deletions are verified against the remote afterwards.
143
+
144
+ To stop branches piling up again: `gh repo edit OWNER/REPO --delete-branch-on-merge`.
145
+
146
+ ## Configuration
147
+
148
+ `repowatch init` writes a commented file to:
149
+
150
+ - Windows: `%APPDATA%\repowatch\config.toml`
151
+ - macOS / Linux: `~/.config/repowatch/config.toml`, or `$XDG_CONFIG_HOME/repowatch/config.toml`
152
+
153
+ ```toml
154
+ root = "~/code"
155
+ depth = 3 # folder levels to search
156
+ refresh_seconds = 30 # TUI local auto-refresh; 0 = off
157
+ fetch_timeout = 25 # seconds, per remote
158
+ column_order = ["github", "gitea"]
159
+ primary_labels = ["github"] # sync's source of truth; prune's target
160
+ mirror_labels = ["gitea"] # kept level by sync; lag shown as "mirror lag"
161
+ sync_branches = ["main", "master"]
162
+ sync_exclude = ["dependabot/*"]
163
+ prune_keep = ["main", "master", "develop", "release/*"]
164
+ prune_min_age_days = 7
165
+
166
+ [hosts] # host -> column label (exact match, then substring)
167
+ "git.example.internal" = "gitea"
168
+ "192.168.1.20" = "gitea"
169
+
170
+ [remote_templates] # pre-fills the TUI's add-remote dialog
171
+ gitea = "https://git.example.internal/{owner}/{repo}.git"
172
+ ```
173
+
174
+ Use `repowatch --config other.toml …` to point at a different file.
175
+
176
+ ## How it behaves
177
+
178
+ - **Remote columns are only as fresh as your last fetch.** `r` and the auto-refresh are local-only; `f`, `F`, `--fetch`, `sync` and `prune` go to the network.
179
+ - **It never prompts.** Terminal prompts, credential-manager pop-ups and interactive SSH are disabled. A remote that needs input shows `✗` and the reason, rather than hanging. Cached credentials (credential managers, keychain, ssh-agent) work normally.
180
+ - **Each remote is fetched separately, with a timeout**, so an unreachable Gitea doesn't hold up GitHub.
181
+ - **Discovery stops at the first `.git`.** It doesn't descend into repos, and it skips `node_modules`, `.venv`, `build` and similar.
182
+ - **Don't keep repos in a cloud-synced folder** (OneDrive, Dropbox, iCloud). Sync clients lock and duplicate files inside `.git`. Your remotes are the backup.
183
+
184
+ ## Contributing
185
+
186
+ Issues and PRs are welcome. See [CONTRIBUTING.md](CONTRIBUTING.md). The test suite builds throwaway repos with GitHub- and Gitea-style remotes for every state repowatch distinguishes, and runs on Windows, macOS and Linux.
187
+
188
+ ## Licence
189
+
190
+ [MIT](LICENSE)
@@ -0,0 +1,58 @@
1
+ [build-system]
2
+ requires = ["setuptools>=68"]
3
+ build-backend = "setuptools.build_meta"
4
+
5
+ [project]
6
+ name = "repowatch"
7
+ dynamic = ["version"]
8
+ description = "Every git repo under a folder, compared across all its remotes, with fast-forward-only sync and safe branch pruning."
9
+ readme = "README.md"
10
+ license = "MIT"
11
+ license-files = ["LICENSE"]
12
+ requires-python = ">=3.11"
13
+ authors = [{ name = "Mark Wharry" }]
14
+ keywords = ["git", "multi-repo", "remotes", "mirror", "gitea", "github", "tui", "textual"]
15
+ classifiers = [
16
+ "Development Status :: 4 - Beta",
17
+ "Environment :: Console",
18
+ "Intended Audience :: Developers",
19
+ "Operating System :: OS Independent",
20
+ "Programming Language :: Python :: 3",
21
+ "Programming Language :: Python :: 3.11",
22
+ "Programming Language :: Python :: 3.12",
23
+ "Programming Language :: Python :: 3.13",
24
+ "Topic :: Software Development :: Version Control :: Git",
25
+ ]
26
+ dependencies = ["textual>=0.80"]
27
+
28
+ [project.optional-dependencies]
29
+ dev = ["pytest>=8", "ruff>=0.6"]
30
+
31
+ [project.urls]
32
+ Homepage = "https://github.com/markgwharry/repowatch"
33
+ Issues = "https://github.com/markgwharry/repowatch/issues"
34
+ Changelog = "https://github.com/markgwharry/repowatch/blob/main/CHANGELOG.md"
35
+
36
+ [project.scripts]
37
+ repowatch = "repowatch.cli:main"
38
+
39
+ [tool.setuptools]
40
+ packages = ["repowatch"]
41
+
42
+ [tool.setuptools.dynamic]
43
+ version = { attr = "repowatch.__version__" }
44
+
45
+ [tool.pytest.ini_options]
46
+ testpaths = ["tests"]
47
+ addopts = "-ra"
48
+
49
+ [tool.ruff]
50
+ line-length = 125
51
+ target-version = "py311"
52
+
53
+ [tool.ruff.lint]
54
+ select = ["E", "F", "W", "I", "B", "UP"]
55
+ ignore = ["E702", "E741"] # short `a; b` fixture sequences; `l` for lines in comprehensions
56
+
57
+ [tool.ruff.lint.per-file-ignores]
58
+ "tests/*" = ["B011"]
@@ -0,0 +1,3 @@
1
+ """repowatch — one view of every git repo under a folder, compared across all its remotes."""
2
+
3
+ __version__ = "0.4.0"
@@ -0,0 +1,5 @@
1
+ import sys
2
+
3
+ from .cli import main
4
+
5
+ sys.exit(main())