Giter Site home page Giter Site logo

Python API about pydocstyle HOT 13 CLOSED

pycqa avatar pycqa commented on July 3, 2024
Python API

from pydocstyle.

Comments (13)

keleshev avatar keleshev commented on July 3, 2024

This is an interesting idea. What about a function check_files(list_of_files) that will return a list of style errors (class Error in pep257 source)? Objects of that class know how to print themselves nicely.

from pydocstyle.

JensRantil avatar JensRantil commented on July 3, 2024

Sounds like a great and simple API. If it could be documentation in
the README that would be awesome. Do you need help with any of this?

On 28 jul 2012, at 16:07, Vladimir Keleshev
[email protected]
wrote:

This is an interesting idea. What about a function check_files(list_of_files) that will return a list of style errors (class Error in pep257 source)? Objects of that class know how to print themselves nicely.


Reply to this email directly or view it on GitHub:
#7 (comment)

from pydocstyle.

keleshev avatar keleshev commented on July 3, 2024

Great, implementing this will be a snap. Thanks for the suggestion, more of that is always welcome.

from pydocstyle.

keleshev avatar keleshev commented on July 3, 2024

I updated the master branch with function check_files(filenames).

It would be great to hear if you have any feedback on this (also documentation, etc). If all good, I will upload the new version on PyPI.

I would also appreciate any general feedback about pep257—I myself find it too strict for my other projects on github, but this kind of level of documenting can be appropriate for large-scale software.

from pydocstyle.

keleshev avatar keleshev commented on July 3, 2024

BTW, I decided that check_files should return list-of-strings instead of list-of-error-objects, because I don't want to expose the internal API.

from pydocstyle.

JensRantil avatar JensRantil commented on July 3, 2024

Good morning (from Sweden),

It would be great to hear if you have any feedback on this (also documentation, etc). If all good, I will upload the new version on PyPI.

Awesome. I've been travelling throughout this weekend but will have a look at the patch as soon as I have time. This will be within the next few days.

I would also appreciate any general feedback about pep257—I myself find it too strict for my other projects on github, but this kind of level of documenting can be appropriate for large-scale software.

Sure! I'll make sure to submit any issues as soon as they pop up. If you/I find pep257 to be too strict, one option would be to go a similar route as pep8 by giving each warning/error a unique ID that can be suppressed/selected.

BTW, I decided that check_files should return list-of-strings instead of list-of-error-objects, because I don't want to expose the internal API.

Aight. Wise to expose less than more.

from pydocstyle.

JensRantil avatar JensRantil commented on July 3, 2024

I've been travelling throughout this weekend but will have a look at the patch as soon as I have time. This will be within the next few days.

Finally got the time to have a look at the API. It works out great for me so far. Feel free to publish a new release of the package whenever you want to.

from pydocstyle.

JensRantil avatar JensRantil commented on July 3, 2024

@halst closed the issue just now

New release published?

from pydocstyle.

keleshev avatar keleshev commented on July 3, 2024

Yes

pip install pep257==0.2.0

from pydocstyle.

JensRantil avatar JensRantil commented on July 3, 2024

Yes

Sweet! Thanks!

from pydocstyle.

keleshev avatar keleshev commented on July 3, 2024

I'm reacting very slow on issues in this project—what about I simply give you push access?

from pydocstyle.

JensRantil avatar JensRantil commented on July 3, 2024

I'm reacting very slow on issues in this project—what about I simply give you push access?

Sure! I'm not sure I'll be working on pep8 that much more, but if I can be of any support I guess it's for the better.

from pydocstyle.

keleshev avatar keleshev commented on July 3, 2024

Great, you're in.

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.