Skip to content

Specify language=python in pre-commit hook - #3994

Merged
mrwyattii merged 1 commit into
deepspeedai:masterfrom
wangruohui:master
Jul 19, 2023
Merged

mrwyattii merged 1 commit into
deepspeedai:masterfrom
wangruohui:master

Conversation

@wangruohui

@wangruohui wangruohui commented Jul 19, 2023 •

Copy link
Copy Markdown
Contributor

Three python script are currently specified with language: system. As as result, /usr/bin/env python3 (which is bundled with system and usually of old version) will be launched to execute these script. I am using Cent OS 7 and the system python 3 are too old to support syntax from __future__ import annotation, thus cause pre-commit-hook failure.

By specifying language: python, pre-commit-hook will utilize the python in virtualenv to execute these scripts, which gives better compatibility.

@loadams
loadams requested a review from mrwyattii July 19, 2023 16:11
@mrwyattii
mrwyattii added this pull request to the merge queue Jul 19, 2023
Merged via the queue into deepspeedai:master with commit c79a104 Jul 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants