mirror of
https://github.com/xai-org/grok-1.git
synced 2024-12-26 19:49: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
|
||||
wheel
|
||||
venvShellHook
|
||||
pylint
|
||||
pkgs.ruff
|
||||
]);
|
||||
|
||||
# python setup
|
||||
@ -35,11 +35,11 @@
|
||||
unset SOURCE_DATE_EPOCH
|
||||
'';
|
||||
postShellHook = ''
|
||||
# python setup
|
||||
unset SOURCE_DATE_EPOCH
|
||||
unset LD_PRELOAD
|
||||
PYTHONPATH=$PWD/$venvDir/${python.sitePackages}:$PYTHONPATH
|
||||
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