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
Flake8 docstrings #256
base: master
Are you sure you want to change the base?
Flake8 docstrings #256
Conversation
@@ -338,16 +338,18 @@ def _line_helper(self, line): | |||
|
|||
@property | |||
def vcf(self): | |||
"""serialize to VCARD as specified in RFC2426, | |||
"""Serialize to VCARD as specified in RFC2426, |
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.
In a lot of places, it seems like we apply the rule that the first line should be empty if the docstirng is multiline, but the linter is not complaining here, nor in the docstring below (in generate_random_uid
). Is that expected? Should the first line be empty in multiline docstrings? I'm asking because this change is intentionally made in some places, but not others.
@@ -363,7 +366,8 @@ def __init__(self, account_id, provider_info, email_address, conn, readonly=True | |||
|
|||
def _fetch_folder_list(self): | |||
# type: () -> List[Tuple[Tuple[bytes, ...], bytes, str]] | |||
r""" NOTE: XLIST is deprecated, so we just use LIST. | |||
r""" |
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.
Does it need to be raw?
@@ -424,7 +424,8 @@ def __deduplicate_message_object_creation(self, db_session, raw_messages, accoun | |||
def add_message_to_thread(self, db_session, message_obj, raw_message): | |||
"""Associate message_obj to the right Thread object, creating a new | |||
thread if necessary. We rely on Gmail's threading as defined by | |||
X-GM-THRID instead of our threading algorithm.""" | |||
X-GM-THRID instead of our threading algorithm. | |||
""" |
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.
Same question here about the first line in multiline docstrings being empty.
@@ -1,5 +1,6 @@ | |||
"""Utility for loading SQLAlchemy model classes and friends. Please see | |||
inbox/models/__init__.py for the explanation of why this is necessary.""" | |||
inbox/models/__init__.py for the explanation of why this is necessary. | |||
""" |
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.
Same question here.
@@ -21,7 +23,8 @@ def __init__(self, message, http_code, server_error=None): | |||
class SearchStoreException(Exception): | |||
"""Raised if there's an error proxying the search request to the provider. | |||
This is a special EAS case where the Status code for the Store element has | |||
an error""" | |||
an error | |||
""" |
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.
Same question here.
""" Creates new, empty test databases. """ | ||
""" | ||
Create new, empty test databases. | ||
""" |
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.
This one fits in a single line.
and that the update is queued in the ActionLog.""" | ||
|
||
and that the update is queued in the ActionLog. | ||
""" |
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.
Same question about empty first line here.
The configuration is copied from another project of ours.