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

Enable Bugbear and other rules in Ruff linting #1648

Merged
merged 8 commits into from
Aug 13, 2024
Merged

Conversation

VeckoTheGecko
Copy link
Contributor

@VeckoTheGecko VeckoTheGecko commented Aug 9, 2024

Enables Bugbear error codes in Ruff linting.

A plugin for finding likely bugs and design problems in your program. Contains warnings that don't belong in pyflakes and pycodestyle.

Leaving the codes B011, B016, B904 as I want to incorporate them into a larger PR at a later date looking at reworking the parcels error system (i.e., so we aren't raising Runtime and Assertion errors). Discussed in #1620

Also added in some other rules I thought would be good. Notably RUF100 which removes unused # noqa flags.

Contributes to #1620

@VeckoTheGecko VeckoTheGecko changed the title Enable Bugbear in Ruff linting Enable Bugbear and other rules in Ruff linting Aug 12, 2024
parcels/field.py Show resolved Hide resolved
@VeckoTheGecko VeckoTheGecko merged commit 2a876f8 into master Aug 13, 2024
8 checks passed
@VeckoTheGecko VeckoTheGecko deleted the v/bugbear branch August 13, 2024 09:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants