Skip to content

Add pre-commit configuration with code quality hooks #158

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

AliYmn
Copy link

@AliYmn AliYmn commented Mar 12, 2025

Pre-commit Configuration

This PR adds a comprehensive pre-commit configuration to our project. We've been using pre-commit hooks extensively in our professional projects and have seen significant benefits:

Tools Included

  • Ruff: Fast Python linter and formatter
  • isort: Import sorting and organization
  • autoflake: Removes unused imports and variables
  • pyupgrade: Upgrades syntax to newer Python versions
  • conventional-commits-check: Enforces standardized commit messages

Usage

pre-commit install && \
pre-commit autoupdate && \
pre-commit install --hook-type commit-msg -f

This configuration has proven invaluable in our other projects by maintaining high code quality standards and streamlining our development workflow.

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