Skip to content

extend-ignore option of the lint subcommand is not configurable via pyproject.toml #76

Description

@sean-moore3

The --extend-ignore option is currently only honored when passed via the command line. It is not honored if an extend-ignore option is added to the tool.ni-python-styleguide section of pyproject.toml.

This simple test when added to the test suite will fail:

def test_extend_ignore(styleguide_lint_with_options, tmp_path):
    (tmp_path / "dir1").mkdir()
    (tmp_path / "dir1" / "spam.py").write_text(TOO_LONG_LINE)

    result = styleguide_lint_with_options(lint_args={"extend-ignore": "D100,BLK100"})

    assert result, result.output

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions