From a088057b175ea5f56dcaaabfb513115d84b9a4ea Mon Sep 17 00:00:00 2001 From: Konstantin Fickel Date: Sun, 1 Feb 2026 10:32:34 +0100 Subject: [PATCH] ci: remove type testing from pipeline Signed-off-by: Konstantin Fickel --- .forgejo/workflows/ci.yml | 3 --- flake.nix | 37 +++++++++++++++++++------------------ 2 files changed, 19 insertions(+), 21 deletions(-) diff --git a/.forgejo/workflows/ci.yml b/.forgejo/workflows/ci.yml index 92092a6..7d7a63b 100644 --- a/.forgejo/workflows/ci.yml +++ b/.forgejo/workflows/ci.yml @@ -21,6 +21,3 @@ jobs: - name: Test with PyTest run: nix develop .#impure --command bash -c "uv run pytest --junit-xml test-report.xml" - - - name: Check with PyRight - run: nix develop .#impure --command bash -c "uv run pyright" diff --git a/flake.nix b/flake.nix index 0e39ef3..669701a 100644 --- a/flake.nix +++ b/flake.nix @@ -88,12 +88,14 @@ # Package a virtual environment as our main application. # # Enable no optional dependencies for production build. - packages.x86_64-linux = let - streamer = pythonSet.mkVirtualEnv "streamer-env" workspace.deps.default; - in { - inherit streamer; - default = streamer; - }; + packages.x86_64-linux = + let + streamer = pythonSet.mkVirtualEnv "streamer-env" workspace.deps.default; + in + { + inherit streamer; + default = streamer; + }; # Make streamer runnable with `nix run` apps.x86_64-linux = { @@ -116,18 +118,17 @@ pre-commit bashInteractive ]; - env = - { - # Prevent uv from managing Python downloads - UV_PYTHON_DOWNLOADS = "never"; - # Force uv to use nixpkgs Python interpreter - UV_PYTHON = python.interpreter; - } - // lib.optionalAttrs pkgs.stdenv.isLinux { - # Python libraries often load native shared objects using dlopen(3). - # Setting LD_LIBRARY_PATH makes the dynamic library loader aware of libraries without using RPATH for lookup. - LD_LIBRARY_PATH = lib.makeLibraryPath pkgs.pythonManylinuxPackages.manylinux1; - }; + env = { + # Prevent uv from managing Python downloads + UV_PYTHON_DOWNLOADS = "never"; + # Force uv to use nixpkgs Python interpreter + UV_PYTHON = python.interpreter; + } + // lib.optionalAttrs pkgs.stdenv.isLinux { + # Python libraries often load native shared objects using dlopen(3). + # Setting LD_LIBRARY_PATH makes the dynamic library loader aware of libraries without using RPATH for lookup. + LD_LIBRARY_PATH = lib.makeLibraryPath pkgs.pythonManylinuxPackages.manylinux1; + }; shellHook = '' unset PYTHONPATH '';