@@ -56,8 +56,8 @@ position within the project.
56
56
Run pre-commit linting locally
57
57
------------------------------
58
58
59
- If you'd like, you can run the project 's basic linting suite locally,
60
- either on-demand when you choose , or automatically against modified files
59
+ You can run this repo 's basic linting suite locally,
60
+ either on-demand, or automatically against modified files
61
61
whenever you commit your changes.
62
62
63
63
They are also run in CI, so you don't have to run them locally, though doing
@@ -69,12 +69,12 @@ install, configure and update a suite of hooks that check for
69
69
common problems and issues, and fix many of them automatically.
70
70
71
71
If your system has ``make `` installed, you can run the pre-commit checkers
72
- on the full repo by simply running ``make lint ``. Note that this will
72
+ on the full repo by running ``make lint ``. This will
73
73
install pre-commit in the current virtual environment if it isn't already,
74
74
so make sure you've activated the environment you want it to use
75
75
before running this command.
76
76
77
- Otherwise, you can install pre-commit by running ``pip install pre-commit ``
77
+ Otherwise, you can install pre-commit by running ``python -m pip install pre-commit ``
78
78
(or your choice of installer), and then run the hooks on all the files
79
79
in the repo with ``pre-commit run --all-files ``, or only on any files that
80
80
have been modified but not yet committed with ``pre-commit run ``.
@@ -97,7 +97,7 @@ Like the linters, on a system with ``make`` available, it can be installed
97
97
repository with a single command, ``make spellcheck ``.
98
98
99
99
For finer control or on other systems, after installing pre-commit as above
100
- (e.g. ``pip install pre-commit ``), you can run it against only the files
100
+ (e.g. ``python -m pip install pre-commit ``), you can run it against only the files
101
101
you've modified and not yet committed with
102
102
``pre-commit run --hook-stage manual codespell ``, or against all files with
103
103
``pre-commit run --all-files --hook-stage manual codespell ``.
0 commit comments