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
Documentation says the following about --tool and --with-tool command line flags:
To specify an exact list of tools to run, for example, only pylint and pep8: prospector --tool pylint --tool pep8
Note that this command line option will override values set in profiles.
To specify optional extras on top of the defaults, for example, to run defaults and also pyroma without needing to specify the complete list of defaults: prospector --with-tool pyroma
It does say that --tool will override values in profiles which absolutely makes sense. It doesn't say anything about --with-tool however and to me the behaviour is erratic as it overrides ALL run options in profile, not just the tool provided with the flag.
Documentation says the following about
--tool
and--with-tool
command line flags:It does say that
--tool
will override values in profiles which absolutely makes sense. It doesn't say anything about--with-tool
however and to me the behaviour is erratic as it overrides ALL run options in profile, not just the tool provided with the flag.Let's say I have this in my
.prospector.yml
:Now running
prospector
gives the following output:> prospector Check Information ================= Profiles: .prospector.yml, no_doc_warnings, no_member_warnings, no_test_warnings, strictness_medium, strictness_high, strictness_veryhigh Strictness: from profile Libraries Used: Tools Run: pep8, profile-validator, pyflakes
But if I provide one
--with-tool
, e.g.--with-tool mypy
, prospector runs every default tool:> prospector --with-tool mypy Check Information ================= Profiles: .prospector.yml, no_doc_warnings, no_member_warnings, no_test_warnings, strictness_medium, strictness_high, strictness_veryhigh Strictness: from profile Libraries Used: Tools Run: dodgy, mccabe, mypy, pep257, pep8, profile-validator, pyflakes, pylint
So on top of enabling all the default tools disabled in
.prospector.yml
it for some reason enabledpep257
as well!Expected behavior
--with-tool
to only add tools to the list defined by the profile, not completely override it.Environment:
The text was updated successfully, but these errors were encountered: