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
Once you submit a pull request to `dmlc/xgboost <https://github.com/dmlc/xgboost>`_, we perform
117
117
two automatic checks to enforce coding style conventions. To expedite the code review process, you are encouraged to run the checks locally on your machine prior to submitting your pull request.
118
118
119
-
Pre-commit (Optional)
120
-
=====================
121
-
We provide a minimal `pre-commit <https://pre-commit.com/>`_ configuration for basic whitespace
122
-
and file-sanity checks. It only runs on changed files by default.
119
+
Pre-commit
120
+
==========
121
+
We provide a `pre-commit <https://pre-commit.com/>`_ configuration for basic formatting and
122
+
file-sanity checks. It only runs on changed files by default, and the same checks run in CI
123
+
as a required (blocking) job.
123
124
124
125
To enable it locally:
125
126
@@ -169,12 +170,6 @@ To run checks for cpplint locally:
169
170
python ./ops/script/lint_cpp.py
170
171
171
172
172
-
See next section for clang-tidy. For CMake scripts:
173
-
174
-
.. code-block:: bash
175
-
176
-
bash ./ops/script/lint_cmake.sh
177
-
178
173
Lastly, the linter for jvm-packages is integrated into the maven build process.
0 commit comments