purple-plastic-57801
08/12/2023, 8:59 PMfast-nail-55400
08/12/2023, 9:13 PMfast-nail-55400
08/12/2023, 9:14 PMpurple-plastic-57801
08/12/2023, 9:14 PMfast-nail-55400
08/12/2023, 9:14 PMfmt
, use skip_black=True
purple-plastic-57801
08/12/2023, 9:14 PMpurple-plastic-57801
08/12/2023, 9:15 PMfast-nail-55400
08/12/2023, 9:15 PM__defaults__
in that source root to set skip_black
on everything below the source root.purple-plastic-57801
08/12/2023, 9:15 PMfast-nail-55400
08/12/2023, 9:18 PMpurple-plastic-57801
08/12/2023, 9:31 PM__defaults__(all=dict(skip_black=True, skip_isort=True, skip_pylint=True))
purple-plastic-57801
08/12/2023, 9:33 PMhappy-kitchen-89482
08/13/2023, 10:40 PMlate-advantage-75311
08/14/2023, 1:46 AM.
āāā A
ā āāā BUILD
ā āāā moda.py
āāā B
ā āāā BUILD
ā āāā modb.py
ā āāā subpkg
ā āāā BUILD
ā āāā bb.py
āāā pants.toml
with A/BUILD:
python_sources()
B/BUILD:
__defaults__(all=dict(skip_black=True))
python_sources()
B/subpkg/BUILD:
python_sources()
and pants.toml
[GLOBAL]
pants_version = "2.16.0"
backend_packages = [
"pants.backend.python",
"pants.backend.python.lint.black",
]
and all the *.py
being poorly formatted.
With this setup, pants fmt ::
only tries to fix moda.py
. If you remove the __default__
line, it will fix all of them.