Merged
Conversation
Updated `pre-commit` hooks to their latest version, changed the order of `ruff` hooks, updated licencing information for `examples.rst` and added missing licencing text.
Changed `ruff.toml` so `ruff` uses Python 3.13 when checking files in `tests/` and `docs/`.
Created a `pre-commit` hook which synchronises examples in `README.rst` with examples in `examples`.
…admes-usage-example Created a `pre-commit` hook to update examples in `README` Created a `pre-commit` hook which synchronises examples in `README.rst` with examples in examples. Closes #39
Fixed `readme-example-updater` `pre-commit` hook to trigger when examples are updated.
Improved the `readme-example-updater` `pre-commit` hook to raise a warning when including non-existent example files in `README.rst`.
Cleaned examples up by removing unused imports, adding docstrings, renaming files for better readability and adding a simpler example for double button set-ups.
Reverted `examples/button_handler_simpletest.py` rename so that `pytest` does not test it.
Updated docs to use the new example paths and include the new exmple.
Cleaned examples up by: - Changing file names. - Removing unused imports. - Adding a short description of the example in each of the files' docstring. - Creating a simpler two button set-up usage example. - Improving the `readme-example-updater` `pre-commit` hook to raise a warning when a non-existent file is included in `README.rst`. - Fixing the `readme-example-updater` `pre-commit` hook to trigger when examples are updated. Closes #43
adafruit-adabot
pushed a commit
to adafruit/CircuitPython_Community_Bundle
that referenced
this pull request
Jan 27, 2026
Updating https://github.com/EGJ-Moorington/CircuitPython_Button_Handler to 3.0.3 from 3.0.2: > Release version 3.0.3 (EGJ-Moorington/CircuitPython_Button_Handler#45)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Created a
pre-commithook to update examples inREADME#42Closes Automatically update README's usage example #39
Cleaned examples up #44
Closes Clean examples up #43