-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Search for pyproject.toml config file in parent dirs #7163
Conversation
Pull Request Test Coverage Report for Build 3014845916
💛 - Coveralls |
How would I add exceptions for false-positive spell checker? |
I think this should use the specification from the discussion in #3289 |
There's a dictionary called |
This comment has been minimized.
This comment has been minimized.
Hi @DanielNoord, there's nothing relatively new in the code that wasn't there already. The snippet Dear @Pierre-Sassoulas, you mean that |
We handle multiple configuration file ( |
1fb2be7
to
6e9caa3
Compare
Thank you for your review, I've added processing of all supported configs, and updated the docs |
This comment has been minimized.
This comment has been minimized.
It definitely went out of control. I'll take care of it. |
The failing tests show that this is not a trivial change. Again, I'm against changing this in a A directory without a I'm usually fine with having users change some configuration stuff between minor patches, but forcing them to restructure their directories or move files around doesn't seem like a good thing to do in a minor version update. |
Ok, I misinterpret your first message. I thought that you've meant python2. You are right on one hand. On another, now nobody can set a project global pylintrc, of there is a mixed repo. That's why I started working on the issue, basically |
See L62-80 of the original code. We currently support an environment variable and a global config in the users home directory. This probably doesn't cover all cases (and it might still make sense to merge this PR at some point), but I'm not sure we can change this now. I haven't tested this myself but can't you also use |
This comment has been minimized.
This comment has been minimized.
It's the morning, so I'll address all your questions.
It's precisely the issue I am trying to solve. And to show that it works, we already have the best proof. Take a look on the report. Each tested project has less number of reports than it has. It works as expected.
Unfortunately, it's not even a workaround to have a repo-wide config. One can't set it for integrations, like me using What is in my mind for now:
The major change to search all configs in the directories tree may be then addressed in a major release. Does it sound reasonable? |
This is an unrelated report and caused by a bug in our primer. Actually I would expect this PR to have no effect in the primer as all primer projects are linted with a specified
This is still a breaking change for those who want to lint subdirectories with default values. I can't stress enough the range of different I can see the need for repository wide configuration files, but I don't think this can be default value in a minor release. Perhaps we can work with a flag? |
Sorry, I can't call it breaking changes. For me, it is still an essential function that wasn't implemented for historical reasons. The point is that each tool I can recall, e.g., black and isort (see the issue), flake8 already supports it at least somehow. I hear your point. I can only agree to disagree. I see people need the same thing as I do, so this PR solves the issue that has been hanging around for three years. What I can do more here is write tests to put to stone the proposed behavior with update: tests are added in e24f7d1 |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
It looks like now Not sure if it was intended, but the current state is a quite strange from the configuration perspective. |
Sorry for the delay again @Felixoid. The 3.0 release cycle is coming, are you still available to work on this or should we take over ? |
Thanks, I've rebased the changes, tests work locally |
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## main #7163 +/- ##
=======================================
Coverage 95.81% 95.81%
=======================================
Files 174 174
Lines 18334 18335 +1
=======================================
+ Hits 17567 17568 +1
Misses 767 767
|
🤖 According to the primer, this change has no effect on the checked open source code. 🤖🎉 This comment was generated for commit 49de7a9 |
Looks green as a coming spring! |
Hello, are there any updates on it?.. |
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.
I think we can merge this, but defer to @Pierre-Sassoulas for doing so!
Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com>
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.
Sorry for taking a long time to review and merge, this is going to be in the first beta version 3.0.0b1
Type of Changes
Description
Search for pyproject.toml in parent directories.
Closes #3289