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

dev: Add W and PLW ruff rules #242

Merged
merged 1 commit into from
Jun 7, 2024
Merged

Conversation

ajay-sentry
Copy link
Contributor

Part of the lint enhancement epic: codecov/engineering-team#1716

This PR aims to add, fix, or ignore all the W and PLW rules. All the fixes for the PLW rules were related to white space I believe, and many of the W rules ended up needing to be ignored because they were modifying the keys being indexed on, which while is not a great practice, is not something I wanted to mess with since the code touching that stuff has been around 5+ years for the most part lol

After this PR is merged I will be happy to say we're covered by more than 200 rules via Ruff on this repo :)

Closes codecov/engineering-team#1873

Legal Boilerplate

Look, I get it. The entity doing business as "Sentry" was incorporated in the State of Delaware in 2015 as Functional Software, Inc. In 2022 this entity acquired Codecov and as result Sentry is going to need some rights from me in order to utilize my contributions in this PR. So here's the deal: I retain all rights, title and interest in and to my contributions, and by keeping this boilerplate intact I confirm that Sentry can use, modify, copy, and redistribute my contributions, under Sentry's choice of terms.

@ajay-sentry ajay-sentry changed the title fix: Add W and PLW ruff rules dev: Add W and PLW ruff rules Jun 6, 2024
Copy link
Contributor

@JerrySentry JerrySentry left a comment

Choose a reason for hiding this comment

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

nice

@ajay-sentry ajay-sentry added this pull request to the merge queue Jun 7, 2024
Merged via the queue into main with commit 9de2b01 Jun 7, 2024
6 checks passed
@ajay-sentry ajay-sentry deleted the Ajay/ruff-warn-rules-additions branch June 7, 2024 17:59
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.

Add W and PLW rules to Shared
2 participants