stouputils.check package#

Style rules that ruff cannot express, checked on text files and Python sources.

Each rule of RULES can be left out with ignore, and the limits tuned, in pyproject.toml:

[tool.stouputils.check]
ignore = ["tab-indentation", "space-alignment"]
final-newlines = { ".py" = 1, ".json" = 1 }
initial-newlines = { ".md" = 1, ".mcfunction" = 1 }
docstring-max-lines = 20
per-file-ignores = { "tests/**" = ["long-comment"] }

In a Python file, # stp: ignore[rule] silences its own line, or the multi-line string it closes, and # stouputils: ignore[rule] the whole file.

Submodules#