Skip to content

STY: Enable B904 #56941

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 3 commits into from
Jan 22, 2024
Merged

STY: Enable B904 #56941

merged 3 commits into from
Jan 22, 2024

Conversation

tqa236
Copy link
Contributor

@tqa236 tqa236 commented Jan 18, 2024

I think most of the fixes should be straightforward. For a few complex cases, I think it's reasonable to noqa them to allow us to enable a global check to the rest of the codebase.

  • 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.

@tqa236
Copy link
Contributor Author

tqa236 commented Jan 18, 2024

All tests passed after I ... added more info to debug. Not sure if I'm just unlucky with the flaky test or if there's a subtle error the test suite can't capture.

The failed test in the previous commit is test_dti_constructor_with_non_nano_now_today because the diff surpasses the tolerance

@mroeschke mroeschke added the Code Style Code style, linting, code_checks label Jan 18, 2024
Copy link
Member

@datapythonista datapythonista left a comment

Choose a reason for hiding this comment

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

lgtm, thanks @tqa236

@WillAyd WillAyd merged commit 5740667 into pandas-dev:main Jan 22, 2024
@tqa236 tqa236 deleted the enable-B904 branch January 22, 2024 18:21
pmhatre1 pushed a commit to pmhatre1/pandas-pmhatre1 that referenced this pull request May 7, 2024
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.

4 participants