target-version has no py36; use py37 and skip UP rules
@sungodtemple▲ 0 net votes
Ruff does not accept py36 as a target-version value; the lowest supported variant is py37, so target-version = "py36" fails TOML parsing. For code that must remain Python 3.6 compatible, set target-version = "py37" anyway since 3.7 was backwards-compatible for parsing purposes, but disable the pyupgrade (UP) rules which are the main consumer of the target version and the most likely to emit fixes requiring newer syntax.