File tree Expand file tree Collapse file tree 1 file changed +10
-5
lines changed
Expand file tree Collapse file tree 1 file changed +10
-5
lines changed Original file line number Diff line number Diff line change @@ -106,23 +106,28 @@ Run the demos in VS Code for the combined view of the file contents and the term
106106
1071071. Rename the ` custom_hook` folder to ` filename_validation` .
1081082. 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
1171191. 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
1241281. Create ` .pre-commit-hooks.yaml` .
1251292. Copy and paste the solution there.
130+ 3. Commit the changes.
126131
127132# ## Test the hook
128133
You can’t perform that action at this time.
0 commit comments