-
Notifications
You must be signed in to change notification settings - Fork 16
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
fix: ignore pip install .whl file #140
Conversation
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.
You should run yarn test
locally and check the changes in real-example-results.yaml
, if they are the expected results and seems OK, add them to the Pull Request.
I run tests and everything seems fine except for one error unrelated to the change I made |
You should delete the |
yarn.lock
Outdated
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 file should not change.
src/content/registry/python.js
Outdated
@@ -90,6 +90,11 @@ const handleArgument = (argument, restCommandWords) => { | |||
|
|||
const baseCommandMatch = (line) => line.match(/pip3? +install/); | |||
const packageWordParse = (word) => { | |||
if (word.includes('.whl')) { |
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.
if (word.includes('.whl')) { | |
if (word.endsWith('.whl')) { |
I have added a condition for ignoring commands that contain a string .whl
the condition is returned null to indicate that the package should be ignored.
and I added this example to examples in this file 'real-examples.yaml'