Skip to content

Commit

Permalink
Fix VSCode autoformat config to avoid bad Python version for pyink. (#97
Browse files Browse the repository at this point in the history
)

Black and Pyink do not support python 3.12.5, but uvx automatically
selects this version occasionally, which breaks autoformatting in
VSCode.

See https://github.com/psf/black/blob/24.10.0/CHANGES.md for details.
  • Loading branch information
danieldjohnson authored Nov 20, 2024
1 parent 46aee98 commit aac725f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,6 @@
"editor.detectIndentation": false,
"editor.defaultFormatter": "ms-python.black-formatter",
},
"black-formatter.path": ["uvx", "pyink"],
"black-formatter.path": ["uvx", "--python=>=3.9,!=3.12.5", "pyink"],
"pylint.enabled": true,
}

0 comments on commit aac725f

Please sign in to comment.