Skip to content

Commit

Permalink
Adapt to latest version of black code formatter
Browse files Browse the repository at this point in the history
  • Loading branch information
goerz committed Oct 2, 2020
1 parent e8994be commit ac4057f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Expand Up @@ -13,7 +13,7 @@ repos:
types: [python]
language: script
- repo: https://github.com/ambv/black
rev: 19.10b0
rev: 20.8b1
hooks:
- id: black
args: ['--skip-string-normalization', '--line-length', '79', '--check']
5 changes: 3 additions & 2 deletions src/doctr_versions_menu/__init__.py
Expand Up @@ -17,9 +17,10 @@

def setup(app):
"""Set up the Sphinx extension."""

app.add_config_value(
name="doctr_versions_menu_conf", default={}, rebuild="html",
name="doctr_versions_menu_conf",
default={},
rebuild="html",
)
app.connect('builder-inited', ext.add_versions_menu_js_file)
app.connect('build-finished', ext.cleanup)
Expand Down
3 changes: 1 addition & 2 deletions tests/test_cli.py
Expand Up @@ -207,8 +207,7 @@ def test_many_releases(caplog):


def test_no_release(caplog):
"""Test doctr-versions-menu for when there is no "latest public release".
"""
"""Test doctr-versions-menu for when there is no "latest public release"."""
root = Path(__file__).with_suffix('') / 'gh_pages_no_release'
runner = CliRunner()
caplog.set_level(logging.DEBUG)
Expand Down

0 comments on commit ac4057f

Please sign in to comment.