You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you're interested in using pre-commit hooks to crosscheck your code before you commit it,
94
-
now is a good time to set that up (it's just one command) - check out
95
-
:doc:`pre-commit <../practices/precommit>`
96
-
97
93
Commit the project to your local version control like so to see the pre-commit checks run.
98
94
99
95
.. code-block:: bash
@@ -114,3 +110,18 @@ Create a new repository in GitHub: (`GitHub How-to <https://docs.github.com/en/g
114
110
>> git push origin <local_branch_name>
115
111
116
112
Notice that when you create a PR in GitHub, a set of tests for Continuous Integration starts up to verify that the project can build successfully and that all the unit tests pass. Neato!
113
+
114
+
Install pre-commit
115
+
----------------------------
116
+
117
+
Now that your project has been pushed to a GitHub remote repository, it's a good
118
+
time to install ``pre-commit`` so that future commits will run a suite of checks
119
+
before pushing code to the remote repository.
120
+
Run the following command in your terminal.
121
+
122
+
.. code:: bash
123
+
124
+
>> pre-commit install
125
+
126
+
For more information about ``pre-commit`` including a list of the checks that
127
+
will be run before each commit, please see :doc:`pre-commit <../practices/precommit>`.
0 commit comments