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

Fix linting on main branch #168

Merged
merged 2 commits into from
Dec 27, 2024
Merged
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
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ django.setup()

## Running project tests locally

Install the dev dependencies with `pip install -e '.[dev]'` and then run `tox`.
Install the dev dependencies with `pip install -e '.[dev]'` and then run `python -m pytest`.


## License
Expand Down
4 changes: 2 additions & 2 deletions django_dramatiq/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ def message_details(self, instance):
# kwargs payload when a non json encoder is in use
kwargs_encoder = DjangoDramatiqConfig.select_encoder()
if not isinstance(kwargs_encoder, JSONEncoder):
for k,v in message_dict['kwargs'].items():
message_dict['kwargs'][k] = f"<{v}>"
for k, v in message_dict["kwargs"].items():
message_dict["kwargs"][k] = f"<{v}>"

message_details = json.dumps(message_dict, indent=4)
return mark_safe("<pre>%s</pre>" % message_details)
Expand Down
1 change: 1 addition & 0 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ def broker():
yield broker
broker.middleware = middleware
broker.flush_all()
broker.actors.clear()


@pytest.fixture
Expand Down
Loading