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