-
Notifications
You must be signed in to change notification settings - Fork 16
Enable mypy pre-commit hook #2674
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
Conversation
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.
lgtm, thanks! :100
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: mayaCostantini The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
I only enabled the hook, still needs to gruntily fix all the errors ^
|
Having the config in pyproject.toml make it usable by other tools, notably IDE.
Related to the errors in TL;DR (from my understanding)typing support is not super practical in SQLAlchemy |
Note: in 2e5cd41 I explicited what I assumed to be the intent. |
ea806dd
to
814e6de
Compare
The For reviewers: I think most of the commits are reviewable individually. In fact Some are "breaking" changes to the API, (in the types) but in most cases the I will detail the commits changing the API in a later comment. |
d1d1d0b
to
525bb58
Compare
Commits breaking API.
|
Note that this raises the minimal python version to 3.8
We use random.shuffle, but the import masked the random module with the random function.
This is a cleanup after 5d8b2bc, which removed amun + inspection_only stuff from sync functions, but not from the sync_documents "dispatcher" function. We also refactor the sync function for clarity.
- List -> Iterable (typing) Iterable is more flexible + match more closely the internal of the sync functions. - 4 ints tuples return instead of polymorphic
This is a breaking change of the API, but since it was broken (turning a string into a dict). fix thoth-station#2689
We need to rely on CI and the graph module is a bit wild for now. This should be temporary.
see #2673