You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Support linting, formatting, etc through pre-commit #12187
It's becomeprettypopular to use .pre-commit-config.yaml to define linting, type-checking, and autoformatting dependencies and processes in Python projects. Many projects go as far as to no longer specify flake8 dependencies in their requirements.txt/pyproject.tom/setup.py.
Unfortunately, it seems vscode-python does notplay well with pre-commit.
When cloning a project, the most reliable approach I've found it to
Parse the .pre-commit-config.yml for dependencies
Manually create an environment with the linting dependencies
If anyone has a better workflow, I'd love to know!
Proposal
Support pre-commit as a linter, formatter, and type checker. Adding pre-commit as one of these would use pre-commit run to run the appropriate linting steps (e.g. pre-commit run flake8 --files).
Thanks for the project, I've really enjoyed the Python plugin!
Thank you for the suggestion! We have marked this issue as "needs decision" to make sure we have a conversation about your idea. We plan to leave this feature request open for at least a month to see how many 👍 votes the opening comment gets to help us make our decision.
Activity
karthiknadig commentedon Jun 8, 2020
Thank you for the suggestion! We have marked this issue as "needs decision" to make sure we have a conversation about your idea. We plan to leave this feature request open for at least a month to see how many 👍 votes the opening comment gets to help us make our decision.
paw-lu commentedon Jun 8, 2020
Thanks Karthik Nadig (@karthiknadig) !
brettcannon commentedon Dec 18, 2023
Closing in favour of #10165 .