Skip to content

pylsp does not react to "# noqa"  #601

Open
@Bazulenkov

Description

@Bazulenkov

I have neovim and pylsp as LSP server.

This is my config of pylsp:

pylsp = {
    settings = {
      pylsp = {
        plugins = {
          pycodestyle = {
            ignore = { "W391" },
            maxLineLength = 88,
          },
        },
      },
    },
  },

Example of python file:

# app/core/base.py

from app.core.db import Base  # noqa
from app.models.meeting_room import MeetingRoom  # noqa
from app.models.reservation import Reservation  # noqa

I attach the screenshot with errors.
Screenshot from 2024-11-01 15-16-17

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