Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

programs.ruff.enable

Whether to enable ruff, an extremely fast Python linter and code formatter, written in Rust.

Type: boolean

Default:

false

Example:

true

Declared by:

programs.ruff.package

The ruff package to use.

Type: null or package

Default:

pkgs.ruff

Declared by:

programs.ruff.settings

Ruff configuration. For available settings see https://docs.astral.sh/ruff/settings.

Type: TOML value

Default:

{ }

Example:

{
  line-length = 100;
  lint = {
    ignore = [ ];
    select = [
      "E4"
      "E7"
      "E9"
      "F"
    ];
  };
  per-file-ignores = {
    "__init__.py" = [
      "F401"
    ];
  };
}

Declared by: