-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #106 from robberwick/blacken
Apply Black formatting to codebase
- Loading branch information
Showing
13 changed files
with
703 additions
and
292 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# apply Black to all files | ||
2c4173dbae8564885ece7371e08e220a25ca8dcb |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
name: Formatting | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
black: | ||
runs-on: ubuntu-latest | ||
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: psf/black@stable | ||
with: | ||
options: "--check --verbose" | ||
src: "./src ./tests" |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,17 @@ | ||
from importlib.metadata import version, PackageNotFoundError | ||
|
||
from .blinkstick import BlinkStick, BlinkStickPro, BlinkStickProMatrix | ||
from .blinkstick import find_all, find_by_serial, find_first, get_blinkstick_package_version | ||
from .blinkstick import ( | ||
find_all, | ||
find_by_serial, | ||
find_first, | ||
get_blinkstick_package_version, | ||
) | ||
from .colors import Color, ColorFormat | ||
from .constants import BlinkStickVariant | ||
from .exceptions import BlinkStickException | ||
|
||
try: | ||
__version__ = version("blinkstick") | ||
except PackageNotFoundError: | ||
__version__ = "BlinkStick package not installed" | ||
__version__ = "BlinkStick package not installed" |
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.