Skip to content

Commit

Permalink
Ban is True and is False
Browse files Browse the repository at this point in the history
  • Loading branch information
henryruhs committed Feb 26, 2023
1 parent 9e1d2f6 commit 5428576
Show file tree
Hide file tree
Showing 50 changed files with 63 additions and 62 deletions.
10 changes: 5 additions & 5 deletions chroma_feedback/color.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,31 +25,31 @@ def format_by_status(text : str, status : Status) -> str:


def format_passed(text : str) -> str:
if helper.is_windows() is False:
if not helper.is_windows():
return COLOR['green'] + text + COLOR['end']
return text


def format_started(text : str) -> str:
if helper.is_windows() is False:
if not helper.is_windows():
return COLOR['blue'] + text + COLOR['end']
return text


def format_errored(text : str) -> str:
if helper.is_windows() is False:
if not helper.is_windows():
return COLOR['white'] + text + COLOR['end']
return text


def format_warned(text : str) -> str:
if helper.is_windows() is False:
if not helper.is_windows():
return COLOR['yellow'] + text + COLOR['end']
return text


def format_failed(text : str) -> str:
if helper.is_windows() is False:
if not helper.is_windows():
return COLOR['red'] + text + COLOR['end']
return text

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@


def support() -> bool:
return helper.is_linux() is True or helper.is_mac() is True or helper.is_windows() is True
return helper.is_linux() or helper.is_mac() or helper.is_windows()


def init(program : ArgumentParser) -> None:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def process_lights(lights : Any, producer_report : List[ProducerReport]) -> List

def set_light(light : Any, color_config : Color) -> bool:
light.on(tuple(color_config['rgb']))
return light.is_on is True
return light.is_on


def register_reset_light(light : Any) -> None:
Expand Down
2 changes: 1 addition & 1 deletion chroma_feedback/consumer/compulab/fit_statusb/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@


def support() -> bool:
return helper.is_linux() is True or helper.is_mac() is True or helper.is_windows() is True
return helper.is_linux() or helper.is_mac() or helper.is_windows()


def init(program : ArgumentParser) -> None:
Expand Down
2 changes: 1 addition & 1 deletion chroma_feedback/consumer/compulab/fit_statusb/light.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def process_lights(lights : Any, producer_report : List[ProducerReport]) -> List

def set_light(light : Any, color_config : Color) -> bool:
light.on(tuple(color_config['rgb']))
return light.is_on is True
return light.is_on


def register_reset_light(light : Any) -> None:
Expand Down
2 changes: 1 addition & 1 deletion chroma_feedback/consumer/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def process(program : ArgumentParser, producer_report : List[ProducerReport]) ->
for consumer_name in args.consumer:
consumer = load_consumer(consumer_name)

if consumer.support() is True:
if consumer.support():
try:
consumer.init(program)
result.extend(consumer.run(producer_report))
Expand Down
2 changes: 1 addition & 1 deletion chroma_feedback/consumer/elgato/streamdeck/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@


def support() -> bool:
return helper.is_linux() is True or helper.is_mac() is True or helper.is_windows() is True
return helper.is_linux() or helper.is_mac() or helper.is_windows()


def init(program : ArgumentParser) -> None:
Expand Down
6 changes: 3 additions & 3 deletions chroma_feedback/consumer/elgato/streamdeck/device.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def set_device(device : Any, producer_report : List[ProducerReport]) -> bool:
else:
device.set_key_image(index, None)

return device.is_open() is True
return device.is_open()


def open_url(self : Any, index : int, state : bool, producer_report : List[ProducerReport]) -> None:
Expand Down Expand Up @@ -88,9 +88,9 @@ def create_image(device : Any, report : ProducerReport) -> bytes:
def create_transform(image_config : Any) -> QTransform:
transform = QTransform()

if image_config['flip'][0] is True:
if image_config['flip'][0]:
transform.scale(-1, 1)
if image_config['flip'][1] is True:
if image_config['flip'][1]:
transform.scale(1, -1)
if image_config['rotation']:
transform.rotate(image_config['rotation'])
Expand Down
2 changes: 1 addition & 1 deletion chroma_feedback/consumer/embrava/blynclight/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@


def support() -> bool:
return helper.is_linux() is True or helper.is_mac() is True or helper.is_windows() is True
return helper.is_linux() or helper.is_mac() or helper.is_windows()


def init(program : ArgumentParser) -> None:
Expand Down
2 changes: 1 addition & 1 deletion chroma_feedback/consumer/embrava/blynclight/light.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def process_lights(lights : Any, producer_report : List[ProducerReport]) -> List

def set_light(light : Any, color_config : Color) -> bool:
light.on(tuple(color_config['rgb']))
return light.is_on is True
return light.is_on


def register_reset_light(light : Any) -> None:
Expand Down
2 changes: 1 addition & 1 deletion chroma_feedback/consumer/embrava/blynclight_mini/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@


def support() -> bool:
return helper.is_linux() is True or helper.is_mac() is True or helper.is_windows() is True
return helper.is_linux() or helper.is_mac() or helper.is_windows()


