hopper-cli 1.3.5__tar.gz → 1.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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: hopper-cli
3
- Version: 1.3.5
3
+ Version: 1.4.0
4
4
  Summary: A git-like CLI for tutors on the hopper platform.
5
5
  Author: hopper contributors
6
6
  License-Expression: AGPL-3.0-or-later
@@ -125,8 +125,9 @@ All commands run **inside** that directory and never write outside it.
125
125
  | `hopper init [profile/]<course>` | Bind a new directory to a course. |
126
126
  | `hopper pull` | Clone or `pull --rebase --autostash` every assigned student repo. |
127
127
  | `hopper logs` | Print the saved output of the most recent pull run. |
128
- | `hopper push [msg]` | Commit README changes, validate point schema, push. |
128
+ | `hopper push [msg]` | Commit README changes, validate README syntax, push. |
129
129
  | `hopper commit <msg>` | Commit without pushing (recovery path). |
130
+ | `hopper check` | Validate the README syntax in all student repositories. |
130
131
  | `hopper status` | Per-student branch, ahead/behind, dirty state. |
131
132
  | `hopper students` | List students assigned to you. |
132
133
  | `hopper info` | Course info, your role, exercises. |
@@ -167,8 +168,10 @@ hopper pull --prune # remove local repos of students no longer assigned
167
168
  hopper pull -j 8 # 8 concurrent git operations (default 4, 2 for ssh remotes)
168
169
  ```
169
170
 
170
- - `--prune` removes local repos of students no longer assigned to you, after
171
- showing a preview and asking for confirmation; `--no-prune` skips pruning.
171
+ - Every pull reports local repos of students no longer assigned to you
172
+ (they changed tutor or left the course). Those copies can still be
173
+ pushed to and graded twice, so delete them with `--prune`, which shows
174
+ a preview and asks for confirmation; `--no-prune` skips pruning.
172
175
  - Repos are synced concurrently, 4 at a time by default. When the instance's
173
176
  clone URL uses ssh, the default is 2: bursts of concurrent ssh handshakes
174
177
  can make the server reject some connections. Override with `-j`.
@@ -210,15 +213,39 @@ command does not touch the server, so it also works offline.
210
213
  hopper push # commit */README.md changes and push (default msg: "Grade exercises")
211
214
  hopper push "Grade exercise 3" # custom commit message
212
215
  hopper push --all # stage all changes, not just */README.md
213
- hopper push --allow-invalid # push even when the README point schema is invalid
216
+ hopper push --allow-invalid # push even when the README syntax is invalid
214
217
  hopper commit "WIP grading" # commit without pushing (recovery path)
218
+ hopper commit --allow-invalid "WIP grading"
215
219
  ```
216
220
 
217
- Before pushing, hopper validates that each modified README's first line
218
- contains exactly one point schema like `(12/15)`. Invalid pushes are blocked
219
- unless `--allow-invalid` is given. A conflicting rebase surfaces the conflict
220
- and halts that repo instead of destroying local work — hopper never runs
221
- `git reset --hard`.
221
+ Before committing or pushing, hopper validates each staged README against
222
+ the README syntax contract (see `docs/build.md` in the orchestration repo):
223
+
224
+ - The first line reads `# <name> (X / Y)` with exactly one points entry,
225
+ because orchestration records the grade from that line alone. A second
226
+ `X / Y` pattern in the heading (for example a title like `3/4` before
227
+ the points) would silently grade the wrong number and is rejected.
228
+ - Points are written with spaces around the slash: `(X / Y)`, not `(X/Y)`.
229
+ - Task and subtask headings carry a well-formed trailing `(X / Y)`
230
+ points entry.
231
+ - All hopper region markers (tutor regions, task boxes, build region)
232
+ are intact, task box keys are valid and unique, and the build region
233
+ comes last.
234
+
235
+ Invalid commits and pushes are blocked unless `--allow-invalid` is given.
236
+ A conflicting rebase surfaces the conflict and halts that repo instead of
237
+ destroying local work; hopper never runs `git reset --hard`.
238
+
239
+ ### `check`
240
+
241
+ ```
242
+ hopper check # validate <exercise>/README.md in every student repo
243
+ ```
244
+
245
+ Runs the same validation as `push` and `commit`, but on every README in
246
+ the working tree, without staging or committing anything. Use it to find
247
+ broken headings or markers across all repos at once; the command exits
248
+ non-zero when it finds problems.
222
249
 
