mirror of
https://github.com/nix-community/nix-direnv.git
synced 2025-11-08 19:46:11 +01:00
prune redundant after 1133b15
This commit is contained in:
parent
e8acd40bee
commit
a45fa0648d
2 changed files with 0 additions and 27 deletions
24
lint.nix
24
lint.nix
|
|
@ -1,24 +0,0 @@
|
|||
{ shellcheck
|
||||
, mypy
|
||||
, python3
|
||||
, lib
|
||||
, ruff
|
||||
, runCommand
|
||||
}:
|
||||
runCommand "lint" { } ''
|
||||
set -e
|
||||
mkdir source
|
||||
cp -r ${./.}/* source
|
||||
chmod +w source
|
||||
cd source
|
||||
|
||||
echo run shellcheck
|
||||
${shellcheck}/bin/shellcheck direnvrc
|
||||
echo run black
|
||||
${lib.getExe python3.pkgs.black} --check .
|
||||
echo run ruff
|
||||
${lib.getExe ruff} tests
|
||||
echo run mypy
|
||||
${lib.getExe mypy} tests
|
||||
touch $out
|
||||
''
|
||||
|
|
@ -5,10 +5,7 @@ mkShell {
|
|||
nativeBuildInputs = [
|
||||
python3.pkgs.pytest
|
||||
python3.pkgs.mypy
|
||||
python3.pkgs.black
|
||||
python3.pkgs.flake8
|
||||
ruff
|
||||
shellcheck
|
||||
direnv
|
||||
];
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue