Skip to content

Fix: Add mypy to pre-commit#924

Draft
Tosinibikunle wants to merge 5 commits intojazzband:masterfrom
Tosinibikunle:mypy-with-precommit
Draft

Fix: Add mypy to pre-commit#924
Tosinibikunle wants to merge 5 commits intojazzband:masterfrom
Tosinibikunle:mypy-with-precommit

Conversation

@Tosinibikunle
Copy link
Copy Markdown

resolves #896

tox -v
- name: Run mypy
run: |
pip install mypy==1.17.1
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

why install a specific mypy version?

@Tosinibikunle Tosinibikunle marked this pull request as draft August 7, 2025 19:53
@vgrozdanic
Copy link
Copy Markdown
Contributor

vgrozdanic commented Sep 20, 2025

Before we can merge this, we need to fix all of the mypy issues in our codebase.

At the moment, when i run it, i get the following results:

Found 32 errors in 12 files (checked 31 source files)

- name: Run mypy
run: |
pip install mypy
mypy rest_framework_simplejwt
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This should also be checking the tests folder

rev: v1.17.1
hooks:
- id: mypy
args: ["rest_framework_simplejwt"]
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

same here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add mypy to pre-commit and in CI checks

3 participants