-
-
Notifications
You must be signed in to change notification settings - Fork 297
Pick correct file if two files with the same name but with different extensions exist #2722
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
Conversation
Hmm, the CI isn't too happy. Investigating... |
All tests pass on my machine now, so it should work |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #2722 +/- ##
=======================================
Coverage 93.21% 93.21%
=======================================
Files 93 93
Lines 11071 11072 +1
=======================================
+ Hits 10320 10321 +1
Misses 751 751
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
I don't think automatic issue closing works between repos, so someone with the correct permissions needs to close it manually. |
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.
Thank you for the fix @Chasarr, do you mind adding some automated tests please ?
Done :) |
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.
Thank you for the automated tests, it looks great. Do you mind adding a changelog entry too ? You probably need to specify that the issue you're closing come from pylint, like this:
Line 52 in df10777
Closes pylint-dev/pylint#8589 |
And if you want to have an aliase for the contributors list you can do it in https://github.com/pylint-dev/astroid/blob/main/script/.contributors_aliases.json#L4
for more information, see https://pre-commit.ci
Done! Thanks for the guidance! |
@Pierre-Sassoulas Are you able to review this? Before it goes stale 😄 |
The backport to
To backport manually, run these commands in your terminal: # Fetch latest updates from GitHub
git fetch
# Create a new working tree
git worktree add .worktrees/backport-maintenance/3.3.x maintenance/3.3.x
# Navigate to the new working tree
cd .worktrees/backport-maintenance/3.3.x
# Create a new branch
git switch --create backport-2722-to-maintenance/3.3.x
# Cherry-pick the merged commit of this pull request and resolve the conflicts
git cherry-pick -x --mainline 1 f52268d03c0d19d869d830444f500c154d8a74e5
# Push it to GitHub
git push --set-upstream origin backport-2722-to-maintenance/3.3.x
# Go back to the original working tree
cd ../..
# Delete the working tree
git worktree remove .worktrees/backport-maintenance/3.3.x Then, create a pull request where the |
Sorry for the delay, thank you for the PR, congrats on becoming a contributor :) |
Thank you, this is the first piece of code to a big open source project I have contributed to! Feels good! |
Should I do anything to backport the commit to 3.3.X? Or do you do that? |
Don't worry I'm going to do it :) |
…extensions exist (#2722)
…extensions exist (#2722) (#2728) Co-authored-by: Charlie Ringström <[email protected]>
Type of Changes
Description
To replicate the error that this PR fixes, you need to create two files:
and then I run
pylint test.py2
it reports Pylint errors from test.py. (the wrong file)I believe this was due to a typo/logical error. Before this PR, I don't think the prefer_stubs argument even did anything.
Closes pylint-dev/pylint#3631