ruff-pre-commit is a lightweight integration that enables the Ruff linter and formatter to run automatically as part of Git pre-commit hooks, ensuring code quality checks are enforced before changes are committed to a repository. It is distributed as a standalone repository to simplify installation and allow developers to use prebuilt wheels directly from package managers. By integrating Ruff into the pre-commit workflow, it helps maintain consistent coding standards across teams by automatically detecting and optionally fixing issues before code reaches the repository. The tool supports both linting and formatting hooks, allowing developers to configure workflows that enforce style and correctness in a single step. It also provides flexibility in configuration, including selective file type targeting and optional automatic fixes through command-line arguments.

Features

  • Integration of Ruff with Git pre commit hooks
  • Automatic linting and formatting before commits
  • Support for auto fix of detected issues
  • Configurable file targeting and hook behavior
  • Compatibility with pre commit framework workflows
  • Use of prebuilt wheels for simplified installation

Project Samples

Project Activity

See All Activity >

License

Apache License V2.0

Follow ruff-pre-commit

ruff-pre-commit Web Site

Other Useful Business Software
A warehouse and inventory management software that scales with your business. Icon
A warehouse and inventory management software that scales with your business.

For leading 3PLs and high-volume brands searching for an advanced WMS

Logiwa is a leader in cloud-native fulfillment technology, revolutionizing high-volume fulfillment for third-party logistics (3PLs), B2B and B2C fulfillment networks, and direct-to-consumer brands. Our flagship product, Logiwa IO, is an advanced Fulfillment Management System (FMS) designed to scale operations in the digital era. Logiwa elevates digital warehousing to new heights, ensuring dynamic and efficient fulfillment processes. Our commitment to AI-driven technology, combined with a focus on customer-centricity, equips businesses to adeptly navigate and excel in rapidly changing market landscapes. Discover the future of smart fulfillment and how you can fulfill brilliantly with Logiwa IO.
Learn More
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of ruff-pre-commit!

Additional Project Details

Programming Language

Python

Related Categories

Python Software Development Software

Registered

2026-03-19