Skip to content

Commit cd6df44

Browse files
committed
Add and Run pre-commit
1 parent dcd463c commit cd6df44

File tree

55 files changed

+907
-780
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

55 files changed

+907
-780
lines changed

.gitbook.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
root: ./
2-
structure:
3-
readme: README.md
4-
summary: ./Curriculum/SUMMARY.md
1+
root: ./
2+
structure:
3+
readme: README.md
4+
summary: ./Curriculum/SUMMARY.md

.github/FUNDING.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
# These are supported funding model platforms
2-
3-
github: [h4ckd0tm3]
1+
# These are supported funding model platforms
2+
3+
github: [h4ckd0tm3]

.gitignore

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.DS_Store
2-
.idea
3-
**/.DS_Store
4-
flake.lock
1+
.DS_Store
2+
.idea
3+
**/.DS_Store
4+
flake.lock

.markdownlint.yaml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
---
2+
default: true
3+
4+
# default indent = 4 spaces
5+
MD007:
6+
indent: 2
7+
# MD030:
8+
# ul_single: 3
9+
# ul_multi: 3
10+
11+
# MD013/line-length - Line length
12+
MD013:
13+
# Number of characters
14+
line_length: 119
15+
# Number of characters for headings
16+
heading_line_length: 119
17+
# Number of characters for code blocks
18+
code_block_line_length: 119
19+
# Include code blocks
20+
code_blocks: true
21+
# Ignore table length violations
22+
tables: false
23+
# Include headings
24+
headings: true
25+
# Include headings
26+
headers: true
27+
# Strict length checking
28+
strict: false
29+
# Stern length checking
30+
stern: false
31+
32+
MD024:
33+
# Allow heading duplication if under different parent headings
34+
siblings_only: true

.pre-commit-config.yaml

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
---
2+
# See https://pre-commit.com for more information
3+
# See https://pre-commit.com/hooks.html for more hooks
4+
5+
repos:
6+
- repo: https://github.com/pre-commit/pre-commit-hooks
7+
rev: "v6.0.0"
8+
hooks:
9+
- id: check-added-large-files
10+
args: [--maxkb=500000]
11+
stages: [pre-commit]
12+
- id: check-case-conflict
13+
stages: [pre-commit]
14+
- id: check-merge-conflict
15+
stages: [pre-commit]
16+
- id: check-yaml
17+
stages: [pre-commit]
18+
- id: end-of-file-fixer
19+
stages: [pre-commit]
20+
- id: mixed-line-ending
21+
stages: [pre-commit]
22+
- id: trailing-whitespace
23+
args: [--markdown-linebreak-ext=md]
24+
stages: [pre-commit]
25+
- repo: https://github.com/Lucas-C/pre-commit-hooks
26+
rev: "v1.5.5"
27+
hooks:
28+
- id: remove-crlf
29+
stages: [pre-commit]
30+
- id: remove-tabs
31+
stages: [pre-commit]
32+
- repo: https://github.com/sirosen/texthooks
33+
rev: "0.7.1"
34+
hooks:
35+
- id: fix-smartquotes
36+
stages: [pre-commit]
37+
- id: fix-ligatures
38+
stages: [pre-commit]
39+
- repo: https://github.com/igorshubovych/markdownlint-cli
40+
rev: "v0.45.0"
41+
hooks:
42+
- id: markdownlint
43+
args: ["-f"]
44+
stages: [post-commit]
45+
- repo: https://github.com/astral-sh/ruff-pre-commit
46+
# Ruff version.
47+
rev: v0.14.1
48+
hooks:
49+
- id: ruff
50+
args: [--fix]
51+
stages: [pre-commit, manual]
52+
- repo: https://github.com/psf/black
53+
rev: "25.9.0"
54+
hooks:
55+
- id: black
56+
stages: [pre-commit, manual]

CODE_OF_CONDUCT.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ representative at an online or offline event.
6060

6161
Instances of abusive, harassing, or otherwise unacceptable behavior may be
6262
reported to the community leaders responsible for enforcement at
63-
63+
6464
All complaints will be reviewed and investigated promptly and fairly.
6565

6666
All community leaders are obligated to respect the privacy and security of the
@@ -116,13 +116,13 @@ the community.
116116

117117
This Code of Conduct is adapted from the [Contributor Covenant][homepage],
118118
version 2.0, available at
119-
https://www.contributor-covenant.org/version/2/0/code_of_conduct.html.
119+
<https://www.contributor-covenant.org/version/2/0/code_of_conduct.html>.
120120