223
250
  ### `status` / `students` / `info`
224
251
 
@@ -97,8 +97,9 @@ All commands run **inside** that directory and never write outside it.
97
97
  | `hopper init [profile/]<course>` | Bind a new directory to a course. |
98
98
  | `hopper pull` | Clone or `pull --rebase --autostash` every assigned student repo. |
99
99
  | `hopper logs` | Print the saved output of the most recent pull run. |
100
- | `hopper push [msg]` | Commit README changes, validate point schema, push. |
100
+ | `hopper push [msg]` | Commit README changes, validate README syntax, push. |
101
101
  | `hopper commit <msg>` | Commit without pushing (recovery path). |
102
+ | `hopper check` | Validate the README syntax in all student repositories. |
102
103
  | `hopper status` | Per-student branch, ahead/behind, dirty state. |
103
104
  | `hopper students` | List students assigned to you. |
104
105
  | `hopper info` | Course info, your role, exercises. |
@@ -139,8 +140,10 @@ hopper pull --prune # remove local repos of students no longer assigned
139
140
  hopper pull -j 8 # 8 concurrent git operations (default 4, 2 for ssh remotes)
140
141
  ```
141
142
 
142
- - `--prune` removes local repos of students no longer assigned to you, after
143
- showing a preview and asking for confirmation; `--no-prune` skips pruning.
143
+ - Every pull reports local repos of students no longer assigned to you
144
+ (they changed tutor or left the course). Those copies can still be
145
+ pushed to and graded twice, so delete them with `--prune`, which shows
146
+ a preview and asks for confirmation; `--no-prune` skips pruning.
144
147
  - Repos are synced concurrently, 4 at a time by default. When the instance's
145
148
  clone URL uses ssh, the default is 2: bursts of concurrent ssh handshakes
146
149
  can make the server reject some connections. Override with `-j`.
@@ -182,15 +185,39 @@ command does not touch the server, so it also works offline.
182
185
  hopper push # commit */README.md changes and push (default msg: "Grade exercises")
183
186
  hopper push "Grade exercise 3" # custom commit message
184
187
  hopper push --all # stage all changes, not just */README.md
185
- hopper push --allow-invalid # push even when the README point schema is invalid
188
+ hopper push --allow-invalid # push even when the README syntax is invalid
186
189
  hopper commit "WIP grading" # commit without pushing (recovery path)
190
+ hopper commit --allow-invalid "WIP grading"
187
191
  ```
188
192
 
189
- Before pushing, hopper validates that each modified README's first line
190
- contains exactly one point schema like `(12/15)`. Invalid pushes are blocked
191
- unless `--allow-invalid` is given. A conflicting rebase surfaces the conflict
192
- and halts that repo instead of destroying local work — hopper never runs
193
- `git reset --hard`.
193
+ Before committing or pushing, hopper validates each staged README against
194
+ the README syntax contract (see `docs/build.md` in the orchestration repo):
195
+
196
+ - The first line reads `# <name> (X / Y)` with exactly one points entry,
197
+ because orchestration records the grade from that line alone. A second
198
+ `X / Y` pattern in the heading (for example a title like `3/4` before
199
+ the points) would silently grade the wrong number and is rejected.
200
+ - Points are written with spaces around the slash: `(X / Y)`, not `(X/Y)`.
201
+ - Task and subtask headings carry a well-formed trailing `(X / Y)`
202
+ points entry.
203
+ - All hopper region markers (tutor regions, task boxes, build region)
204
+ are intact, task box keys are valid and unique, and the build region
205
+ comes last.
206
+
207
+ Invalid commits and pushes are blocked unless `--allow-invalid` is given.
208
+ A conflicting rebase surfaces the conflict and halts that repo instead of
209
+ destroying local work; hopper never runs `git reset --hard`.
210
+
211
+ ### `check`
212
+
213
+ ```
214
+ hopper check # validate <exercise>/README.md in every student repo
215
+ ```
216
+
217
+ Runs the same validation as `push` and `commit`, but on every README in
218
+ the working tree, without staging or committing anything. Use it to find
219
+ broken headings or markers across all repos at once; the command exits
220
+ non-zero when it finds problems.
194
221
 
195
222
  ### `status` / `students` / `info`
196
223
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: hopper-cli
3
- Version: 1.3.5
3
+ Version: 1.4.0
4
4
  Summary: A git-like CLI for tutors on the hopper platform.
5
5
  Author: hopper contributors
6
6
  License-Expression: AGPL-3.0-or-later
@@ -125,8 +125,9 @@ All commands run **inside** that directory and never write outside it.
125
125
  | `hopper init [profile/]<course>` | Bind a new directory to a course. |
126
126
  | `hopper pull` | Clone or `pull --rebase --autostash` every assigned student repo. |
127
127
  | `hopper logs` | Print the saved output of the most recent pull run. |
128
- | `hopper push [msg]` | Commit README changes, validate point schema, push. |
128
+ | `hopper push [msg]` | Commit README changes, validate README syntax, push. |
129
129
  | `hopper commit <msg>` | Commit without pushing (recovery path). |
130
+ | `hopper check` | Validate the README syntax in all student repositories. |
130
131
  | `hopper status` | Per-student branch, ahead/behind, dirty state. |
131
132
  | `hopper students` | List students assigned to you. |
132
133
  | `hopper info` | Course info, your role, exercises. |
@@ -167,8 +168,10 @@ hopper pull --prune # remove local repos of students no longer assigned
167
168
  hopper pull -j 8 # 8 concurrent git operations (default 4, 2 for ssh remotes)
168
169
  ```
169
170
 
170
- - `--prune` removes local repos of students no longer assigned to you, after
171
- showing a preview and asking for confirmation; `--no-prune` skips pruning.
171
+ - Every pull reports local repos of students no longer assigned to you
172
+ (they changed tutor or left the course). Those copies can still be
173
+ pushed to and graded twice, so delete them with `--prune`, which shows
174
+ a preview and asks for confirmation; `--no-prune` skips pruning.
172
175
  - Repos are synced concurrently, 4 at a time by default. When the instance's
173
176
  clone URL uses ssh, the default is 2: bursts of concurrent ssh handshakes
174
177
  can make the server reject some connections. Override with `-j`.
@@ -210,15 +213,39 @@ command does not touch the server, so it also works offline.
210
213
  hopper push # commit */README.md changes and push (default msg: "Grade exercises")
211
214
  hopper push "Grade exercise 3" # custom commit message
212
215
  hopper push --all # stage all changes, not just */README.md
213
- hopper push --allow-invalid # push even when the README point schema is invalid
216
+ hopper push --allow-invalid # push even when the README syntax is invalid
214
217
  hopper commit "WIP grading" # commit without pushing (recovery path)
218
+ hopper commit --allow-invalid "WIP grading"
215
219
  ```
216
220
 
217
- Before pushing, hopper validates that each modified README's first line
218
- contains exactly one point schema like `(12/15)`. Invalid pushes are blocked
219
- unless `--allow-invalid` is given. A conflicting rebase surfaces the conflict
220
- and halts that repo instead of destroying local work — hopper never runs
221
- `git reset --hard`.
221
+ Before committing or pushing, hopper validates each staged README against
222
+ the README syntax contract (see `docs/build.md` in the orchestration repo):
223
+
224
+ - The first line reads `# <name> (X / Y)` with exactly one points entry,
225
+ because orchestration records the grade from that line alone. A second
226
+ `X / Y` pattern in the heading (for example a title like `3/4` before
227
+ the points) would silently grade the wrong number and is rejected.
228
+ - Points are written with spaces around the slash: `(X / Y)`, not `(X/Y)`.
229
+ - Task and subtask headings carry a well-formed trailing `(X / Y)`
230
+ points entry.
231
+ - All hopper region markers (tutor regions, task boxes, build region)
232
+ are intact, task box keys are valid and unique, and the build region
233
+ comes last.
234
+
235
+ Invalid commits and pushes are blocked unless `--allow-invalid` is given.
236
+ A conflicting rebase surfaces the conflict and halts that repo instead of
237
+ destroying local work; hopper never runs `git reset --hard`.
238
+
239
+ ### `check`
240
+
241
+ ```
242
+ hopper check # validate <exercise>/README.md in every student repo
243
+ ```
244
+
245
+ Runs the same validation as `push` and `commit`, but on every README in
246
+ the working tree, without staging or committing anything. Use it to find
247
+ broken headings or markers across all repos at once; the command exits
248
+ non-zero when it finds problems.
222
249
 
223
250
  ### `status` / `students` / `info`
224
251
 
File without changes
File without changes
File without changes
File without changes