Skip to content
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

Update README.rst #106

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Update README.rst #106

wants to merge 2 commits into from

Conversation

pbelskiy
Copy link

@pbelskiy pbelskiy commented Jul 14, 2022

Thanks for awesome package!

But it's not obvious which quotes are default for docstring, experimentally it's double, so I update your readme.

README.rst Outdated
@@ -50,7 +50,10 @@ Q003 Change outer quotes to avoid escaping inner quotes
Configuration
-------------

By default, we expect single quotes (') and look for unwanted double quotes ("). To expect double quotes (") and find unwanted single quotes ('), use the CLI option:
By default, we expect single quotes (') and look for unwanted double quotes ("), and
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I appreciate the effort here! I think this is a little more confusing though, since we're starting to talk about expectations in 2 different places.

It'd prob be better to split up each of the code samples with their relevant default and override settings (e.g. multiline, docstring).

Or simply add a default explainer to the existing comment lines

# We also support configuration for multiline quotes (default: """)

# We also support docstring quotes similarly (default: """)

What are your thoughts?

For personal reference: https://github.com/zheller/flake8-quotes/blob/3.3.1/flake8_quotes/__init__.py#L137-L139

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So, we can go deeper here, but I think it's quite enough now just to write default behaviour, it will solve my and other developers misunderstanding.

@twolfson
Copy link
Collaborator

@pbelskiy I decided to take it further, since it felt confusing to talk about both quote types concurrently. Does this deeper change work for you still? If so, I'll land it =D

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants