ambitious-student-81104
01/06/2022, 4:26 PM./pants fmt
. It says that black and isort made changes, however it doesn't really change any files (the command is just ./pants fmt filepath
). Meanwhile if we run black filepath
actual changes are made.❯ ./pants fmt myfile.py
11:23:01.77 [INFO] Completed: Format with docformatter - Docformatter made no changes.
11:23:01.77 [WARN] Completed: Format with isort - isort made changes.
Fixing myfile.py
11:23:01.77 [WARN] Completed: Format with Black - Black made changes.
reformatted myfile.py
All done! ✨ 🍰 ✨
1 file reformatted.
+ Black made changes.
✓ Docformatter made no changes.
+ isort made changes.
❯ git status
On branch xxx
Your branch is up to date with 'origin/xxx'.
nothing to commit, working tree clean
❯ black myfile.py
reformatted myfile.py
All done! ✨ 🍰 ✨
1 file reformatted.
❯ git status
On branch xxx
Your branch is up to date with 'origin/xxx'.
Changes not staged for commit:
(use "git add <file>..." to update what will be committed)
(use "git restore <file>..." to discard changes in working directory)
modified: myfile.py
pants.toml
config:
[black]
args = ["--line-length=100"]
[isort]
config = [".isort.cfg"]
hundreds-father-404
01/06/2022, 4:30 PMambitious-student-81104
01/06/2022, 4:30 PMHave you configured them to be compatible?they've been compatible so far, but that's likely! When I run black alone it does make changes to the imports.
profile = "black"
sufficient?hundreds-father-404
01/06/2022, 4:33 PMambitious-student-81104
01/06/2022, 4:33 PM