Skip to content

Commit 756a47e

Browse files
committed
Update demo notes
1 parent 48f7420 commit 756a47e

1 file changed

Lines changed: 17 additions & 2 deletions

File tree

demo-notes.md

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ Run the demos in VS Code for the combined view of the file contents and the term
1010
2. Change font size to 24 (original is 12).
1111
3. Search for `terminal.integrated.font-size` and change it to 24 as well (original is 12).
1212

13+
2. Adjust command prompt to avoid wrapping.
14+
1315
3. Change `workbench.color.theme` to `Light High Contrast` (default `Dark Modern`).
1416

1517
4. Create a fresh virtual environment:
@@ -27,6 +29,10 @@ Run the demos in VS Code for the combined view of the file contents and the term
2729
$ curl -OJ https://stefaniemolin.com/pre-commit-workshop/slides.pdf
2830
```
2931

32+
7. Delete existing `.git/hooks/pre-commit` file in this repository.
33+
34+
8. Depending on how reliable the WiFi will be, run `uv tool uninstall pre-commit`.
35+
3036
## Section 1 demos
3137

3238
### Git hooks demo
@@ -45,8 +51,12 @@ Run the demos in VS Code for the combined view of the file contents and the term
4551

4652
1. Poll the audience to see if more people are using `uv` or `pip`.
4753
2. Install `pre-commit` with the method most people are using:
48-
- `pip`: With a pre-made virtual environment activated, run `python3 -m pip install pre-commit`.
49-
- `uv`: Run `uv tool install pre-commit --with pre-commit-uv` (no need to activate anything).
54+
- `pip`:
55+
1. Activate the pre-made virtual environment: `conda activate pre-commit-demo`
56+
2. Run `python3 -m pip install pre-commit`.
57+
- `uv`:
58+
1. Run `uv sync` to set up the project.
59+
2. Run `uv tool install pre-commit --with pre-commit-uv` (no need to activate anything).
5060
3. Run `pre-commit --version` to show it worked.
5161

5262
### Install first set of hooks
@@ -134,3 +144,8 @@ Run the demos in VS Code for the combined view of the file contents and the term
134144
1. Commit the changes if not already done so.
135145
2. Create a new file that has a name that is too short: `touch x.py`.
136146
3. `pre-commit try-repo . --files x.py`
147+
148+
## Post-workshop Cleanup
149+
150+
1. Commit and push final changes to the demo branch.
151+
2. Undo command prompt and VS Code setting changes listed in the setup section.

0 commit comments

Comments
 (0)