Skip to content

Disallow empty comment #60858

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

Merged
merged 1 commit into from
Feb 5, 2025
Merged

Disallow empty comment #60858

merged 1 commit into from
Feb 5, 2025

Conversation

tqa236
Copy link
Contributor

@tqa236 tqa236 commented Feb 5, 2025

Look like the intent of the empty comments in some places is to create a visual block of code, but this is done fairly rarely, compared to just use a new line, so I think it's reasonable to enable this rule to avoid code clutter or empty comments as the result of some massy search and replace.

  • closes #xxxx (Replace xxxx with the GitHub issue number)
  • Tests added and passed if fixing a bug or adding a new feature
  • All code checks passed.
  • Added type annotations to new arguments/methods/functions.
  • Added an entry in the latest doc/source/whatsnew/vX.X.X.rst file if fixing a bug or adding a new feature.

@mroeschke mroeschke added the Code Style Code style, linting, code_checks label Feb 5, 2025
@mroeschke mroeschke added this to the 3.0 milestone Feb 5, 2025
@mroeschke mroeschke merged commit 51187b3 into pandas-dev:main Feb 5, 2025
37 of 46 checks passed
@mroeschke
Copy link
Member

Thanks @tqa236

@tqa236 tqa236 deleted the ruff-rule branch February 5, 2025 19:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Code Style Code style, linting, code_checks
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants