mirror of
https://git.selfprivacy.org/SelfPrivacy/selfprivacy-rest-api.git
synced 2025-02-03 14:46:37 +00:00
Merge pull request 'devshell: add black, mypy and corresponding python-lsp-server plugins' (#93) from flake-devshell into master
Reviewed-on: https://git.selfprivacy.org/SelfPrivacy/selfprivacy-rest-api/pulls/93 Reviewed-by: Inex Code <inex.code@selfprivacy.org>
This commit is contained in:
commit
4263f6fc63
13
flake.nix
13
flake.nix
|
@ -19,7 +19,14 @@
|
||||||
pytest
|
pytest
|
||||||
pytest-datadir
|
pytest-datadir
|
||||||
pytest-mock
|
pytest-mock
|
||||||
]));
|
black
|
||||||
|
mypy
|
||||||
|
pylsp-mypy
|
||||||
|
python-lsp-black
|
||||||
|
python-lsp-server
|
||||||
|
typer # for strawberry
|
||||||
|
] ++ strawberry-graphql.optional-dependencies.cli));
|
||||||
|
|
||||||
vmtest-src-dir = "/root/source";
|
vmtest-src-dir = "/root/source";
|
||||||
shellMOTD = ''
|
shellMOTD = ''
|
||||||
Welcome to SP API development shell!
|
Welcome to SP API development shell!
|
||||||
|
@ -72,13 +79,15 @@
|
||||||
devShells.${system}.default = pkgs.mkShell {
|
devShells.${system}.default = pkgs.mkShell {
|
||||||
name = "SP API dev shell";
|
name = "SP API dev shell";
|
||||||
packages = with pkgs; [
|
packages = with pkgs; [
|
||||||
python-env
|
nixpkgs-fmt
|
||||||
rclone
|
rclone
|
||||||
redis
|
redis
|
||||||
restic
|
restic
|
||||||
self.packages.${system}.pytest-vm
|
self.packages.${system}.pytest-vm
|
||||||
# FIXME consider loading this explicitly only after ArchLinux issue is solved
|
# FIXME consider loading this explicitly only after ArchLinux issue is solved
|
||||||
self.checks.x86_64-linux.default.driverInteractive
|
self.checks.x86_64-linux.default.driverInteractive
|
||||||
|
# the target API application python environment
|
||||||
|
python-env
|
||||||
];
|
];
|
||||||
shellHook = ''
|
shellHook = ''
|
||||||
# envs set with export and as attributes are treated differently.
|
# envs set with export and as attributes are treated differently.
|
||||||
|
|
Loading…
Reference in a new issue