This repository was archived by the owner on Aug 21, 2025. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 61
feat: improve typing definitions, introduce mypy in CI #338
Merged
Merged
Changes from all commits
Commits
Show all changes
43 commits
Select commit
Hold shift + click to select a range
f4c87e9
feat: do not supress callback exceptions raised from calling callbacks
o-santi 5b8cde0
fix: add explicit clauses for ConnectionClosedOK in send and heartbeat
o-santi 82e5812
Merge remote-tracking branch 'origin/main' into o-santi/only-catch-co…
o-santi 444b4a6
fix: change import order
o-santi c45fcc9
fix: apply ruff format
o-santi 7b684d5
Merge branch 'main' into o-santi-main
o-santi cb9e1df
feat: introduce flake.nix leveraging pyproject.nix
o-santi 5c235ce
chore: make `flake.nix` aware of dev dependencies, including ruff and…
o-santi db9a455
chore: refactor `dependencies-for`
o-santi 52fe664
feat: add nix develop CI job
o-santi c2242e2
fix: change job name to be more compatible with the other actions
o-santi 536e60b
Merge branch 'main' into o-santi-main
o-santi 9c1f2d9
feat: setup infra and run `python -m pytest` to run tests in nix setu…
o-santi 51caefc
fix: do not rely on `npx` as its not on nix develop
o-santi c30f9b2
fix: add `--command` typo
o-santi 9f07df1
chore: change name of nix develop command part
o-santi 9f726c9
feat: add coverage information and upload it to coveralls
o-santi ea2aba7
chore: run nix setup tests in both ubuntu and macos
o-santi c09ccea
chore: undo macos latest as it apparently does not work
o-santi a3c32e9
chore: switch from pylsp + mypy to pyright (basepyright)
o-santi 0e766d2
feat: add `basedpyright` to `pyproject.toml` instead of flake.nix only
o-santi 1a60bbd
fix: change back to python-lsp-server with pylsp-mypy
o-santi d64b494
Merge branch 'main' into o-santi-main
o-santi 54c7c9c
chore: improve type definitions files to make mypy happy
o-santi bedb062
chore: add mypy to CI as a step
o-santi 1bf7be0
fix: run mypy through poetry
o-santi 800ad97
fix: check for phx_ref_prev before calling del
o-santi c1b961c
fix: use `python -m mypy` instead of `mypy` directly
o-santi 5af58b4
fix: run type check after `make run_tests` so that `poetry install` i…
o-santi f8a1dc1
fix: `StrEnum` does not exist in python 3.9
o-santi 6fce253
fix: remove `phx_ref` from presence dict
o-santi f548403
fix: add deprecation warning for calling send with dicts
o-santi dbc03f1
fix: fix config payload, improve more types
o-santi 491d349
fix: make typing definitions compatible with python 3.9
o-santi 8264569
fix: import annotations for 3.9 to not complain about type error
o-santi 940a94c
fix: move mypy to Makefile `run_tests`, run it before actual tests
o-santi 7819eff
format: apply ruff reformating
o-santi 98628ad
fix: try explicitly annotating `Callback` as a `TypeAlias`
o-santi c684704
fix: change `dict` to `Dict` type due to 3.9
o-santi 7ef3cfb
fix: finally, import annotations to stop runtime from breaking
o-santi 66c44a6
format: apply ruff format one last time
o-santi e8d7495
format: reorder import order in test_connection
o-santi f671af6
format: trim whitespace
o-santi File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.