File tree Expand file tree Collapse file tree 2 files changed +32
-0
lines changed Expand file tree Collapse file tree 2 files changed +32
-0
lines changed Original file line number Diff line number Diff line change @@ -150,3 +150,18 @@ Code Description
150
150
============== =====================================================================
151
151
SXL001 Double backticked variable should be a link to Python documentation.
152
152
============== =====================================================================
153
+
154
+ Use as a pre-commit hook
155
+ --------------------------
156
+
157
+ See `pre-commit <https://github.com/pre-commit/pre-commit >`_ for instructions
158
+
159
+ Sample `.pre-commit-config.yaml `:
160
+
161
+ ```yaml
162
+ - repo: https://gitlab.com/pycqa/flake8
163
+ rev: 3.8.1
164
+ hooks:
165
+ - id: flake8
166
+ additional_dependencies: [flake8-sphinx-links==0.0.4]
167
+ ` ``
Original file line number Diff line number Diff line change @@ -149,6 +149,23 @@ Installation
149
149
150
150
.. end installation
151
151
152
+
153
+ Use as a pre-commit hook
154
+ --------------------------
155
+
156
+ See `pre-commit <https://github.com/pre-commit/pre-commit >`_ for instructions
157
+
158
+ Sample `.pre-commit-config.yaml `:
159
+
160
+ ```yaml
161
+ - repo: https://gitlab.com/pycqa/flake8
162
+ rev: 3.8.1
163
+ hooks:
164
+ - id: flake8
165
+ additional_dependencies: [flake8-sphinx-links==0.0.4]
166
+ ` ``
167
+
168
+
152
169
.. toctree ::
153
170
:hidden:
154
171
You can’t perform that action at this time.
0 commit comments