diff --git a/beets/art.py b/beets/art.py
index c38c38ae2..0ee63f94b 100644
--- a/beets/art.py
+++ b/beets/art.py
@@ -143,8 +143,7 @@ def resize_image(log, imagepath, maxwidth, quality):
specified quality level.
"""
log.debug(
- "Resizing album art to {0} pixels wide and encoding at quality \
- level {1}",
+ "Resizing album art to {0} pixels wide and encoding at quality level {1}",
maxwidth,
quality,
)
diff --git a/beets/ui/__init__.py b/beets/ui/__init__.py
index 2c243c8b2..6540479c3 100644
--- a/beets/ui/__init__.py
+++ b/beets/ui/__init__.py
@@ -1609,8 +1609,8 @@ def _ensure_db_directory_exists(path):
newpath = os.path.dirname(path)
if not os.path.isdir(newpath):
if input_yn(
- f"The database directory {util.displayable_path(newpath)} does not \
- exist. Create it (Y/n)?"
+ f"The database directory {util.displayable_path(newpath)} does not"
+ " exist. Create it (Y/n)?"
):
os.makedirs(newpath)
diff --git a/beetsplug/absubmit.py b/beetsplug/absubmit.py
index 63d4ada7e..62a248482 100644
--- a/beetsplug/absubmit.py
+++ b/beetsplug/absubmit.py
@@ -118,8 +118,10 @@ class AcousticBrainzSubmitPlugin(plugins.BeetsPlugin):
dest="pretend_fetch",
action="store_true",
default=False,
- help="pretend to perform action, but show \
-only files which would be processed",
+ help=(
+ "pretend to perform action, but show only files which would be"
+ " processed"
+ ),
)
cmd.func = self.command
return [cmd]
diff --git a/beetsplug/convert.py b/beetsplug/convert.py
index 3e3295808..26cf59d62 100644
--- a/beetsplug/convert.py
+++ b/beetsplug/convert.py
@@ -176,16 +176,17 @@ class ConvertPlugin(BeetsPlugin):
"--threads",
action="store",
type="int",
- help="change the number of threads, \
- defaults to maximum available processors",
+ help=(
+ "change the number of threads, defaults to maximum available"
+ " processors"
+ ),
)
cmd.parser.add_option(
"-k",
"--keep-new",
action="store_true",
dest="keep_new",
- help="keep only the converted \
- and move the old files",
+ help="keep only the converted and move the old files",
)
cmd.parser.add_option(
"-d", "--dest", action="store", help="set the destination directory"
@@ -209,16 +210,16 @@ class ConvertPlugin(BeetsPlugin):
"--link",
action="store_true",
dest="link",
- help="symlink files that do not \
- need transcoding.",
+ help="symlink files that do not need transcoding.",
)
cmd.parser.add_option(
"-H",
"--hardlink",
action="store_true",
dest="hardlink",
- help="hardlink files that do not \
- need transcoding. Overrides --link.",
+ help=(
+ "hardlink files that do not need transcoding. Overrides --link."
+ ),
)
cmd.parser.add_option(
"-m",
diff --git a/beetsplug/metasync/amarok.py b/beetsplug/metasync/amarok.py
index 1e0793d25..47e6a1a65 100644
--- a/beetsplug/metasync/amarok.py
+++ b/beetsplug/metasync/amarok.py
@@ -44,11 +44,12 @@ class Amarok(MetaSource):
"amarok_lastplayed": types.DATE,
}
- query_xml = ' \
- \
- \
- \
- '
+ query_xml = """
+
+
+
+
+ """
def __init__(self, config, log):
super().__init__(config, log)
diff --git a/beetsplug/parentwork.py b/beetsplug/parentwork.py
index ab2d39b2b..5b5f215f3 100644
--- a/beetsplug/parentwork.py
+++ b/beetsplug/parentwork.py
@@ -179,8 +179,7 @@ class ParentWorkPlugin(BeetsPlugin):
if not item.mb_workid:
self._log.info(
- "No work for {}, \
-add one at https://musicbrainz.org/recording/{}",
+ "No work for {}, add one at https://musicbrainz.org/recording/{}",
item,
item.mb_trackid,
)
diff --git a/beetsplug/replaygain.py b/beetsplug/replaygain.py
index a008bec38..97e7ee294 100644
--- a/beetsplug/replaygain.py
+++ b/beetsplug/replaygain.py
@@ -1542,8 +1542,10 @@ class ReplayGainPlugin(BeetsPlugin):
"--threads",
dest="threads",
type=int,
- help="change the number of threads, \
- defaults to maximum available processors",
+ help=(
+ "change the number of threads, defaults to maximum available"
+ " processors"
+ ),
)
cmd.parser.add_option(
"-f",
diff --git a/test/plugins/test_parentwork.py b/test/plugins/test_parentwork.py
index 99267f6ff..1abe25709 100644
--- a/test/plugins/test_parentwork.py
+++ b/test/plugins/test_parentwork.py
@@ -93,8 +93,7 @@ class ParentWorkIntegrationTest(PluginTestCase):
item = Item(
path="/file",
mb_workid="e27bda6e-531e-36d3-9cd7-b8ebc18e8c53",
- parentwork_workid_current="e27bda6e-531e-36d3-9cd7-\
- b8ebc18e8c53",
+ parentwork_workid_current="e27bda6e-531e-36d3-9cd7-b8ebc18e8c53",
)
item.add(self.lib)
@@ -109,8 +108,7 @@ class ParentWorkIntegrationTest(PluginTestCase):
path="/file",
mb_workid="e27bda6e-531e-36d3-9cd7-b8ebc18e8c53",
mb_parentworkid="XXX",
- parentwork_workid_current="e27bda6e-531e-36d3-9cd7-\
- b8ebc18e8c53",
+ parentwork_workid_current="e27bda6e-531e-36d3-9cd7-b8ebc18e8c53",
parentwork="whatever",
)
item.add(self.lib)
@@ -124,11 +122,9 @@ class ParentWorkIntegrationTest(PluginTestCase):
self.config["parentwork"]["force"] = False
item = Item(
path="/file",
- mb_workid="e27bda6e-531e-36d3-9cd7-\
- b8ebc18e8c53",
+ mb_workid="e27bda6e-531e-36d3-9cd7-b8ebc18e8c53",
mb_parentworkid="XXX",
- parentwork_workid_current="e27bda6e-531e-36d3-9cd7-\
- b8ebc18e8c53",
+ parentwork_workid_current="e27bda6e-531e-36d3-9cd7-b8ebc18e8c53",
parentwork="whatever",
)
item.add(self.lib)