-
-
Notifications
You must be signed in to change notification settings - Fork 319
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
Kill hardcoded arguments for manager.OptionManager - [closed] #1001
Comments
In GitLab by @codecov on Oct 21, 2020, 01:46 Codecov Report
@@ Coverage Diff @@
## master #458 +/- ##
=======================================
Coverage 90.94% 90.94%
=======================================
Files 59 59
Lines 4242 4242
Branches 420 420
=======================================
Hits 3858 3858
Misses 332 332
Partials 52 52
Continue to review full report at Codecov.
|
In GitLab by @sigmavirus24 on Oct 21, 2020, 04:33 Application is not a class to be used by plugins or external tools. |
In GitLab by @skirpichev on Oct 21, 2020, 04:51
Lets make it clear. If some useful task will be solved only using private API of flake8 - people will use it. |
In GitLab by @sigmavirus24 on Oct 21, 2020, 05:36 No, I'm saying there is no guarantee of backwards compatibility. Your Flake8-rst may be popular but that doesn't justify using non public classes Whether people use this or not is no justification for accepting this |
In GitLab by @asottile on Oct 21, 2020, 08:25 flake8-rst should not do that, this is not a public api |
In GitLab by @skirpichev on Oct 21, 2020, 09:12
It would be better, if you can suggest what it should do...
It's hard to see from the docs, if you ask me. Application class is documented on https://flake8.pycqa.org/ |
In GitLab by @asottile on Oct 21, 2020, 09:15 flake8 is for python files, you can access the docs for |
In GitLab by @skirpichev on Oct 21, 2020, 09:44
Well, it certainly has sense for me or for pandas devs. Why the idea of having doctests formatted as other project's code doesn't make sense?
Thank you, I'll think about. IIUIC, you suggest filter out doctests code blocks to the temp file, then feed it to the flake8? Maybe this will work, but I don't sure that it's possible in this way - to fix line/column numeration at the end. |
In GitLab by @asottile on Oct 21, 2020, 10:06 should be trivial to |
In GitLab by @skirpichev on Oct 21, 2020, 10:31
I doubt. Parsing the flake8 output (raw strings) - seems to me even more ugly solution (think about --show-source case, e.g.), then using the private API. |
In GitLab by @asottile on Oct 21, 2020, 10:56 consider |
In GitLab by @skirpichev on Oct 21, 2020, 11:30
Well, it doesn't produce a valid json with --show-source. Not sure if this is a bug or feature. |
In GitLab by @asottile on Oct 21, 2020, 11:36 locked this merge request |
In GitLab by @skirpichev on Oct 21, 2020, 01:46
Merges patch-1 -> master
This will help in case if someone subclass Application, as
does flake8-rst right now (see e.g. flake8-docs/flake8-rst#23).
The text was updated successfully, but these errors were encountered: