Giter Site home page Giter Site logo

Comments (4)

OrkoHunter avatar OrkoHunter commented on May 15, 2024

Hey @fmaussion! Thank you for reaching out to me about the issue.

I wasn't aware of #noqa until now. PEP8Speaks uses pycodestyle as the linter. So, the error messages are not up to me.

I found some discussion about implementing it in pycodestyle, but if I am not wrong, it still remains a missing feature.

So, yes this is expected as of now, and the only way to avoid it is to put E741 in the ignores list of .pep8speaks.yml

from pep8speaks.

fmaussion avatar fmaussion commented on May 15, 2024

Thanks for the info! Maybe we'll keep this issue open for future reference.

from pep8speaks.

OrkoHunter avatar OrkoHunter commented on May 15, 2024

Hi @fmaussion !

I can see that E741 has been added to the ignore list in .pep8speaks.yml. Does @pep8speaks still complain about any #noqa errors other than E741?

I would also like to let you know that there is no need to maintain two copies of pycodestyle/flake8 settings in .pep8speaks.yml and setup.cfg. You can go ahead and remove pycodestyle: section from .pep8speaks.yml and it will read the [flake8] section of setup.cfg file. See #95 and pandas-dev/pandas#25605

from pep8speaks.

OrkoHunter avatar OrkoHunter commented on May 15, 2024

Hi @fmaussion !

PEP 8 Speaks can now support #noqa. After #115, projects can choose between pycodestyle and flake8 as their linter. The scanner.linter option .pep8speaks.yml should be set to flake8.

Example .pep8speaks.yml -

scanner:
    diff_only: True
    linter: flake8

flake8:  # Skip this if you have [flake8] in your setup.cfg file
    ignore:
        - EXXX
        - WXXX

Complete configuration details is in the README. I am going to close this issue. Let me know if you have any questions/comments!

from pep8speaks.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.