121121
Community Impact Guidelines were inspired by [Mozilla's code of conduct
122122
enforcement ladder](https://github.com/mozilla/diversity).
123123

124124
For answers to common questions about this code of conduct, see the FAQ at
125-
https://www.contributor-covenant.org/faq. Translations are available at
126-
https://www.contributor-covenant.org/translations.
125+
<https://www.contributor-covenant.org/faq>. Translations are available at
126+
<https://www.contributor-covenant.org/translations>.
127127

128128
[homepage]: https://www.contributor-covenant.org

Curriculum/Module 00 - Mindset/slides/Module_00_Slides_Mindset.typ

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,8 @@
7373
][
7474
// Right: quote
7575
#text(size: 24pt)[
76-
The most exciting phrase to hear in science, the one that heralds new discoveries,
77-
is not Eureka! but Thats funny…’”
76+
"The most exciting phrase to hear in science, the one that heralds new discoveries,
77+
is not 'Eureka!' but 'That's funny…'"
7878
]
7979

8080
#text(size: 14pt, style: "italic")[— Isaac Asimov]
@@ -129,7 +129,7 @@
129129

130130
#slide(title: "Prevent Burnout")[
131131
- Work-Life Balance: Set boundaries and recharge.
132-
- Collaborate: Dont hack alone — support and be supported.
132+
- Collaborate: Don't hack alone — support and be supported.
133133
- Keep Learning: Curiosity keeps burnout at bay.
134134
- Manage Stress: Use healthy coping strategies.
135135
- Celebrate Wins: Big or small, every success counts.

Curriculum/Module 01 - Ethics and Legal/slides/Module_01_Slides_Ethics.typ

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -39,31 +39,31 @@
3939

4040
#slide(title: "Core Principles – Part 1")[
4141
1. *Information should be free*
42-
42+
4343
Open knowledge promotes innovation and transparency.
4444

4545
2. *Unlimited access to learning tools*
46-
46+
4747
Hands-on exploration (*tinkering*) fosters understanding.
4848

4949
3. *Mistrust authority – promote decentralization*
50-
50+
5151
Power should be distributed, not centralized.
5252

5353
#alert("Inspired by hacker subcultures at MIT and beyond.")
5454
]
5555

5656
#slide(title: "Core Principles – Part 2")[
5757
4. *Judge by skill, not status*
58-
58+
5959
Merit over formal credentials.
6060

6161
5. *Code as art*
62-
62+
6363
Beauty in elegant solutions and creative hacks.
6464

6565
6. *Computers can improve lives*
66-
66+
6767
#alert("Ethical use of tech to empower people and fix broken systems.")
6868
]
6969

@@ -109,7 +109,7 @@
109109
- Privacy-preserving tech (e.g., encryption)
110110
- Transparent oversight and accountability
111111

112-
#alert("Security is not an excuse to erase rights.")
112+
#alert(""Security" is not an excuse to erase rights.")
113113
]
114114

115115
#slide(title: "Dilemma 3: Gray Hat Behavior")[

Curriculum/Module 01 - Ethics and Legal/slides/Module_01_Slides_Legal.typ

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@
137137
#slide(title: "§118a StGB")[
138138
Widerrechtlicher Zugriff auf ein Computersystem
139139

140-
=== Objektive Tatseite („TUN des Täters):
140+
=== Objektive Tatseite („TUN" des Täters):
141141
Verschaffung des Zugriffs zu (Teilen) eines fremden Computersystems durch Überwindung einer spezifischen Sicherheitsvorkehrung im Computersystem.
142142
]
143143

@@ -184,7 +184,7 @@
184184
]
185185

186186
#slide(title: "Qualifikation")[
187-
- „Normaler Strafrahmen: Freiheitsstrafe bis zu 6 Monaten / Geldstrafe bis zu 360 Tagessätzen
187+
- „Normaler" Strafrahmen: Freiheitsstrafe bis zu 6 Monaten / Geldstrafe bis zu 360 Tagessätzen
188188

189189
- das Computersystem ist ein wesentlicher Bestandteil der kritischen Infrastruktur: bis zu 2 Jahren Freiheitsstrafe
190190

Curriculum/Module 02 - Reconnaissance/assignments/Assignment_2/docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,4 +46,4 @@ services:
4646

4747
networks:
4848
recon-network:
49-
driver: bridge
49+
driver: bridge

0 commit comments

Comments
 (0)