diff options
| author | Stephen Finucane <stephen@that.guru> | 2017-10-01 21:57:23 +0100 |
|---|---|---|
| committer | Stephen Finucane <stephen@that.guru> | 2017-10-05 17:17:27 +0100 |
| commit | f5c0d646589ba0da03c4afc1487b0d28751fe774 (patch) | |
| tree | 9d9890b0f50de4f11dce8d307446784e8ae5f2a8 /setup.py | |
| parent | 64b4d7c686e58dfc369a89285718ac988698f34b (diff) | |
| download | sphinx-git-f5c0d646589ba0da03c4afc1487b0d28751fe774.tar.gz | |
utils: Move "header check" to a flake8 plugin
If we want to check style, we run 'tox -e flake8': it shouldn't be
necessary to run some obscure 'make' command too. Make this possible by
moving the sole useful test from the target of this make command to a
flake8 plugin.
This includes a fix for a header that was previously excluded from
checks, but is now included.
Signed-off-by: Stephen Finucane <stephen@that.guru>
Diffstat (limited to 'setup.py')
| -rw-r--r-- | setup.py | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -247,6 +247,13 @@ setup( 'distutils.commands': [ 'build_sphinx = sphinx.setup_command:BuildDoc', ], + # consider moving this to 'flake8:local-plugins' once flake8 3.5.0 is + # in the wild: + # http://flake8.pycqa.org/en/latest/user/configuration.html\ + # #using-local-plugins + 'flake8.extension': [ + 'X101 = utils.checks:sphinx_has_header', + ], }, install_requires=requires, extras_require=extras_require, |
