Skip to content

Commit 85c4f23

Browse files
[sensors-revert] Implement exercise T4L6/sensors-revert (#185)
# Exercise Review ## Exercise Discussion Fixes #146 ## 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? - [x] 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 a325681 commit 85c4f23

15 files changed

+361
-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-revert",
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_revert/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/revert/exercise-sensors-revert.html

sensors_revert/__init__.py

Whitespace-only changes.

sensors_revert/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_revert/tests/__init__.py

Whitespace-only changes.
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
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: revert
9+
revision: dbac57019977296abff9e4f687f587c4a2d24f02
10+
- type: revert
11+
revision: 59505167b47f35c12d21bc61d731226b394a5341
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
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: revert
9+
revision: dbac57019977296abff9e4f687f587c4a2d24f02
10+
- type: revert
11+
revision: 59505167b47f35c12d21bc61d731226b394a5341
12+
- type: edit-file
13+
filename: east.csv
14+
contents: 4821\n9304\n1578\n6042\n7189\n2463\n8931\n5710\n
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
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: delete-file
9+
filename: east.csv
10+
- type: delete-file
11+
filename: north.csv
12+
- type: delete-file
13+
filename: south.csv
14+
- type: delete-file
15+
filename: west.csv
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
Lines changed: 103 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,103 @@
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: edit-file
9+
filename: east.csv
10+
contents: |
11+
4821
12+
9304
13+
1578
14+
6042
15+
7189
16+
2463
17+
8931
18+
5710
19+
4428
20+
3097
21+
8652
22+
1904
23+
7485
24+
6379
25+
5140
26+
9836
27+
2057
28+
4719
29+
3568
30+
8243
31+
32+
- type: edit-file
33+
filename: north.csv
34+
contents: |
35+
6841
36+
2307
37+
9754
38+
4169
39+
5823
40+
3086
41+
7592
42+
8420
43+
1679
44+
5034
45+
2918
46+
7645
47+
8501
48+
4576
49+
9208
50+
3461
51+
5789
52+
6940
53+
1235
54+
8890
55+
56+
- type: edit-file
57+
filename: south.csv
58+
contents: |
59+
7412
60+
5068
61+
8921
62+
3754
63+
2809
64+
6197
65+
4530
66+
9674
67+
1185
68+
7326
69+
5401
70+
8937
71+
2640
72+
7083
73+
5914
74+
3208
75+
8745
76+
4069
77+
1592
78+
6831
79+
80+
- type: edit-file
81+
filename: west.csv
82+
contents: |
83+
5193
84+
8042
85+
6721
86+
4389
87+
2075
88+
9510
89+
3648
90+
7281
91+
5904
92+
1837
93+
4416
94+
9032
95+
7765
96+
6208
97+
3589
98+
8471
99+
2940
100+
1683
101+
7352
102+
5129
103+

0 commit comments

Comments
 (0)