SCP42: Unneeded path string
What it does
Reports the use of strings instead of Path objects to
represent file system paths in setting values where it is not necessary.
Why is this bad?
While using strings to represent paths is OK, and is sometimes necessary [1],
Path is preferred where possible to make code more explicit
and for better typing.
Example
FEEDS = {
"output.jsonl": {"format": "jsonl"},
}
Instead use:
from pathlib import Path
FEEDS = {
Path("output.jsonl"): {"format": "jsonl"},
}