forked from clan/clan-core
drop duplicate clan-ruff and clan-black checks
we already test this with treefmt
This commit is contained in:
parent
0b027df015
commit
944c53c214
@ -41,7 +41,7 @@ let
|
||||
propagatedBuildInputs =
|
||||
dependencies
|
||||
++ [ ];
|
||||
passthru.tests = { inherit clan-black clan-mypy clan-pytest clan-ruff; };
|
||||
passthru.tests = { inherit clan-mypy clan-pytest; };
|
||||
passthru.devDependencies = devDependencies;
|
||||
postInstall = ''
|
||||
installShellCompletion --bash --name clan \
|
||||
@ -54,14 +54,6 @@ let
|
||||
|
||||
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" { } ''
|
||||
cp -r ${src} ./src
|
||||
chmod +w -R ./src
|
||||
@ -78,14 +70,5 @@ let
|
||||
|| echo -e "generate coverage report py running:\n pytest; firefox .reports/html/index.html"
|
||||
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
|
||||
package
|
||||
|
Loading…
Reference in New Issue
Block a user