Skip to content

Commit

Permalink
chore: reformat/reword things slightly to make ruff happy
Browse files Browse the repository at this point in the history
  • Loading branch information
winged committed Jan 31, 2024
1 parent b665a19 commit 43a08ae
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
6 changes: 5 additions & 1 deletion caluma/caluma_analytics/management/commands/run_analytics.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,11 @@ def _rowkey(val):
]
)
print(format_string.format(**col_labels))
print(format_string.format(**{k: "-" * l for k, l in col_lengths.items()}))
print(
format_string.format(
**{col: "-" * length for col, length in col_lengths.items()}
)
)

for rec in records:
fdata = {_rowkey(k): str(v) for k, v in rec.items()}
Expand Down
2 changes: 1 addition & 1 deletion caluma/caluma_core/tests/test_mutation_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ def check_perm(self, mutation, info):
assert len(params) == 1
assert len(params["input"]) == 3
assert params["input"]["slug"] == "email_addr"
assert type(params["input"]["format_validators"]) is list
assert isinstance(params["input"]["format_validators"], list)
return True

mocker.patch(f"{__name__}._TestPermission.permission_impl", check_perm)
Expand Down
5 changes: 3 additions & 2 deletions caluma/settings/caluma.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
"""
This settings module only contains caluma specific settings.
Caluma specific settings.
It's imported by the main caluma settings and is intended to also be used by third party
This settings module only contains caluma-internal settings. It's imported
by the main caluma settings and is intended to also be used by third party
applications integrating Caluma.
"""

Expand Down

0 comments on commit 43a08ae

Please sign in to comment.