-
Notifications
You must be signed in to change notification settings - Fork 308
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Run codespell
using pre-commit
#602
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
repos: | ||
- repo: https://github.com/codespell-project/codespell | ||
rev: v2.2.4 | ||
hooks: | ||
- id: codespell | ||
name: Running codespell for typos | ||
entry: codespell -w --skip="*.txt,pylintrc,.*" . |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -195,7 +195,8 @@ fi | |
# Install dependencies from requirements.txt | ||
cd $run_name_folder_path && pip install --upgrade pip | ||
if [[ "$MODE" == "pinned" ]]; then | ||
pip3 install -r requirements.txt -c constraints_gpu.txt | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think adding There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I understand, we can remove it. |
||
pip3 install -U -r requirements.txt -c constraints_gpu.txt | ||
else | ||
pip3 install -U -r requirements.txt | ||
fi | ||
[ -d ".git" ] && pre-commit install |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is done so that when we are making changes independent of dependencies, we won't do the installation step again, which can take >2m. Is there a specific concern to overrule it? @khatwanimohit
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
setup.sh now includes running the
pre-commit install
command which installs the pre-commit hooks in the user's git repo. That command needs access to.pre-commit-config.yaml
file