Skip to content

Commit

Permalink
Merge pull request #4871 from luzpaz/typos
Browse files Browse the repository at this point in the history
Fix various typos
  • Loading branch information
wisp3rwind authored Aug 10, 2023
2 parents 290c1df + 8419149 commit f75dc3d
Show file tree
Hide file tree
Showing 28 changed files with 36 additions and 36 deletions.
2 changes: 1 addition & 1 deletion CONTRIBUTING.rst
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ guidelines to follow:
- If you have a Unicode path or you’re not sure whether something is
Unicode or not, pass it through ``bytestring_path`` function in the
``beets.util`` module to convert it to bytes.
- Pass every path name trough the ``syspath`` function (also in
- Pass every path name through the ``syspath`` function (also in
``beets.util``) before sending it to any *operating system* file
operation (``open``, for example). This is necessary to use long
filenames (which, maddeningly, must be Unicode) on Windows. This
Expand Down
2 changes: 1 addition & 1 deletion beets/autotag/mb.py
Original file line number Diff line number Diff line change
Expand Up @@ -708,7 +708,7 @@ def _merge_pseudo_and_actual_album(
According to the ticket PICARD-145, the main release id should be used.
But the ticket has been in limbo since over a decade now.
It also suggests the introduction of the tag `musicbrainz_pseudoreleaseid`,
but as of this field can't be found in any offical Picard docs,
but as of this field can't be found in any official Picard docs,
hence why we did not implement that for now.
"""
merged = pseudo.copy()
Expand Down
4 changes: 2 additions & 2 deletions beets/dbcore/query.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@


class ParsingError(ValueError):
"""Abstract class for any unparseable user-requested album/query
"""Abstract class for any unparsable user-requested album/query
specification.
"""

Expand Down Expand Up @@ -549,7 +549,7 @@ def match(self, obj: Model) -> bool:


class NotQuery(Query):
"""A query that matches the negation of its `subquery`, as a shorcut for
"""A query that matches the negation of its `subquery`, as a shortcut for
performing `not(subquery)` without using regular expressions.
"""

Expand Down
2 changes: 1 addition & 1 deletion beets/importer.py
Original file line number Diff line number Diff line change
Expand Up @@ -1456,7 +1456,7 @@ def user_query(session, task):
and the processed task is yielded.
It emits the ``import_task_choice`` event for plugins. Plugins have
acces to the choice via the ``taks.choice_flag`` property and may
access to the choice via the ``task.choice_flag`` property and may
choose to change it.
"""
if task.skip:
Expand Down
2 changes: 1 addition & 1 deletion beets/library.py
Original file line number Diff line number Diff line change
Expand Up @@ -1790,7 +1790,7 @@ def _tmpl_unique(self, name, keys, disam, bracket, item_id, db_item,
should return an empty string.
"initial_subqueries" is a list of subqueries that should be included
in the query to find the ambigous items.
in the query to find the ambiguous items.
"""
memokey = self._tmpl_unique_memokey(name, keys, disam, item_id)
memoval = self.lib._memotable.get(memokey)
Expand Down
2 changes: 1 addition & 1 deletion beets/ui/completion_base.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
# plugins dynamically
#
# Currently, only Bash 3.2 and newer is supported and the
# `bash-completion` package is requied.
# `bash-completion` package is required.
#
# TODO
# ----
Expand Down
2 changes: 1 addition & 1 deletion beets/util/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ def sorted_walk(
pattern in `ignore` are skipped. If `logger` is provided, then
warning messages are logged there when a directory cannot be listed.
"""
# Make sure the pathes aren't Unicode strings.
# Make sure the paths aren't Unicode strings.
path = bytestring_path(path)
ignore = [bytestring_path(i) for i in ignore]

Expand Down
4 changes: 2 additions & 2 deletions beets/util/artresizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,7 @@ def resize(self, maxwidth, path_in, path_out=None, quality=0,
else:
lower_qual = 95
for i in range(5):
# 5 attempts is an abitrary choice
# 5 attempts is an arbitrary choice
filesize = os.stat(syspath(path_out)).st_size
log.debug("PIL Pass {0} : Output size: {1}B", i, filesize)
if filesize <= max_filesize:
Expand Down Expand Up @@ -498,7 +498,7 @@ class ArtResizer(metaclass=Shareable):
def __init__(self):
"""Create a resizer object with an inferred method.
"""
# Check if a local backend is availabe, and store an instance of the
# Check if a local backend is available, and store an instance of the
# backend class. Otherwise, fallback to the web proxy.
for backend_cls in BACKEND_CLASSES:
try:
Expand Down
2 changes: 1 addition & 1 deletion beets/util/hidden.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def _is_hidden_win(path):
# Retrieve the attributes for the file.
attrs = ctypes.windll.kernel32.GetFileAttributesW(beets.util.syspath(path))

# Ensure we have valid attribues and compare them against the mask.
# Ensure we have valid attributes and compare them against the mask.
return attrs >= 0 and attrs & hidden_mask


Expand Down
2 changes: 1 addition & 1 deletion beetsplug/absubmit.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ def __init__(self):
self.extractor = self.config['extractor'].as_str()
if self.extractor:
self.extractor = util.normpath(self.extractor)
# Expicit path to extractor
# Explicit path to extractor
if not os.path.isfile(self.extractor):
raise ui.UserError(
'Extractor command does not exist: {0}.'.
Expand Down
4 changes: 2 additions & 2 deletions beetsplug/export.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,9 @@ def __init__(self):
'csv': {
# CSV module formatting options.
'formatting': {
# The delimiter used to seperate columns.
# The delimiter used to separate columns.
'delimiter': ',',
# The dialect to use when formating the file output.
# The dialect to use when formatting the file output.
'dialect': 'excel'
}
},
Expand Down
2 changes: 1 addition & 1 deletion beetsplug/fetchart.py
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,7 @@ def get_image_urls(url, preferred_width=None):

# Cover Art Archive API offers pre-resized thumbnails at several sizes.
# If the maxwidth config matches one of the already available sizes
# fetch it directly intead of fetching the full sized image and
# fetch it directly instead of fetching the full sized image and
# resizing it.
preferred_width = None
if plugin.maxwidth in self.VALID_THUMBNAIL_SIZES:
Expand Down
2 changes: 1 addition & 1 deletion beetsplug/lyrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,7 @@ def __init__(self, config, log):
def fetch(self, artist, title):
"""Fetch lyrics from genius.com
Because genius doesn't allow accesssing lyrics via the api,
Because genius doesn't allow accessing lyrics via the api,
we first query the api for a url matching our artist & title,
then attempt to scrape that url for the lyrics.
"""
Expand Down
2 changes: 1 addition & 1 deletion beetsplug/sonosupdate.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def listen_for_db_change(self, lib, model):

def update(self, lib):
"""When the client exists try to send refresh request to a Sonos
controler.
controller.
"""
self._log.info('Requesting a Sonos library update...')

Expand Down
2 changes: 1 addition & 1 deletion beetsplug/thumbnails.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ def process_query(self, lib, opts, args):
self.process_album(album)

def _check_local_ok(self):
"""Check that's everythings ready:
"""Check that everything is ready:
- local capability to resize images
- thumbnail dirs exist (create them if needed)
- detect whether we'll use PIL or IM
Expand Down
8 changes: 4 additions & 4 deletions docs/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ Bug fixes:
* :doc:`plugins/lyrics`: Fixed issue with Genius header being included in lyrics,
added test case of up-to-date Genius html
* :doc:`plugins/importadded`: Fix a bug with recently added reflink import option
that casues a crash when ImportAdded plugin enabled.
that causes a crash when ImportAdded plugin enabled.
:bug:`4389`
* :doc:`plugins/convert`: Fix a bug with the `wma` format alias.
* :doc:`/plugins/web`: Fix get file from item.
Expand All @@ -197,7 +197,7 @@ Bug fixes:
:bug:`4561` :bug:`4600`
* Fix issue where deletion of flexible fields on an album doesn't cascade to items
:bug:`4662`
* Fix issue where ``beet write`` continuosly retags the ``albumtypes`` metadata
* Fix issue where ``beet write`` continuously retags the ``albumtypes`` metadata
field in files. Additionally broken data could have been added to the library
when the tag was read from file back into the library using ``beet update``.
It is required for all users to **check if such broken data is present in the
Expand Down Expand Up @@ -2766,7 +2766,7 @@ Still more fixes and little improvements:
title were found.
* Fix a crash when reading some files with missing tags.
* :doc:`/plugins/discogs`: Compatibility with the new 2.0 version of the
`discogs_client`_ Python library. If you were using the old version, you wil
`discogs_client`_ Python library. If you were using the old version, you will
need to upgrade to the latest version of the library to use the
correspondingly new version of the plugin (e.g., with
``pip install -U discogs-client``). Thanks to Andriy Kohut.
Expand Down Expand Up @@ -4834,7 +4834,7 @@ Here's the detailed list of changes:
(This means it might fail if that album can't be found.) Also, you can now
abort the tagging process by entering ``b`` (for aBort) at any of the prompts.

* Overhauled methods for handling fileystem paths to allow filenames that have
* Overhauled methods for handling filesystem paths to allow filenames that have
badly encoded special characters. These changes are pretty fragile, so please
report any bugs involving ``UnicodeError`` or SQLite ``ProgrammingError``
messages in this version.
Expand Down
2 changes: 1 addition & 1 deletion docs/plugins/absubmit.rst
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ To run the analysis program and upload its results, type::

By default, the command will only look for AcousticBrainz data when the tracks
don't already have it; the ``-f`` or ``--force`` switch makes it refetch
data even when it already exists. You can use the ``-d`` or ``--dry`` swtich
data even when it already exists. You can use the ``-d`` or ``--dry`` switch
to check which files will be analyzed, before you start a longer period
of processing.

Expand Down
2 changes: 1 addition & 1 deletion docs/plugins/aura.rst
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ For example::
- https://aura.example.org

In order to use the plugin with a local browser client accessed using
``file:///`` you must inclue ``'null'`` in the list of allowed origins
``file:///`` you must include ``'null'`` in the list of allowed origins
(including quote marks)::

aura:
Expand Down
2 changes: 1 addition & 1 deletion docs/plugins/fetchart.rst
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ Last.fm

To use the Last.fm backend, you need to `register for a Last.fm API key`_. Set
the ``lastfm_key`` configuration option to your API key, then add ``lastfm`` to
the list of sources in your configutation.
the list of sources in your configuration.

.. _register for a Last.fm API key: https://www.last.fm/api/account/create

Expand Down
2 changes: 1 addition & 1 deletion docs/plugins/limit.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Limit Query Plugin

``limit`` is a plugin to limit a query to the first or last set of
results. We also provide a query prefix ``'<n'`` to inline the same
behavior in the ``list`` command. They are analagous to piping results:
behavior in the ``list`` command. They are analogous to piping results:

$ beet [list|ls] [QUERY] | [head|tail] -n n

Expand Down
2 changes: 1 addition & 1 deletion docs/plugins/replaygain.rst
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ Once installed, this plugin analyzes all files during the import process. This
can be a slow process; to instead analyze after the fact, disable automatic
analysis and use the ``beet replaygain`` command (see below).

To speed up analysis with some of the avalaible backends, this plugin processes
To speed up analysis with some of the available backends, this plugin processes
tracks or albums (when using the ``-a`` option) in parallel. By default,
a single thread is used per logical core of your CPU.

Expand Down
2 changes: 1 addition & 1 deletion docs/reference/config.rst
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ path_sep_replace
A string that replaces the path separator (for example, the forward slash
``/`` on Linux and MacOS, and the backward slash ``\\`` on Windows) when
generating filenames with beets.
This option is related to :ref:`replace`, but is distict from it for
This option is related to :ref:`replace`, but is distinct from it for
technical reasons.

.. warning::
Expand Down
2 changes: 1 addition & 1 deletion test/helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ def create_item(self, **values):
The item receives its attributes from `**values` paratmeter. The
`title`, `artist`, `album`, `track`, `format` and `path`
attributes have defaults if they are not given as parameters.
The `title` attribute is formated with a running item count to
The `title` attribute is formatted with a running item count to
prevent duplicates. The default for the `path` attribute
respects the `format` value.
Expand Down
4 changes: 2 additions & 2 deletions test/test_lyrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -509,7 +509,7 @@ def test_json(self, mock_fetch_url, mock_scrape):
mock_fetch_url.assert_called_once_with("blackbear_url")
mock_scrape.assert_called_once_with(True)

# genius uses the hypen minus (\u002D) as their dash
# genius uses the hyphen minus (\u002D) as their dash
self.assertIsNotNone(genius.fetch('El-p', 'Idfc'))
mock_fetch_url.assert_called_with('El-p_url')
mock_scrape.assert_called_with(True)
Expand Down Expand Up @@ -628,7 +628,7 @@ def test_no_matching_results(self):
self.assertEqual(lyrics, None)


# test utilties
# test utilities

class SlugTests(unittest.TestCase):

Expand Down
2 changes: 1 addition & 1 deletion test/test_mb.py
Original file line number Diff line number Diff line change
Expand Up @@ -691,7 +691,7 @@ def test_follow_pseudo_releases(self):
'release': {
'title': 'actual',
'id': 'd2a6f856-b553-40a0-ac54-a321e8e2da01',
'status': 'Offical',
'status': 'Official',
'medium-list': [{
'track-list': [{
'id': 'baz',
Expand Down
2 changes: 1 addition & 1 deletion test/test_plugins.py
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,7 @@ def dummy4(self, bar=None):
def dummy5(self, bar):
test.assertFalse(True)

# more complex exmaples
# more complex examples

def dummy6(self, foo, bar=None):
test.assertEqual(foo, 5)
Expand Down
2 changes: 1 addition & 1 deletion test/test_ui_init.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ def test_create_yes(self):
non_exist_path = _common.util.py3_path(os.path.join(
self.temp_dir, b'nonexist', str(random()).encode()))
# Deepcopy instead of recovering because exceptions might
# occcur; wish I can use a golang defer here.
# occur; wish I can use a golang defer here.
test_config = deepcopy(config)
test_config['library'] = non_exist_path
with control_stdin('y'):
Expand Down
4 changes: 2 additions & 2 deletions test/test_web.py
Original file line number Diff line number Diff line change
Expand Up @@ -423,7 +423,7 @@ def test_delete_item_all_fails(self):
self.assertEqual(response.status_code, 405)

# Note: if this fails, all items have gone and rest of
# tests wil fail!
# tests will fail!

def test_delete_item_id_readonly(self):

Expand Down Expand Up @@ -539,7 +539,7 @@ def test_delete_album_all_fails(self):
self.assertEqual(response.status_code, 405)

# Note: if this fails, all albums have gone and rest of
# tests wil fail!
# tests will fail!

def test_delete_album_id_readonly(self):

Expand Down

0 comments on commit f75dc3d

Please sign in to comment.