Skip to content

Latest commit

 

History

History
31 lines (23 loc) · 553 Bytes

File metadata and controls

31 lines (23 loc) · 553 Bytes

Linting and Formatting

Ruff

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

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