Skip to content

Commit 6539eb9

Browse files
committed
Add uv options for demos in second section
1 parent 69f036e commit 6539eb9

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

demo-notes.md

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -106,23 +106,28 @@ Run the demos in VS Code for the combined view of the file contents and the term
106106

107107
1. Rename the `custom_hook` folder to `filename_validation`.
108108
2. Rename the `check.py` file to `validate_filename.py`.
109-
3. Copy and paste the contents for later.
109+
3. Copy and paste the contents.
110+
4. Commit the changes with `--no-verify`.
110111

111112
### Exercise 2.2 solution
112113

113-
Copy and paste the solution into `cli.py` and import the function from the previous exercise.
114+
1. Copy and paste the solution into `cli.py`.
115+
2. Commit the changes with `--no-verify`.
114116

115117
### Exercise 2.3 solution
116118

117119
1. Replace the placeholder contents in `pyproject.toml` with the example solution.
118-
2. Run `pip install .`.
119-
3. Confirm that the script is available by running `validate-filename --help`.
120-
4. Run `validate-filename x.py` to show how it will be used.
120+
2. Optionally, show the results of `git diff pyproject.toml`.
121+
3. Run `pip install -e .` OR `uv sync` depending on what the majority of the people are using (as revealed in the initial poll).
122+
4. Confirm that the script is available by running `validate-filename --help`.
123+
5. Run `validate-filename x.py` to show how it will be used.
124+
6. Commit the changes (including the `uv.lock` file if `uv` was used).
121125

122126
### Exercise 2.4 solution
123127

124128
1. Create `.pre-commit-hooks.yaml`.
125129
2. Copy and paste the solution there.
130+
3. Commit the changes.
126131

127132
### Test the hook
128133

0 commit comments

Comments
 (0)