ruff-pre-commit
djLint
ruff-pre-commit | djLint | |
---|---|---|
4 | 4 | |
699 | 599 | |
8.7% | 3.3% | |
8.5 | 8.3 | |
10 days ago | 18 days ago | |
Python | Python | |
Apache License 2.0 | GNU General Public License v3.0 only |
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
djLint
-
Django Code Formatting and Linting Made Easy: A Step-by-Step Pre-commit Hook Tutorial
- repo: https://github.com/Riverside-Healthcare/djLint rev: v1.32.0 hooks: - id: djlint-reformat-django - id: djlint-django
-
Improve your Django Code with pre-commit
For Django users, which you presumably are, this will be a God send! Check out the repo. This is an HTML linter... but for Django templates 🤯
-
Hugo no theme
There is also another gohtml file type formatter, you can find it here https://github.com/Riverside-Healthcare/djlint.
-
Django template formatter
djLint is far batter than djhtml. it has support for both formatting and linting.
What are some alternatives?
pyright - Static Type Checker for Python
null-ls.nvim - Use Neovim as a language server to inject LSP diagnostics, code actions, and more via Lua.
pre-commit-hooks - Some out-of-the-box hooks for pre-commit
pretix - Ticket shop application for conferences, festivals, concerts, tech events, shows, exhibitions, workshops, barcamps, etc.
ruff - An extremely fast Python linter and code formatter, written in Rust.
kapitan - Generic templated configuration management for Kubernetes, Terraform and other things
isort - A Python utility / library to sort imports.
jinjax - Server-Side Components with Jinja
ruff-action - A GitHub Action for Ruff
django-migration-linter - :rocket: Detect backward incompatible migrations for your django project
Poetry - Python packaging and dependency management made easy
jinja2-simple-tags - Base classes for quick-and-easy template tag development