Skip to content

Commit

Permalink
chore: update
Browse files Browse the repository at this point in the history
  • Loading branch information
AceofSpades5757 committed Apr 18, 2024
2 parents 446ebb6 + c1fef41 commit fbc9359
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ repos:
- --lines-after-imports=2
# Python - Code Formatting
- repo: https://github.com/psf/black
rev: 24.3.0
rev: 24.4.0
hooks:
- id: black
name: Formatter
Expand Down
2 changes: 1 addition & 1 deletion src/clipboard/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
from clipboard.errors import LockError
from clipboard.errors import OpenClipboardError
from clipboard.errors import SetClipboardError
from clipboard.html_clipboard import HTML_ENCODING
from clipboard.formats import get_format_name
from clipboard.html_clipboard import HTML_ENCODING


__all__ = [
Expand Down
2 changes: 1 addition & 1 deletion src/clipboard/clipboard.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@


def get_clipboard(
format: Optional[Union[int, ClipboardFormat]] = None,
format: Optional[Union[int, ClipboardFormat]] = None
) -> Optional[Union[str, bytes]]:
"""Conveniency wrapper to get clipboard.
Expand Down
5 changes: 2 additions & 3 deletions tests/readme_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@ def test_clipboard_formats(self) -> None:
from clipboard import ClipboardFormat
from clipboard import get_format_name


with Clipboard() as clipboard:

# Get All Available Formats
Expand Down Expand Up @@ -111,11 +110,10 @@ def test_clipboard_formats(self) -> None:
def test_get_all_supported_formats(self) -> None:
"""https://github.com/AceofSpades5757/clip-util?tab=readme-ov-file#get-all-supported-formats"""
from clipboard import get_available_formats
from clipboard import get_format_name
from clipboard import get_clipboard
from clipboard import get_format_name
from clipboard import set_clipboard


set_clipboard("Hello World!")
available: list[int] = get_available_formats()
print(f"{available=}")
Expand All @@ -125,5 +123,6 @@ def test_get_all_supported_formats(self) -> None:
content: str = get_clipboard(format_id)
print(f"{format_id=}", f"{name=}, {content=}")


if __name__ == "__main__":
unittest.main()

0 comments on commit fbc9359

Please sign in to comment.