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

READY: Updated mypy CI check to install dependencies #8191

Merged
merged 2 commits into from
Oct 4, 2024

Conversation

qstokkink
Copy link
Contributor

Fixes #8189

This PR:

  • Updates the mypy workflow to install Tribler dependencies before type-checking.

@qstokkink qstokkink changed the title WIP: Install dependencies for mypy CI check READY: Install dependencies for mypy CI check Oct 4, 2024
@qstokkink qstokkink marked this pull request as ready for review October 4, 2024 08:26
@qstokkink qstokkink changed the title READY: Install dependencies for mypy CI check READY: Updated mypy CI check to install dependencies Oct 4, 2024
elif (guessed_type := mimetypes.guess_type(path)[0]) is not None:
response.content_type = guessed_type
else:
response.content_type = "application/octet-stream"
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is new behavior: instead of crashing when mimetypes.guess_type returns None, Tribler now uses an octet stream file type.

@qstokkink qstokkink merged commit b76b766 into Tribler:main Oct 4, 2024
7 checks passed
@qstokkink qstokkink deleted the upd_mypy_install_reqs branch October 4, 2024 09:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Hidden mypy errors
2 participants