This release includes 1 new check, fixes typos in the documentation, and adds more utility to the --verbose
flag.
Add use-shlex-join
check (FURB178)
When using shlex
to escape and join a bunch of strings consider using the shlex.join
method instead.
Bad:
args = ["hello", "world!"]
cmd = " ".join(shlex.quote(arg) for arg in args)
Good:
args = ["hello", "world!"]
cmd = shlex.join(args)
Add --verbose
support to --explain
When the --verbose
flag is used with the --explain
flag the filename for the check being explained will be displayed.
For example:
$ refurb --explain FURB123 --verbose
Filename: refurb/checks/readability/no_unnecessary_cast.py
FURB123: no-redundant-cast [readability]
...
This will help developers find the source files for a given check much quicker then before.
What's Changed
- Improved docs by @trag1c in #273
- Add
use-shlex-join
check by @dosisod in #275 - Fix typos by @kianmeng in #274
- Made pipx the recommended installation method by @trag1c in #277
New Contributors
Full Changelog: v1.18.0...v1.19.0