Skip to content

Commit

Permalink
style: applied black
Browse files Browse the repository at this point in the history
  • Loading branch information
ErikBjare committed Feb 3, 2022
1 parent 152ee7c commit b14c84a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
5 changes: 4 additions & 1 deletion Makefile
Expand Up @@ -13,8 +13,11 @@ test-integration:
typecheck:
poetry run mypy

PYFILES=aw_client/*.py examples/*.py

lint-fix:
pyupgrade --py37-plus aw_client/*.py examples/*.py
pyupgrade --py37-plus ${PYFILES}
black ${PYFILES}

clean:
rm -rf build dist
Expand Down
6 changes: 1 addition & 5 deletions aw_client/cli.py
Expand Up @@ -216,11 +216,7 @@ def _parse_events(events: List[dict]) -> List[Event]:
def print_top(events: List[Event], key=lambda e: e.data, title="Events"):
print(
title
+ (
f" (showing 10 out of {len(events)} events)"
if len(events) > 10
else ""
)
+ (f" (showing 10 out of {len(events)} events)" if len(events) > 10 else "")
)
print(
tabulate(
Expand Down

0 comments on commit b14c84a

Please sign in to comment.