Skip to content

PEP-8 code style changes#1300

Open
bschoening wants to merge 1 commit into
apache:trunkfrom
bschoening:pep8-basics
Open

PEP-8 code style changes#1300
bschoening wants to merge 1 commit into
apache:trunkfrom
bschoening:pep8-basics

Conversation

@bschoening

Copy link
Copy Markdown
Contributor

Mostly whitespace fixes for PEP-8

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

This PR applies PEP 8–oriented formatting changes across the driver codebase (whitespace, indentation, docstring quoting, and comment cleanup), with a couple of small typo/wording fixes.

Changes:

  • Normalizes whitespace/indentation and adds blank lines for readability across multiple modules.
  • Updates docstrings/comments for consistency (e.g., triple-quoted docstrings, TODO spacing).
  • Includes a few minor typo/wording corrections (e.g., “errro” → “error”, “useable” → “usable”).

Reviewed changes

Copilot reviewed 17 out of 17 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
cassandra/util.py Import placement/spacing and docstring/comment formatting updates.
cassandra/timestamps.py Adds a separating blank line before the first class definition.
cassandra/query.py Adds spacing between functions; fixes TODO spacing; normalizes indentation in HostTargetingStatement.
cassandra/protocol.py Adds a separating blank line before module-level constants.
cassandra/pool.py Removes line-continuation backslashes in dict literals; fixes “usable” spelling.
cassandra/policies.py Moves cassandra imports into the main import block; adds spacing before a class definition.
cassandra/murmur3.py Adds a separating blank line before the optional C-extension import block.
cassandra/metrics.py Re-indents scales.collection(...) call for readability/alignment.
cassandra/metadata.py Reorders the optional murmur3 import block; minor formatting changes in string building and spacing.
cassandra/marshal.py Adds blank lines and normalizes spacing in packing/unpacking helpers.
cassandra/encoder.py Moves logger initialization to follow import grouping and normalizes indentation.
cassandra/cqltypes.py Moves ipaddress import into the main import block; adds spacing and refines comments/line wrapping.
cassandra/connection.py Removes stray semicolon; normalizes spacing in expressions and dict comprehensions; comment spacing cleanup.
cassandra/concurrent.py Wraps long function signature and normalizes spacing between top-level defs.
cassandra/cluster.py Normalizes spacing/indentation and slightly refines comments/docstrings.
cassandra/auth.py Adds separating blank line before module alias/compat assignment.
cassandra/init.py Adds separating blank lines; fixes a typo in an exception docstring.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread cassandra/util.py
Comment thread cassandra/policies.py
Comment thread cassandra/cqltypes.py

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 17 out of 17 changed files in this pull request and generated 2 comments.

Comment thread cassandra/connection.py
Comment on lines 291 to +293
def __lt__(self, other):
return ((self.address, self.port, self._server_name) <
(other.address, other.port, self._server_name))
return ((self.address, self.port, self._server_name)
< (other.address, other.port, self._server_name))
Comment thread cassandra/cluster.py Outdated
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