Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pre-commit.ci] pre-commit autoupdate #63

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
fail_fast: true
repos:
- repo: https://github.com/ambv/black
rev: 23.3.0
- repo: https://github.com/psf/black
rev: 24.10.0
hooks:
- id: black
language_version: python3.10
Expand Down
4 changes: 1 addition & 3 deletions warg/colors/label_colors.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,7 @@
from warg import TripleNumber


def compute_color_for_labels(
label: int, palette: TripleNumber = (2**11 - 1, 2**15 - 1, 2**20 - 1)
) -> Tuple:
def compute_color_for_labels(label: int, palette: TripleNumber = (2**11 - 1, 2**15 - 1, 2**20 - 1)) -> Tuple:
"""
Simple function that adds fixed color depending on the class"""
return (*[int(((label > 0) * p * (label**2 - label + 1)) % 255) for p in palette],)
Expand Down
6 changes: 2 additions & 4 deletions warg/data_structures/ordered_set.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,12 +91,10 @@ def __len__(self):
return len(self.items)

@overload
def __getitem__(self, index: Sequence[int]) -> List[T]:
...
def __getitem__(self, index: Sequence[int]) -> List[T]: ...

@overload
def __getitem__(self, index: slice) -> "OrderedSet[T]":
...
def __getitem__(self, index: slice) -> "OrderedSet[T]": ...

def __getitem__(self, index: int) -> T:
"""
Expand Down
2 changes: 1 addition & 1 deletion warg/os_utilities/platform_selection.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ def get_backend_module(project_name: str, backend_name: str = sys.platform) -> M
"appindicator",
"gtk",
"xorg",
"gtk_dbus"
"gtk_dbus",
# "unity", "kde", "gnome", "fallback",
]

Expand Down
2 changes: 1 addition & 1 deletion warg/text.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"ize": "ise",
"yze": "yse",
"iza": "isa",
"aluminum": "aluminium"
"aluminum": "aluminium",
# 'se': 'ce',
# 'og': 'ogue',
}
Expand Down
Loading