ruff-pre-commit
ruff-action
ruff-pre-commit | ruff-action | |
---|---|---|
4 | 2 | |
699 | 88 | |
8.7% | - | |
8.5 | 6.3 | |
10 days ago | 30 days ago | |
Python | Python | |
Apache License 2.0 | Apache License 2.0 |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
ruff-pre-commit
-
Embracing Modern Python for Web Development
repos: # run the Ruff linter - repo: https://github.com/astral-sh/ruff-pre-commit # Ruff version rev: v0.1.3 hooks: - id: ruff args: [--fix, --exit-non-zero-on-fix] # run the Ruff formatter - repo: https://github.com/astral-sh/ruff-pre-commit # Ruff version rev: v0.1.3 hooks: - id: ruff-format
-
Enhancing Python Code Quality: A Comprehensive Guide to Linting with Ruff
- repo: https://github.com/astral-sh/ruff-pre-commit # Ruff version. rev: v0.0.277 hooks: - id: ruff # Ruff options. args: ["--paths", "src", "tests", "--exclude", "src/ignore.py"]
- Improve your Django Code with pre-commit
-
Ruff: A new, fast and correct Python checker/linter
And here's a pre-commit hook to save us some time. https://github.com/charliermarsh/ruff-pre-commit
ruff-action
-
Automate Python Linting and Code Style Enforcement with Ruff and GitHub Actions
The code above is equivalent to the previous workflow. The main difference is that we are using the Ruff GitHub Action instead of running Ruff directly. Read more about the Ruff GitHub Action here
-
Enhancing Python Code Quality: A Comprehensive Guide to Linting with Ruff
There is also a GitHub Action for Ruff available here
What are some alternatives?
pyright - Static Type Checker for Python
Pylint - It's not just a linter that annoys you!
pre-commit-hooks - Some out-of-the-box hooks for pre-commit
FastAPI-Backend-Template - A backend project template with FastAPI, PostgreSQL with asynchronous SQLAlchemy 2.0, Alembic for asynchronous database migration, and Docker.
ruff - An extremely fast Python linter and code formatter, written in Rust.
ruff - An extremely fast Python linter, written in Rust. [Moved to: https://github.com/astral-sh/ruff]
isort - A Python utility / library to sort imports.
FastAPI-Backend-Template - A backend project template with FastAPI, PostgreSQL with asynchronous SQLAlchemy 2.0, Alembic for asynchronous database migration, and Docker.
Poetry - Python packaging and dependency management made easy
Flake8 - flake8 is a python tool that glues together pycodestyle, pyflakes, mccabe, and third-party plugins to check the style and quality of some python code.
pre-commit - A framework for managing and maintaining multi-language pre-commit hooks.