Skip to content

Commit

Permalink
fix: deprecate hangman
Browse files Browse the repository at this point in the history
  • Loading branch information
vberlier committed Dec 18, 2021
1 parent 1c23893 commit 24ff3cb
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions beet/contrib/hangman.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
]


import logging
import re
from typing import Iterable, Iterator, List, Literal, Optional, Tuple

Expand All @@ -27,6 +28,9 @@
from beet import Context, Function, configurable
from beet.toolchain.utils import stable_hash

logger = logging.getLogger(__name__)


REGEX_COMMENT = re.compile(r"(\s+#(?:\s+.*)?$)")
REGEX_QUOTE = re.compile(r"(\"(?:.*?[^\\])?\"|'(?:.*?[^\\])?')")
REGEX_EXECUTE_RUN = re.compile(
Expand Down Expand Up @@ -56,6 +60,7 @@ def beet_default(ctx: Context):
@configurable(validator=HangmanOptions)
def hangman(ctx: Context, opts: HangmanOptions):
"""Plugin that provides indentation-based syntactic extensions for functions."""
logger.warning("Deprecated in favor of mecha (https://github.com/mcbeet/mecha).")

for path in ctx.data.functions.match(*opts.match):
function = ctx.data.functions[path]
Expand Down

0 comments on commit 24ff3cb

Please sign in to comment.