-
Notifications
You must be signed in to change notification settings - Fork 148
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
Improve static type checking #333
Conversation
I am not sure if this error is realted to this PR:
|
It's happening on my PR too (#334), so I guess not |
I have seen that the pipeline also uses Python 3.7. It is EOL in 2 month. |
tests/test_apns.py
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it now possible to mark these files as disallow_untyped_defs = true
in mypy.ini?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for this. Just a couple of questions:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks Dirk!
Needed for unit tests to be happy
* Move from setup.py to pyproject.toml Co-authored-by: Patrick Cloke <clokep@users.noreply.github.com> * Ensure unit tests run IDK we sometimes have to invoke trial explicitly like this * Use ruff instead of flake8 And remove py2-style type annotations, which ruff doesn't recognise Co-authored-by: Patrick Cloke <clokep@users.noreply.github.com> * Bump GHA actions part of matrix-org/synapse#14203 * Run black Presumably this fixes complaints from #333 and #334 * Move isort config to pyproject * Also lint stubs * Bump GHA actions part of matrix-org/synapse#14203 * Fix an unintended rename in #333 Needed for unit tests to be happy * Changelog --------- Co-authored-by: Patrick Cloke <clokep@users.noreply.github.com>
Signed-off-by: Dirk Klimpel dirk@klimpel.org