def init(program : ArgumentParser) -> None:
Expand Down
2 changes: 1 addition & 1 deletion chroma_feedback/consumer/embrava/blynclight_mini/light.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def process_lights(lights : Any, producer_report : List[ProducerReport]) -> List

def set_light(light : Any, color_config : Color) -> bool:
light.on(tuple(color_config['rgb']))
return light.is_on is True
return light.is_on


def register_reset_light(light : Any) -> None:
Expand Down
2 changes: 1 addition & 1 deletion chroma_feedback/consumer/embrava/blynclight_plus/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@


def support() -> bool:
return helper.is_linux() is True or helper.is_mac() is True or helper.is_windows() is True
return helper.is_linux() or helper.is_mac() or helper.is_windows()


def init(program : ArgumentParser) -> None:
Expand Down
2 changes: 1 addition & 1 deletion chroma_feedback/consumer/embrava/blynclight_plus/light.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def process_lights(lights : Any, producer_report : List[ProducerReport]) -> List

def set_light(light : Any, color_config : Color) -> bool:
light.on(tuple(color_config['rgb']))
return light.is_on is True
return light.is_on


def register_reset_light(light : Any) -> None:
Expand Down
2 changes: 1 addition & 1 deletion chroma_feedback/consumer/gigabyte/rgb_fusion2/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@


def support() -> bool:
return helper.is_linux() is True or helper.is_windows() is True
return helper.is_linux() or helper.is_windows()


def init(program : ArgumentParser) -> None:
Expand Down
2 changes: 1 addition & 1 deletion chroma_feedback/consumer/kuando/busylight_alpha/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@


def support() -> bool:
return helper.is_linux() is True or helper.is_mac() is True or helper.is_windows() is True
return helper.is_linux() or helper.is_mac() or helper.is_windows()


def init(program : ArgumentParser) -> None:
Expand Down
2 changes: 1 addition & 1 deletion chroma_feedback/consumer/kuando/busylight_alpha/light.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def process_lights(lights : Any, producer_report : List[ProducerReport]) -> List

def set_light(light : Any, color_config : Color) -> bool:
light.on(tuple(color_config['rgb']))
return light.is_on is True
return light.is_on


def register_reset_light(light : Any) -> None:
Expand Down
2 changes: 1 addition & 1 deletion chroma_feedback/consumer/kuando/busylight_omega/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@


def support() -> bool:
return helper.is_linux() is True or helper.is_mac() is True or helper.is_windows() is True
return helper.is_linux() or helper.is_mac() or helper.is_windows()


def init(program : ArgumentParser) -> None:
Expand Down
2 changes: 1 addition & 1 deletion chroma_feedback/consumer/kuando/busylight_omega/light.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def process_lights(lights : Any, producer_report : List[ProducerReport]) -> List

def set_light(light : Any, color_config : Color) -> bool:
light.on(tuple(color_config['rgb']))
return light.is_on is True
return light.is_on


def register_reset_light(light : Any) -> None:
Expand Down
2 changes: 1 addition & 1 deletion chroma_feedback/consumer/lifx/lifx/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@


def support() -> bool:
return helper.is_linux() is True or helper.is_mac() is True or helper.is_windows() is True
return helper.is_linux() or helper.is_mac() or helper.is_windows()


def init(program : ArgumentParser) -> None:
Expand Down
2 changes: 1 addition & 1 deletion chroma_feedback/consumer/luxafor/flag/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@


def support() -> bool:
return helper.is_linux() is True or helper.is_mac() is True or helper.is_windows() is True
return helper.is_linux() or helper.is_mac() or helper.is_windows()


def init(program : ArgumentParser) -> None:
Expand Down
2 changes: 1 addition & 1 deletion chroma_feedback/consumer/luxafor/flag/light.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def process_lights(lights : Any, producer_report : List[ProducerReport]) -> List

def set_light(light : Any, color_config : Color) -> bool:
light.on(tuple(color_config['rgb']))
return light.is_on is True
return light.is_on


def register_reset_light(light : Any) -> None:
Expand Down
2 changes: 1 addition & 1 deletion chroma_feedback/consumer/luxafor/mute/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@


def support() -> bool:
return helper.is_linux() is True or helper.is_mac() is True or helper.is_windows() is True
return helper.is_linux() or helper.is_mac() or helper.is_windows()


def init(program : ArgumentParser) -> None:
Expand Down
2 changes: 1 addition & 1 deletion chroma_feedback/consumer/luxafor/mute/light.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def process_lights(lights : Any, producer_report : List[ProducerReport]) -> List

def set_light(light : Any, color_config : Color) -> bool:
light.on(tuple(color_config['rgb']))
return light.is_on is True
return light.is_on


def register_reset_light(light : Any) -> None:
Expand Down
2 changes: 1 addition & 1 deletion chroma_feedback/consumer/luxafor/orb/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@


def support() -> bool:
return helper.is_linux() is True or helper.is_mac() is True or helper.is_windows() is True
return helper.is_linux() or helper.is_mac() or helper.is_windows()


def init(program : ArgumentParser) -> None:
Expand Down
2 changes: 1 addition & 1 deletion chroma_feedback/consumer/luxafor/orb/light.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def process_lights(lights : Any, producer_report : List[ProducerReport]) -> List

def set_light(light : Any, color_config : Color) -> bool:
light.on(tuple(color_config['rgb']))
return light.is_on is True
return light.is_on


def register_reset_light(light : Any) -> None:
Expand Down
2 changes: 1 addition & 1 deletion chroma_feedback/consumer/magic/hue/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@


def support() -> bool:
return helper.is_linux() is True or helper.is_mac() is True or helper.is_windows() is True
return helper.is_linux() or helper.is_mac() or helper.is_windows()


def init(program : ArgumentParser) -> None:
Expand Down
2 changes: 1 addition & 1 deletion chroma_feedback/consumer/muteme/muteme/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@


def support() -> bool:
return helper.is_linux() is True or helper.is_mac() is True or helper.is_windows() is True
return helper.is_linux() or helper.is_mac() or helper.is_windows()


def init(program : ArgumentParser) -> None:
Expand Down
2 changes: 1 addition & 1 deletion chroma_feedback/consumer/muteme/muteme/light.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def process_lights(lights : Any, producer_report : List[ProducerReport]) -> List

def set_light(light : Any, color_config : Color) -> bool:
light.on(tuple(color_config['rgb']))
return light.is_on is True
return light.is_on


def register_reset_light(light : Any) -> None:
Expand Down
2 changes: 1 addition & 1 deletion chroma_feedback/consumer/muteme/muteme_mini/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@


def support() -> bool:
return helper.is_linux() is True or helper.is_mac() is True or helper.is_windows() is True
return helper.is_linux() or helper.is_mac() or helper.is_windows()


def init(program : ArgumentParser) -> None:
Expand Down
2 changes: 1 addition & 1 deletion chroma_feedback/consumer/muteme/muteme_mini/light.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def process_lights(lights : Any, producer_report : List[ProducerReport]) -> List

def set_light(light : Any, color_config : Color) -> bool:
light.on(tuple(color_config['rgb']))
return light.is_on is True
return light.is_on


def register_reset_light(light : Any) -> None:
Expand Down
2 changes: 1 addition & 1 deletion chroma_feedback/consumer/mutesync/mutesync/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@


def support() -> bool:
return helper.is_linux() is True or helper.is_mac() is True or helper.is_windows() is True
return helper.is_linux() or helper.is_mac() or helper.is_windows()


def init(program : ArgumentParser) -> None:
Expand Down
2 changes: 1 addition & 1 deletion chroma_feedback/consumer/mutesync/mutesync/light.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def process_lights(lights : Any, producer_report : List[ProducerReport]) -> List

def set_light(light : Any, color_config : Color) -> bool:
light.on(tuple(color_config['rgb']))
return light.is_on is True
return light.is_on


def register_reset_light(light : Any) -> None:
Expand Down
2 changes: 1 addition & 1 deletion chroma_feedback/consumer/nanoleaf/nanoleaf/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@


def support() -> bool:
return helper.is_linux() is True or helper.is_mac() is True or helper.is_windows() is True
return helper.is_linux() or helper.is_mac() or helper.is_windows()


def init(program : ArgumentParser) -> None:
Expand Down
2 changes: 1 addition & 1 deletion chroma_feedback/consumer/philips/hue/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@


def support() -> bool:
return helper.is_linux() is True or helper.is_mac() is True or helper.is_windows() is True
return helper.is_linux() or helper.is_mac() or helper.is_windows()


def init(program : ArgumentParser) -> None:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@


def support() -> bool:
return helper.is_linux() is True or helper.is_mac() is True or helper.is_windows() is True
return helper.is_linux() or helper.is_mac() or helper.is_windows()


def init(program : ArgumentParser) -> None:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def process_lights(lights : Any, producer_report : List[ProducerReport]) -> List

def set_light(light : Any, color_config : Color) -> bool:
light.on(tuple(color_config['rgb']))
return light.is_on is True
return light.is_on


def register_reset_light(light : Any) -> None:
Expand Down
2 changes: 1 addition & 1 deletion chroma_feedback/consumer/razer/chroma/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@


def support() -> bool:
return helper.is_linux() is True
return helper.is_linux()


def init(program : ArgumentParser) -> None:
Expand Down
2 changes: 1 addition & 1 deletion chroma_feedback/consumer/signify/wiz/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@


def support() -> bool:
return helper.is_linux() is True or helper.is_mac() is True or helper.is_windows() is True
return helper.is_linux() or helper.is_mac() or helper.is_windows()


def init(program : ArgumentParser) -> None:
Expand Down
2 changes: 1 addition & 1 deletion chroma_feedback/consumer/thingm/blink1/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@


def support() -> bool:
return helper.is_linux() is True or helper.is_mac() is True or helper.is_windows() is True
return helper.is_linux() or helper.is_mac() or helper.is_windows()


def init(program : ArgumentParser) -> None:
Expand Down
Loading

0 comments on commit 5428576

Please sign in to comment.