Community
    • Login

    Are there any spellcheck-style linting plugins?

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    lintpluginpython
    5 Posts 4 Posters 1.5k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • JohnPhillipRobertsonJ
      JohnPhillipRobertson
      last edited by

      Is there any support for graphical Python linting in Notepad++? I mean either the typical squiggly underline that I became accustomed to when I used VS Code, or maybe a step-through one-at-a-time wizard like npp’s own ctrl-F feature or the spellchecker show on the side of this article.

      rinku singhR 1 Reply Last reply Reply Quote 0
      • PeterJonesP
        PeterJones
        last edited by

        See https://notepad-plus-plus.org/community/topic/17989/nppexec-cppcheck-not-working-but-nppexec-pylint-is-working for instructions on getting an external linter interfaced to NPP via NppExec. It may meet your needs

        1 Reply Last reply Reply Quote 1
        • JohnPhillipRobertsonJ
          JohnPhillipRobertson
          last edited by

          Well, I just discovered the Linter plugin… but how do I make it work with pylint? What needs to go in the XML file?

          1 Reply Last reply Reply Quote 0
          • rinku singhR
            rinku singh @JohnPhillipRobertson
            last edited by

            @JohnPhillipRobertson said:

            Are there any spellcheck-style linting plugins?

            PyPadPlusPlus plugin

            1 Reply Last reply Reply Quote 0
            • Steven HaymesS
              Steven Haymes
              last edited by Steven Haymes

              In NppExec, execute the following (path may vary with your Python installation):

              C:\Python37\Scripts\pylint.exe “$(FULL_CURRENT_PATH)”

              You can add this as a Macro with: NppExec -> Advanced Options

              You can jump from the error reported in NppExec console to the line with the error in the editor with: NppExec -> Console Output Filters

              Depending on the linter that you run, you will have to tweak the filters and the order of the filters. I run both pylint and flake8.

              I find this process to be very efficient. I tried VS Code for a while and I did not like it. I would rather use Vim…

              Steve

              1 Reply Last reply Reply Quote 1
              • First post
                Last post
              The Community of users of the Notepad++ text editor.
              Powered by NodeBB | Contributors