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
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!
The text was updated successfully, but these errors were encountered:
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.
Background
It's become pretty popular 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 theirrequirements.txt
/pyproject.tom
/setup.py
.Unfortunately, it seems vscode-python does not play well with pre-commit.
When cloning a project, the most reliable approach I've found it to
.pre-commit-config.yml
for dependenciespython.linting.pylintPath
.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!
The text was updated successfully, but these errors were encountered: