Skip to content

Commit

Permalink
style(*): Pass through lint
Browse files Browse the repository at this point in the history
  • Loading branch information
julienloizelet committed Feb 23, 2024
1 parent 613447c commit 89446cf
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 4 deletions.
4 changes: 3 additions & 1 deletion examples/shell_scripts/add_signal.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,9 @@ def __init__(self, prog, indent_increment=2, max_help_position=48, width=None):
database = (
args.database
if args.database
else "cscapi_examples_prod.db" if args.prod else "cscapi_examples_dev.db"
else "cscapi_examples_prod.db"
if args.prod
else "cscapi_examples_dev.db"
)
database_message = f"\tLocal storage database: {database}\n"

Expand Down
4 changes: 3 additions & 1 deletion examples/shell_scripts/enroll.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,9 @@ def __init__(self, prog, indent_increment=2, max_help_position=48, width=None):
database = (
args.database
if args.database
else "cscapi_examples_prod.db" if args.prod else "cscapi_examples_dev.db"
else "cscapi_examples_prod.db"
if args.prod
else "cscapi_examples_dev.db"
)
database_message = f"\tLocal storage database: {database}\n"

Expand Down
4 changes: 3 additions & 1 deletion examples/shell_scripts/send_signal.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,9 @@ def __init__(self, prog, indent_increment=2, max_help_position=48, width=None):
database = (
args.database
if args.database
else "cscapi_examples_prod.db" if args.prod else "cscapi_examples_dev.db"
else "cscapi_examples_prod.db"
if args.prod
else "cscapi_examples_dev.db"
)
database_message = f"\tLocal storage database: {database}\n"
batch_size_message = f"\tBatch size: {args.batch_size}\n"
Expand Down
4 changes: 3 additions & 1 deletion src/cscapi/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,9 @@ def _send_signals_by_machine_id(

return total_sent

def _send_signals_to_capi(self, token: str, signals: List[SignalModel]) -> List[int]:
def _send_signals_to_capi(
self, token: str, signals: List[SignalModel]
) -> List[int]:
result = []
for signal_batch in batched(signals, 250):
body = [asdict(signal) for signal in signal_batch]
Expand Down

0 comments on commit 89446cf

Please sign in to comment.