Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do not show "autopep8 or black" formatting notification with default formatter config #22338

Closed
thernstig opened this issue Oct 25, 2023 · 1 comment
Labels
feature-request Request for new features or functionality info-needed Issue requires more information from poster triage-needed Needs assignment to the proper sub-team

Comments

@thernstig
Copy link

With the config below, I have changed the default formatter to "charliermarsh.ruff". The only extensions installed in VS Code are the Python, Pylance and Ruff extension.

Yet when I saved a .py file I got a notification saying something like:

"Do you want to use autopep8 or black for formatting?"

I could also opt to chose "Do not show again" which I did, so I cannot show paste a screenshot of the message.

Why do I get this notification, considering I configured `"editor.defaultFormatter": "charliermarsh.ruff" for Python?

{
  "editor.codeActionsOnSave": {
    "source.organizeImports": "always",
    "source.fixAll.ruff": "always"
  },
  "editor.formatOnPaste": true,
  "editor.formatOnSave": true,
  "eslint.format.enable": true,
  "[python]": {
    "editor.defaultFormatter": "charliermarsh.ruff"
  },
  "python.analysis.typeCheckingMode": "basic",
  "python.analysis.completeFunctionParens": true,
  "python.defaultInterpreterPath": "${workspaceFolder}/.venv/bin/python",
}
@thernstig thernstig added the feature-request Request for new features or functionality label Oct 25, 2023
@github-actions github-actions bot added the triage-needed Needs assignment to the proper sub-team label Oct 25, 2023
@karthiknadig
Copy link
Member

@thernstig Please try the pre-release version of the python extension. This should be addressed there.

@karthiknadig karthiknadig closed this as not planned Won't fix, can't repro, duplicate, stale Oct 25, 2023
@github-actions github-actions bot added the info-needed Issue requires more information from poster label Oct 25, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 25, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
feature-request Request for new features or functionality info-needed Issue requires more information from poster triage-needed Needs assignment to the proper sub-team
Projects
None yet
Development

No branches or pull requests

2 participants