-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Handling of *args and **kwargs #48
Comments
Hi @Laleee, thanks again for reaching out For me they get documented like any other parameter and are just as important There is a not one consensus on how to document
There could easily be a switch, such as I see more of a use case for ignoring kwargs, but I can easily implement this feature for args while I'm at it I'll see what I can do, and thanks again! |
Adding ignore arguments seems like a good idea FYI: This formatting is also legitimate: mkdocstrings/pytkdocs@0133369 I'm not sure if it's supported but I just wanted to give you a head's up. |
Hi @Laleee, |
Hello @jshwi, Trying to test this I found a bug related to the pre-commit configuration. pre-commit-config.yaml - repo: https://github.com/jshwi/docsig
rev: v0.33.0
hooks:
- id: docsig
name: docsig
entry: docsig
language: system
types: [python]
require_serial: true
args:
- "-i"
- "--ignore-kwargs" I get an error: Then I tried manually and the version wasn't the latest. After the manual update ( This shouldn't be the case since I've specified the exact version in the pre-commit (I guess it should have it's own environment based on the yaml specification). Can you check if this is due to bad integration? Regarding the feature itself, everything seems to be working as expected so far. 🎉 Best, |
yup @Laleee, definitely something wrong there, bear with me, I'll see what's going on |
Opened #50 for tracking |
Hi @Laleee, Almost went down the rabbit hole with #50 I thought it was an issue with the hooks file, turns out it was an issue with the documentation I don't currently us The key By using I sort of borrowed the format from I've updated this documentation Thanks for spotting this one! |
Hello,
I'm not sure what's the convention of documenting *args and **kwargs but I think they are usually skipped.
What do you think about ignoring them (if they are not present in the docstring)?
The text was updated successfully, but these errors were encountered: