Skip to content

Add configuration for ruff check - #10

Merged
namurphy merged 7 commits into
PlasmaPy:mainfrom
namurphy:ruff-configuration
Aug 26, 2026
Merged

Add configuration for ruff check#10
namurphy merged 7 commits into
PlasmaPy:mainfrom
namurphy:ruff-configuration

Conversation

@namurphy

Copy link
Copy Markdown
Member

Description

Expanded the ruff linter and code quality rule set in pyproject.toml to enable more code quality checks and autofixes, thus leading to higher quality software.

Motivation

A linter is a developer tool that analyzes source code against predefined rules to identify errors, vulnerabilities, and stylistic issues before code reaches production.

Following linter rules generally improves code quality and consistency, while often reducing the probability of bugs.

I adapted this rule set from PlasmaPy's ruff configuration, while removing some particular settings that are not needed (mostly ignores). We will undoubtedly want to adjust these linter rules to fit our needs, but these are a very solid plasma1 place to start from.

Tip

Enabling linter rules from the start is much easier than enabling linter rules later on. This I learned from experience. 😭

Footnotes

  1. I'm trying to get "plasma" to replace other states of matter in sayings and colloquialisms.

This removes some settings that were specific to PlasmaPy, whilst removing some exceptions to rules that we can implement from the beginning.
@namurphy
namurphy merged commit c8c9fb9 into PlasmaPy:main Aug 26, 2026
10 checks passed
@namurphy
namurphy deleted the ruff-configuration branch August 26, 2026 20:16
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.

1 participant