The paths CLI argument did not use the default=missing sentinel, and so
returned an empty list if no paths were given to the CLI. This meant any
paths configured in pyproject.toml were overridden with an empty list,
making the path= setting useless.
Adding the sentinel to the CLI fixes this behaviour. A regression test
is also added to make sure TOML paths are used if no CLI paths are
given.
Checklist:
[X] I have updated the documentation in the README.md file or my changes don't require an update.
[X] I have added an entry in CHANGELOG.md.
[X] I have added or adapted tests to cover my changes.
The paths CLI argument did not use the default=missing sentinel, and so returned an empty list if no paths were given to the CLI. This meant any paths configured in pyproject.toml were overridden with an empty list, making the path= setting useless.
Adding the sentinel to the CLI fixes this behaviour. A regression test is also added to make sure TOML paths are used if no CLI paths are given.
Checklist: