Skip to content

Commit f57c6bf

Browse files
committed
Updated docs
1 parent 4e554d5 commit f57c6bf

6 files changed

Lines changed: 36 additions & 25 deletions

File tree

doc-source/conf.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@
4646
'sphinxcontrib.default_values',
4747
'sphinxcontrib.toctree_plus',
4848
'seed_intersphinx_mapping',
49+
'sphinx_toolbox.pre_commit',
50+
'sphinx_toolbox.flake8',
4951
]
5052

5153
sphinxemoji_style = 'twemoji'

doc-source/index.rst

Lines changed: 10 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,8 @@ Installation
125125
Usage
126126
--------
127127

128-
This library provides the Flake8 plugin ``flake8-dunder-all`` as well as the ``ensure-dunder-all``,script which adds ``__all__`` to files that require it.
128+
This library provides the Flake8 plugin ``flake8-dunder-all`` as well as the
129+
``ensure-dunder-all`` script which adds ``__all__`` to files that require it.
129130

130131

131132
Using the Flake8 plugin as a pre-commit hook
@@ -137,13 +138,7 @@ See `pre-commit <https://github.com/pre-commit/pre-commit>`_ for instructions
137138

138139
Sample `.pre-commit-config.yaml`:
139140

140-
.. code-block:: yaml
141-
142-
- repo: https://gitlab.com/pycqa/flake8
143-
rev: 3.8.1
144-
hooks:
145-
- id: flake8
146-
additional_dependencies: [flake8-dunder-all==0.0.4]
141+
.. pre-commit:flake8:: 0.0.4
147142
148143
149144
Using the script as a pre-commit hook
@@ -155,12 +150,8 @@ See `pre-commit <https://github.com/pre-commit/pre-commit>`_ for instructions
155150

156151
Sample `.pre-commit-config.yaml`:
157152

158-
.. code-block:: yaml
159-
160-
- repo: https://github.com/domdfcoding/flake8-dunder-all
161-
rev: v0.0.4
162-
hooks:
163-
- id: ensure-dunder-all
153+
.. pre-commit::
154+
:rev: v0.0.4
164155

165156

166157
.. toctree::
@@ -175,6 +166,11 @@ Sample `.pre-commit-config.yaml`:
175166
plugin
176167
script
177168
API Reference<docs>
169+
170+
.. toctree::
171+
:maxdepth: 3
172+
:caption: Contributing
173+
178174
contributing
179175
Source
180176

doc-source/plugin.rst

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@ Flake8 Plugin
55
Flake8 codes
66
--------------
77

8-
============== ====================================
9-
Code Description
10-
============== ====================================
11-
DALL000 DALL000 Module lacks __all__.
12-
============== ====================================
8+
.. flake8-codes:: flake8_dunder_all
9+
10+
DALL000

doc-source/requirements.txt

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,16 @@
11
autodocsumm>=0.2.0
2-
default_values>=0.2.0
3-
domdf_sphinx_theme>=0.1.0
4-
extras_require>=0.2.0
5-
seed_intersphinx_mapping>=0.1.1
2+
default-values>=0.2.0
3+
domdf-sphinx-theme>=0.1.0
4+
extras-require>=0.2.0
5+
pyyaml>=5.3.1
6+
seed-intersphinx-mapping>=0.1.1
67
sphinx>=3.0.3
78
sphinx-copybutton>=0.2.12
89
sphinx-notfound-page>=0.5
910
sphinx-prompt>=1.1.0
1011
sphinx-tabs>=1.1.13
11-
sphinx-toolbox>=1.5.1
12+
sphinx-toolbox>=1.6.1
1213
sphinxcontrib-httpdomain>=1.7.0
1314
sphinxemoji>=0.1.6
14-
toctree_plus>=0.0.4
15+
tabulate>=0.8.7
16+
toctree-plus>=0.0.4

repo_helper.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,3 +37,7 @@ classifiers:
3737
console_scripts:
3838
- "ensure_dunder_all=flake8_dunder_all.__main__:main"
3939
- "ensure-dunder-all=flake8_dunder_all.__main__:main"
40+
41+
extra_sphinx_extensions:
42+
- sphinx_toolbox.pre_commit
43+
- sphinx_toolbox.flake8

tox.ini

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ deps =
9393
flake8-builtins
9494
pygments
9595
git+https://github.com/domdfcoding/flake8-quotes.git
96+
git+https://github.com/PyCQA/pydocstyle@5118faa7173b0e5bbc230c4adf628758e13605bf
9697
commands = flake8 flake8_dunder_all tests
9798

9899
[testenv:yapf]
@@ -156,6 +157,11 @@ rst-roles =
156157
issue
157158
asset
158159
confval
160+
data
161+
py:data
162+
py:exc
163+
deco
164+
regex
159165
rst-directives =
160166
envvar
161167
exception
@@ -176,6 +182,9 @@ rst-directives =
176182
rst:directive:option
177183
rst:role
178184
pre-commit-shield
185+
py:data
186+
py:method
187+
py:classmethod
179188
per-file-ignores = tests/*: D100 D101 D102 D103 D104 D106 D201 D204 D207 D208 D209 D210 D211 D212 D213 D214 D215 D300 D301 D400 D402 D403 D404 D415 D417 DALL000
180189
pytest-parametrize-names-type = csv
181190
inline-quotes = "

0 commit comments

Comments
 (0)