Skip to content

Comments

Introduced formatting and linting for the library#11

Merged
mridang merged 7 commits intomainfrom
add-formatting-and-linting
Apr 18, 2025
Merged

Introduced formatting and linting for the library#11
mridang merged 7 commits intomainfrom
add-formatting-and-linting

Conversation

@mridang
Copy link
Collaborator

@mridang mridang commented Apr 17, 2025

Which Problems Are Solved

  • Inconsistent Python code formatting and style across the project.
  • Potential errors, anti-patterns, or style violations missed during manual review.
  • Lack of fast, automated code quality checks integrated into the development workflow.
  • Manual effort required to lint and format Python code according to project standards.

How the Problems Are Solved

  • Introduced Ruff, an extremely fast Python linter and code formatter written in Rust.
  • Configured Ruff with rules (e.g., in pyproject.toml or .ruff.toml) to enforce project-specific coding standards and style guidelines.
  • Fixed all linting violations reported by Ruff across the project.

Additional Changes

  • Enabled Ruff's automatic fixing capabilities to correct linting issues and enforce code formatting.
  • Set up the workflow to automatically apply these corrections and commit the resulting changes back to the developer's branch.

Additional Context

None

@mridang mridang self-assigned this Apr 17, 2025
@mridang mridang added the enhancement New feature or request label Apr 17, 2025
@mridang mridang merged commit b024ce0 into main Apr 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant