-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Refactor utils #1390
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
Refactor utils #1390
Conversation
- move regex compilation to the top of the module to enable caching.
Welcome @abhiabhi94! |
thanks for the pr /lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: abhiabhi94, yliaog The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Hey @yliaog, inside the script python/scripts/update-pycodestyle.sh Lines 69 to 71 in 6d64cf6
The argument For older versions: $ pip freeze -l | grep -i isort
isort==4.3.21
$ isort --help | grep -Ee '\-y'
[-w LINE_LENGTH] [-wl WRAP_LENGTH] [-ws] [-y] [--unsafe]
-y, --apply Tells isort to apply changes recursively without Newer version: $ pip freeze -l | grep -i isort
isort==5.7.0
$ isort --help | grep -Ee '\-y'
$ I think this has not been caught because as far as I can see, the environment the Also, if we want to a consistent style as mentioned in the contributing notes, maybe we can automate this by using a pre-commit hook that runs this particular script? |
closing to trigger CI |
@yliaog: Closed this PR. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/reopen |
@yliaog: Reopened this PR. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
update-pycodestyle is used here (https://github.com/kubernetes-client/python/blob/master/.travis.yml#L28), i agree it should be applied consistently for other versions. |
Regarding the |
closes #1381