Fix various typos

Found via `codespell -q 3`
This commit is contained in:
luz paz 2021-09-12 09:25:29 -04:00 committed by Rebecca
parent 206f216f81
commit 9a518703da
5 changed files with 10 additions and 10 deletions

View file

@ -42,7 +42,7 @@ Follow further releases via the `atom feed <https://github.com/rbreu/beeref/rele
Development Version
~~~~~~~~~~~~~~~~~~~
To get the current delevopment version, you need to have a working Python 3 environment. Run the following command to install the development version::
To get the current development version, you need to have a working Python 3 environment. Run the following command to install the development version::
pip install git+https://github.com/rbreu/beeref.git

View file

@ -64,7 +64,7 @@ parser.add_argument(
class CommandlineArgs:
"""Wrapper around argument parsing.
Checking for unknown arugments is configurable so that it can be
Checking for unknown arguments is configurable so that it can be
deliberately enabled from the main() function while ignored for
other imports so that unit tests won't fail.
@ -157,7 +157,7 @@ class KeyboardSettings(QtCore.QSettings):
values = self.value(f'{group}/{key}')
if values is not None:
values = list(filter(lambda x: x, values.split(', ')))
logger.debug(f'Found custom shorcuts for {group}/{key}: {values}')
logger.debug(f'Found custom shortcuts for {group}/{key}: {values}')
return values
return default or []

View file

@ -43,7 +43,7 @@ logger = logging.getLogger(__name__)
def is_bee_file(path):
"""Check wether the file at the given path is a bee file."""
"""Check whether the file at the given path is a bee file."""
print(os.path.splitext(path)[1])
return os.path.splitext(path)[1] == '.bee'

View file

@ -41,7 +41,7 @@ def with_anchor(func):
"""
def wrapper(self, *args, **kwargs):
# We caculate where the anchor is before and after the transformation
# We calculate where the anchor is before and after the transformation
# and then move the item accordingly to keep the anchor fixed
anchor = kwargs.pop('anchor', None)
@ -244,7 +244,7 @@ class SelectableMixin(BaseItemMixin):
path.addRect(utils.get_rect_from_points(p1, p2))
# Substract the scale area:
# We need to make the substracted shape slighty bigger due to this bug:
# We need to make the substracted shape slightly bigger due to this bug:
# https://bugreports.qt.io/browse/QTBUG-57567
return path - self.get_scale_bounds(corner, margin=0.001)

View file

@ -385,7 +385,7 @@ class BeeGraphicsView(QtWidgets.QGraphicsView, ActionsMixin):
"""Callback for when loading of images is finished.
:param new_scene: True if the scene was empty before, else False
:param filename: Not used, for compability only
:param filename: Not used, for compatibility only
:param errors: List of filenames that couldn't be loaded
"""
@ -432,7 +432,7 @@ class BeeGraphicsView(QtWidgets.QGraphicsView, ActionsMixin):
logger.debug(f'Supported image types for reading: {formats}')
filenames, f = QtWidgets.QFileDialog.getOpenFileNames(
parent=self,
caption='Select one ore more images to open',
caption='Select one or more images to open',
filter=f'Images ({formats})')
self.do_insert_images(filenames)
@ -562,10 +562,10 @@ class BeeGraphicsView(QtWidgets.QGraphicsView, ActionsMixin):
logger.debug('No items in scene; ignore zoom')
return
# We caculate where the anchor is before and after the zoom
# We calculate where the anchor is before and after the zoom
# and then move the view accordingly to keep the anchor fixed
# We can't use QGraphicsView's AnchorUnderMouse since it
# uses the current cursor position while we need the inital mouse
# uses the current cursor position while we need the initial mouse
# press position for zooming with Ctrl + Middle Drag
anchor = QtCore.QPoint(round(anchor.x()),
round(anchor.y()))