You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Preparation for #646
* Remove `ignore_missing_imports = true` from mypy configuration.
* Run mypy in the same environment instead of separate to check types
in dependencies like fastapi.
* Move mypy dependencies from pre-commit configuration to `setup.cfg`.
* Update mypy dependencies there.
* Move `rq` from `environment.yml` to `setup.cfg`: conda-forge version:
1.9.0, pypi version : 1.15.1 (two years difference; types were added).
* Add libraries with missing types to ignore list in mypy
configuration.
* Add pydantic mypy plugin.
* Allow running mypy without explicit paths.
* Update GitHub Actions.
* Temporarily add ignore `annotation-unchecked` to make mypy pass.
* Fix new mypy issues:
* Use https://github.com/hauntsaninja/no_implicit_optional to make
`Optional` explicit.
* If there is no default, the first `pydantic.Field` argument should
be omitted (`None` means that the default argument is `None`).
* Refactor `_run_migrations`. There were two different paths: one for
normal execution and another one for testing. Simplify arguments and
the function code, and introduce a new mock `run_migrations`.
* To preserve compatibility, introduce `ChannelWithOptionalName` for
the `/channels` patch method. Note that the solution is a bit dirty
(I had to use `type: ignore[assignment]`) to minimize the number of
models and the diff.
* Trivial errors.
0 commit comments