You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
help="Docstring styles that are used in the project. Can be more than one.",
)
And extend style args are not checked in the parsing of the toml file. Thus replacing whatever is in the field with
an empty list (which gets ignored later)
so it 1 Checks for the extend type args and 2 makes maintaining the package easier because it throws an error instead of silently ignored wrongly parsed files.
btw ... debugging was not super easy to be honest, is there a way to have the cli return the configuration that will be used? (explicit version of all the configuration arguments) ... like --verbose argument.
Let me know if you would like me to make PR for any of these
Best!
Sebastian
The text was updated successfully, but these errors were encountered:
Hello, thank you for the debugging and analyzing the issue ! PR are welcome, let's do one for each issue (easier debugging and the configuration bug) .
Hello there!
I found a bug where the 'style' argument is ignored from the configuration file
This is my the section of my toml
After a little lurking I think it is caused by this ....
The style arg is defined as an extend.
pydocstringformatter/pydocstringformatter/_configuration/arguments_manager.py
Lines 121 to 128 in 7a97321
And extend style args are not checked in the parsing of the toml file. Thus replacing whatever is in the field with
an empty list (which gets ignored later)
pydocstringformatter/pydocstringformatter/_configuration/toml_parsing.py
Lines 44 to 52 in 7a97321
Possible fix:
changing the
pydocstringformatter/_configuration/toml_parsing.py#L44-L52
to ...so it 1 Checks for the extend type args and 2 makes maintaining the package easier because it throws an error instead of silently ignored wrongly parsed files.
btw ... debugging was not super easy to be honest, is there a way to have the cli return the configuration that will be used? (explicit version of all the configuration arguments) ... like
--verbose
argument.Let me know if you would like me to make PR for any of these
Best!
Sebastian
The text was updated successfully, but these errors were encountered: