Ruff is the primary linter and formatter for Python code.
Running:
# linting
ruff check
# formatting
ruff format
# run specific rule
ruff check --select F .djLint is a HTML template linter and formatter specifically designed for Django and other template engines.
Running:
# linting
djlint templates --lint
# formatting
djlint templates --check
# to run a check without modifying files
djlint templates --check --indent