Giter Site home page Giter Site logo

Invalid D200 errors about pydocstyle HOT 6 CLOSED

pycqa avatar pycqa commented on July 23, 2024
Invalid D200 errors

from pydocstyle.

Comments (6)

OddBloke avatar OddBloke commented on July 23, 2024 1

I don't feel particularly strongly about it, but this resolution seems wrong to me. This docstring is totally reasonable:

"""
Pretend this is super long
"""

and it's only three lines whereas the minimum possible multi-line docstring is five:

"""
Slightly shorter

Tiny amount of detail.
"""

One line would be best, but three is still better than five.

from pydocstyle.

Nurdok avatar Nurdok commented on July 23, 2024 1

I don't agree that fewer lines is always better. A long line means a long sentence. Several lines means you've broken the first and primary description of the defintiion into a small, readable and understandable idea.

from pydocstyle.

Nurdok avatar Nurdok commented on July 23, 2024

I don't think the error is invalid. You should shorten your one line description. If you can't do it without missing since information, add a body to your docstring with details.

from pydocstyle.

sigmavirus24 avatar sigmavirus24 commented on July 23, 2024

I tend to agree with @Nurdok. I've found that this constrains me to creating a concise description and adding good detail to a body. In most cases, I'm documenting the parameters anyway, so adding a body is not a problem.

Instead of trying to force the tool to accept your style preferences, configure the tool to ignore what you don't like.

from pydocstyle.

OddBloke avatar OddBloke commented on July 23, 2024

from pydocstyle.

Nurdok avatar Nurdok commented on July 23, 2024

@OddBloke, no problem!

from pydocstyle.

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.