-
-
Notifications
You must be signed in to change notification settings - Fork 388
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
Comparison of tools #1059
Comments
@DonaldTsang well, you have listed a big list of very different tools!
|
What is the difference between an autoformatter and a linter? so black, yapf and autopep8 are all things that are meant to be use before/after WPS? |
You can read more about auto-formatters and linters here: https://wemake-python-stylegui.de/en/latest/pages/usage/integrations/auto-formatters.html Short answer: we expect people to use
|
So the reason why yapf is not supported is that it is too complex, and that black is not supported becasue it is opinionated reagarding double-quotes, removal of trailing commas and extended line lengths? |
@DonaldTsang Yes, that's correct. I haven't used |
Quoting https://coala.io/
The documentation website is wonky though. |
Counter point form black: Some of the incompatibility can be stomped out by adding parameters:
|
Does that mean the original black double-quote standard can just be made compatible with WPS through regex?
It says "Alternatively, use Bugbear's B950 warning instead of E501 and keep the max line length at 80 which you are probably already using" so are they deceiving us with the hard limit? Another note: in https://github.com/wemake-services/wemake-python-styleguide#what-we-are-about is it possible to add a star to WPS and others where autopep8 can be used together with the linter, such that it is "technically supported with caveats of not being one single package"? |
Well, We have lot's of issues that cannot be covered by any auto-formatter, including If user wants to fix some whitespaces and indentation, that's ok - |
@sobolevn for WPS there are standards that are based on formatting and standards that are based on quality, I would expect that autoformatters fixes all formatting related standards while leaving the quality-related standard for people to handle. Is my expectation correct? |
Not really. The gap between formatting and quality is really thin. For example, fixing some formatting issues might trigger quality rules. And that's how this project is designed. However, I know what you are talking about. For example,
Not sure that we will be able to support this feature. It requires too much effort. |
@sobolevn it is worth considering as many shortcuts as possible, in order to save work that is not needed when thinking about semi-trivial code formatting, and instead on "code cleanness" that is actually important. This might be the reason why black or yapf is much more popular than WPS. |
So what are the differences between WPS and these other tools, is it possible to add them to the table in the ReadME? If they are supplementary, how so?
The text was updated successfully, but these errors were encountered: