Skip to content

Commit 086fffb

Browse files
authored
Implement exercise T4L5/sensors-reset (#164)
# Exercise Review ## Exercise Discussion Fixes #145 ## Checklist - [ ] If you require a new remote repository on the `Git-Mastery` organization, have you [created a request](https://github.com/git-mastery/exercises/issues/new?template=request_exercise_repository.md) for it? - [ ] Have you written unit tests using [`repo-smith`](https://github.com/git-mastery/repo-smith) to validate the exercise grading scheme? - [X] Have you tested the download script using `test-download.sh`? - [X] Have you verified that this exercise does not already exist or is not currently in review? - [ ] Did you introduce a new grading mechanism that should belong to [`git-autograder`](https://github.com/git-mastery/git-autograder)? - [ ] Did you introduce a new dependency that should belong to [`app`](https://github.com/git-mastery/app)?
1 parent adbaa12 commit 086fffb

14 files changed

+269
-0
lines changed
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"exercise_name": "sensors-reset",
3+
"tags": [
4+
"git-reset"
5+
],
6+
"requires_git": true,
7+
"requires_github": true,
8+
"base_files": {},
9+
"exercise_repo": {
10+
"repo_type": "remote",
11+
"repo_name": "sensors",
12+
"repo_title": "gm-sensors",
13+
"create_fork": false,
14+
"init": null
15+
}
16+
}

sensors_reset/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
See https://git-mastery.github.io/lessons/reset/exercise-sensors-reset.html

sensors_reset/__init__.py

Whitespace-only changes.

sensors_reset/download.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
def setup(verbose: bool = False): ...

sensors_reset/tests/__init__.py

Whitespace-only changes.

sensors_reset/tests/specs/base.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
initialization:
2+
clone-from: https://github.com/git-mastery/gm-sensors
3+
steps:
4+
- type: commit
5+
empty: true
6+
message: Empty commit
7+
id: start
8+
- type: reset
9+
revision: "5950516"
10+
mode: hard
11+
- type: reset
12+
revision: "f900a07"
13+
mode: mixed
14+
- type: reset
15+
revision: "c47b187"
16+
mode: soft
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
initialization:
2+
clone-from: https://github.com/git-mastery/gm-sensors
3+
steps:
4+
- type: commit
5+
empty: true
6+
message: Empty commit
7+
id: start
8+
- type: reset
9+
revision: "5950516"
10+
mode: hard
11+
- type: reset
12+
revision: "f900a07"
13+
mode: mixed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
initialization:
2+
clone-from: https://github.com/git-mastery/gm-sensors
3+
steps:
4+
- type: commit
5+
empty: true
6+
message: Empty commit
7+
id: start
8+
- type: reset
9+
revision: "5950516"
10+
mode: hard
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
initialization:
2+
clone-from: https://github.com/git-mastery/gm-sensors
3+
steps:
4+
- type: commit
5+
empty: true
6+
message: Empty commit
7+
id: start
8+
- type: reset
9+
revision: "5950516"
10+
mode: hard
11+
- type: reset
12+
revision: "f900a07"
13+
mode: mixed
14+
- type: reset
15+
revision: "c47b187"
16+
mode: soft
17+
- type: reset
18+
revision: "e45a4fc"
19+
mode: soft
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
initialization:
2+
clone-from: https://github.com/git-mastery/gm-sensors
3+
steps:
4+
- type: commit
5+
empty: true
6+
message: Empty commit
7+
id: start

0 commit comments

Comments
 (0)