Skip to content

Commit

Permalink
refactor: Disable blacken-docs temporarily
Browse files Browse the repository at this point in the history
Waiting for adamchainz/blacken-docs#287 to be reviewed/merged.
  • Loading branch information
pawamoy committed Oct 12, 2023
1 parent e2bccde commit 7c110ca
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions project/duties.py.jinja
Expand Up @@ -10,7 +10,7 @@ from pathlib import Path
from typing import TYPE_CHECKING, Iterator

from duty import duty
from duty.callables import black, blacken_docs, coverage, lazy, mkdocs, mypy, pytest, ruff, safety
from duty.callables import black, coverage, lazy, mkdocs, mypy, pytest, ruff, safety

if TYPE_CHECKING:
from duty.context import Context
Expand Down Expand Up @@ -242,11 +242,11 @@ def format(ctx: Context) -> None:
title="Auto-fixing code",
)
ctx.run(black.run(*PY_SRC_LIST, config="config/black.toml"), title="Formatting code")
ctx.run(
{#- ctx.run(
blacken_docs.run(*PY_SRC_LIST, "docs", exts=["py", "md"], line_length=120),
title="Formatting docs",
nofail=True,
)
) #}


@duty{% if not testing %}(post=["docs-deploy"]){% endif %}
Expand Down

0 comments on commit 7c110ca

Please sign in to comment.