drop duplicate clan-ruff and clan-black checks

we already test this with treefmt
This commit is contained in:
Jörg Thalheim
2023-07-25 18:54:26 +02:00
parent 0b027df015
commit 944c53c214

View File

@@ -41,7 +41,7 @@ let
propagatedBuildInputs = propagatedBuildInputs =
dependencies dependencies
++ [ ]; ++ [ ];
passthru.tests = { inherit clan-black clan-mypy clan-pytest clan-ruff; }; passthru.tests = { inherit clan-mypy clan-pytest; };
passthru.devDependencies = devDependencies; passthru.devDependencies = devDependencies;
postInstall = '' postInstall = ''
installShellCompletion --bash --name clan \ installShellCompletion --bash --name clan \
@@ -54,14 +54,6 @@ let
checkPython = python3.withPackages (_ps: devDependencies ++ dependencies); checkPython = python3.withPackages (_ps: devDependencies ++ dependencies);
clan-black = runCommand "${name}-black" { } ''
cp -r ${src} ./src
chmod +w -R ./src
cd src
${checkPython}/bin/black --check .
touch $out
'';
clan-mypy = runCommand "${name}-mypy" { } '' clan-mypy = runCommand "${name}-mypy" { } ''
cp -r ${src} ./src cp -r ${src} ./src
chmod +w -R ./src chmod +w -R ./src
@@ -78,14 +70,5 @@ let
|| echo -e "generate coverage report py running:\n pytest; firefox .reports/html/index.html" || echo -e "generate coverage report py running:\n pytest; firefox .reports/html/index.html"
touch $out touch $out
''; '';
clan-ruff = runCommand "${name}-ruff" { } ''
cp -r ${src} ./src
chmod +w -R ./src
cd src
${pkgs.ruff}/bin/ruff check .
touch $out
'';
in in
package package