This repository was archived by the owner on Aug 21, 2025. It is now read-only.
Commit a8b063f
authored
chore: introduce minimal flake.nix (#336)
* feat: do not supress callback exceptions raised from calling callbacks
* fix: add explicit clauses for ConnectionClosedOK in send and heartbeat
* fix: change import order
* fix: apply ruff format
* feat: introduce flake.nix leveraging pyproject.nix
introduce flake.nix configuration leveraging the already existing
information in pyproject.toml, by using pyproject.nix to parse it and
generate the correct derivation. this way, any updates to
pyproject.toml should automatically be reflected in the flake
configuration, with low additional maintaining overhead required.
the only time when this may come as a problem is due to dependabot
constantly upgrading the packages to versions that do not exist yet in
nixpkgs. it may be required to force dependabot to also update the
nixpkgs version declared in the flake for it to not also break (or at
least to upgrade less often)
* chore: make `flake.nix` aware of dev dependencies, including ruff and pre-commit
by adding `dependency-groups`, `pyproject.nix` can now parse the
dependency groups and add these to the project, by passing `groups =
["dev"]` when calling the renderer.
special care was needed in order to expose `ruff` and `pre-commit` to
the toplevel of the environment. by default, it will treat them as
python dependencies and hide them in the python wrapper. by using
`groupBy`, we split the dependency list in "python" dependencies and
top level ones, such that they can be exposed.
sadly, these toplevel packages are not exposed in `python.pkgs` so we
must manually override them in a case by case basis.
* chore: refactor `dependencies-for`
* feat: add nix develop CI job
ensure that `nix develop` works on CI
* fix: change job name to be more compatible with the other actions
* feat: setup infra and run `python -m pytest` to run tests in nix setup action
do not rely on poetry to run tests, we'd like to not rely on it from
within the nix environment
* fix: do not rely on `npx` as its not on nix develop
use manual `supabase start` command instead
* fix: add `--command` typo
* chore: change name of nix develop command part
* feat: add coverage information and upload it to coveralls
* chore: run nix setup tests in both ubuntu and macos
* chore: undo macos latest as it apparently does not work
for some reason, `supabase start` does not seem to work on
`macos-latest` host in CI
* chore: switch from pylsp + mypy to pyright (basepyright)
it seems that pyright is better and faster than mypy in most if not
all cases, and the only reason I wasn't using it before is because it
was not working with eglot's default config.
* feat: add `basedpyright` to `pyproject.toml` instead of flake.nix only
this makes it available to all users, preparing for including it into
the standard CI later on
* fix: change back to python-lsp-server with pylsp-mypy1 parent 146d649 commit a8b063f
File tree
5 files changed
+624
-73
lines changed- .github/workflows
5 files changed
+624
-73
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
46 | 68 | | |
47 | 69 | | |
48 | 70 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
0 commit comments