@@ -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+
13153 . Change ` workbench.color.theme ` to ` Light High Contrast ` (default ` Dark Modern ` ).
1416
15174 . 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
46521. Poll the audience to see if more people are using ` uv` or ` pip` .
47532. 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).
50603. 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
1341441. Commit the changes if not already done so.
1351452. Create a new file that has a name that is too short: ` touch x.py` .
1361463. ` 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