mirror of
https://github.com/xai-org/grok-1.git
synced 2024-11-24 12:39:54 +03:00
Add ruff linter to pre-commit
This commit is contained in:
parent
7c5c0a41d7
commit
021ca2a7fa
3
.github/hooks/pre-commit
vendored
Executable file
3
.github/hooks/pre-commit
vendored
Executable file
@ -0,0 +1,3 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
ruff check ./
|
@ -25,7 +25,7 @@
|
|||||||
setuptools
|
setuptools
|
||||||
wheel
|
wheel
|
||||||
venvShellHook
|
venvShellHook
|
||||||
pylint
|
pkgs.ruff
|
||||||
]);
|
]);
|
||||||
|
|
||||||
# python setup
|
# python setup
|
||||||
@ -35,11 +35,11 @@
|
|||||||
unset SOURCE_DATE_EPOCH
|
unset SOURCE_DATE_EPOCH
|
||||||
'';
|
'';
|
||||||
postShellHook = ''
|
postShellHook = ''
|
||||||
# python setup
|
|
||||||
unset SOURCE_DATE_EPOCH
|
unset SOURCE_DATE_EPOCH
|
||||||
unset LD_PRELOAD
|
unset LD_PRELOAD
|
||||||
PYTHONPATH=$PWD/$venvDir/${python.sitePackages}:$PYTHONPATH
|
PYTHONPATH=$PWD/$venvDir/${python.sitePackages}:$PYTHONPATH
|
||||||
pip install --require-virtualenv -r requirements.txt | grep -v 'already satisfied'
|
pip install --require-virtualenv -r requirements.txt | grep -v 'already satisfied'
|
||||||
|
git config --local core.hooksPath .github/hooks
|
||||||
'';
|
'';
|
||||||
|
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user