diff --git a/.github/workflows/binder-badge.yaml b/.github/workflows/binder-badge.yaml index 3f3fb1a..0abedb1 100644 --- a/.github/workflows/binder-badge.yaml +++ b/.github/workflows/binder-badge.yaml @@ -17,7 +17,7 @@ jobs: script: | var PR_HEAD_USERREPO = process.env.PR_HEAD_USERREPO; var PR_HEAD_REF = process.env.PR_HEAD_REF; - github.issues.createComment({ + github.rest.issues.createComment({ issue_number: context.issue.number, owner: context.repo.owner, repo: context.repo.repo, diff --git a/CODE_OF_CONDUCT.md b/CODE_OF_CONDUCT.md index 0f1778a..9011301 100644 --- a/CODE_OF_CONDUCT.md +++ b/CODE_OF_CONDUCT.md @@ -1,3 +1,3 @@ # Code of conduct -Contributors to this respository are expected to follow the [Python Software Foundation Code of Conduct](https://www.python.org/psf/conduct/)in their interactions in pull requests, issues, and other interactions related to this package. +Contributors to this repository are expected to follow the [Python Software Foundation Code of Conduct](https://www.python.org/psf/conduct/)in their interactions in pull requests, issues, and other interactions related to this package. diff --git a/docs/events.ipynb b/docs/events.ipynb index e9ec273..7a5c0e0 100644 --- a/docs/events.ipynb +++ b/docs/events.ipynb @@ -72,7 +72,7 @@ "source": [ "### If you watch keyboard events then key presses are *not* passed on to the notebook \n", "\n", - "This is to prevent the user from, e.g., inadvertantly cutting a cell by pressing `x` over a widget that is catching key events." + "This is to prevent the user from, e.g., inadvertently cutting a cell by pressing `x` over a widget that is catching key events." ] }, { @@ -314,7 +314,7 @@ "The positions are relative to the part of the page currently visible in the browser window, which are the same coordinates as `clientX` and `clientY` for the mouse position.\n", "\n", "+ `boundingRectWidth`, `boundingRectHeight`: Width and height of the element in pixels.\n", - "+ `boundingRectTop`, `boundingRectLeft`, `boundingRectBottom`, `boundingRectRight`: Top, left, bottom and right positions of the upper left and lower right corners of the element, in the same coordiinates as the mouse position `clientX` and `clientY`." + "+ `boundingRectTop`, `boundingRectLeft`, `boundingRectBottom`, `boundingRectRight`: Top, left, bottom and right positions of the upper left and lower right corners of the element, in the same coordinates as the mouse position `clientX` and `clientY`." ] }, { diff --git a/ipyevents/events.py b/ipyevents/events.py index 7345369..d151667 100644 --- a/ipyevents/events.py +++ b/ipyevents/events.py @@ -23,7 +23,7 @@ class Event(CoreWidget): ignore_modifier_key_events : bool If ``True``, ignore key presses of modifier keys ('Shift', 'Control', 'Alt', 'Meta'). Useful when keys mouse events - with modifiers are watched but you want ot ignore the modifiers by + with modifiers are watched but you want to ignore the modifiers by themselves. Default is ``False``. prevent_default_actions : bool diff --git a/ipyevents/tests/test_events.py b/ipyevents/tests/test_events.py index 2eeb12e..bb310f7 100644 --- a/ipyevents/tests/test_events.py +++ b/ipyevents/tests/test_events.py @@ -82,7 +82,7 @@ def test_negative_wait_raises_error(): def test_floating_point_wait_raises_error(): - # A floating point value should reaise a TraitletError + # A floating point value should raise a TraitletError event_widget = Event() with pytest.raises(traitlets.traitlets.TraitError) as e: diff --git a/pyproject.toml b/pyproject.toml index 4ea79f0..4d18a3c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -10,7 +10,7 @@ name = "ipyevents" description = "A custom widget for returning mouse and keyboard events to Python" readme = "README.md" license = {text = "BSD 3-clause"} -lincense_files = ["LICENSE.md"] +license_files = ["LICENSE.md"] requires-python = ">=3.6" authors = [ { name = "Matt Craig", email = "mattwcraig@gmail.com" },