https://pantsbuild.org/ logo
#general
Title
# general
f

freezing-vegetable-92896

07/15/2022, 5:33 PM
Do I need to do anything special to use pyupgrade as a linter/formatter? From the [docs](https://www.pantsbuild.org/docs/reference-pyupgrade) it looks like I should be able to do something like
Copy code
[pyupgrade]
args = "[--py39-plus]"
but pants doesn't seem to like the
[pyupgrade]
scope
Copy code
13:32:54.73 [ERROR] Invalid scope [pyupgrade] in /Users/tdimiduk/eopt-core/pants.toml
I'm on
2.10
but I've also tried
2.11
and get the same error
1
h

high-energy-55500

07/15/2022, 5:44 PM
also need to add it under
Copy code
[GLOBAL]
backend_packages = [
  "pants.backend.experimental.python.lint.pyupgrade",
]
f

freezing-vegetable-92896

07/15/2022, 5:46 PM
Right, that solved it, thanks!
🚀 2
4 Views