diff options
author | Pierre Sassoulas <pierre.sassoulas@gmail.com> | 2019-03-09 11:23:15 +0100 |
---|---|---|
committer | Claudiu Popa <pcmanticore@gmail.com> | 2019-03-20 09:07:35 +0100 |
commit | 2d525d68249cf00c4dbb521e331e99b481a113c3 (patch) | |
tree | 29ab4faad229c838ab74b97349fd9922cd14613e /doc/exts/pylint_features.py | |
parent | 5ab140ac3b3dda6f32e0f73aeec09abf015ea30f (diff) | |
download | pylint-git-2d525d68249cf00c4dbb521e331e99b481a113c3.tar.gz |
Style - Re-Apply black following the isort cleanup
Change with isort triggered change with black.
Diffstat (limited to 'doc/exts/pylint_features.py')
-rwxr-xr-x | doc/exts/pylint_features.py | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/doc/exts/pylint_features.py b/doc/exts/pylint_features.py index 2ff0e52a7..4803efc9a 100755 --- a/doc/exts/pylint_features.py +++ b/doc/exts/pylint_features.py @@ -15,12 +15,13 @@ from pylint.lint import PyLinter def builder_inited(app): # PACKAGE/docs/exts/pylint_extensions.py --> PACKAGE/ base_path = os.path.dirname( - os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) + os.path.dirname(os.path.dirname(os.path.abspath(__file__))) + ) linter = PyLinter() linter.load_default_plugins() - features = os.path.join(base_path, 'doc', 'technical_reference', 'features.rst') - with open(features, 'w') as stream: + features = os.path.join(base_path, "doc", "technical_reference", "features.rst") + with open(features, "w") as stream: stream.write("Pylint features\n") stream.write("===============\n\n") stream.write(".. generated by pylint --full-documentation\n\n") @@ -28,8 +29,9 @@ def builder_inited(app): def setup(app): - app.connect('builder-inited', builder_inited) - return {'version': sphinx.__display_version__} + app.connect("builder-inited", builder_inited) + return {"version": sphinx.__display_version__} + if __name__ == "__main__": builder_inited(None) |