terrencepreilly / darglint

A python documentation linter which checks that the docstring description matches the definition.
MIT License
483 stars 41 forks source link

Load 'enable' option correctly from the config file #147

Closed palt0 closed 3 years ago

palt0 commented 3 years ago

The enable option of a configuration file isn't loaded. Darglint works as expected if the setting is passed as a command line argument.

To reproduce the problem, lint the file integration_tests/files/missing_arg_type.py with the following configuration file:

[darglint]
enable=DAR104

It doesn't raise a DAR104 error as we'd expect.

This is a simple fix so I felt that opening an issue for it was unneeded.

terrencepreilly commented 3 years ago

I think the CI failure is due to me changing the pyproject.toml for some reason. This looks good, though. Thanks for the change!