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

Keep linting/styling/etc modules separate from project #6221

Closed
sandy081 opened this issue Jun 18, 2019 · 2 comments
Closed

Keep linting/styling/etc modules separate from project #6221

sandy081 opened this issue Jun 18, 2019 · 2 comments

Comments

@sandy081
Copy link
Member

From @BeyondEvil

I have multiple projects and use pipenv for them all.

They all use tox so that's present in the Pipfile:

[dev-packages]
tox = "*"

However, while developing I also use black, flake8 etc. to deal with styling and linting and VSC adds these "automagically" to the Pipfile. Which I don't want. Because they're not relevant to the actual project.

Any linting/styling that happens outside of VSC is handled by tox.

So VSC should be happy if the chosen linting- and styling tools are available globally.

@ghost ghost added the triage-needed Needs assignment to the proper sub-team label Jun 18, 2019
@DonJayamanne
Copy link

DonJayamanne commented Jun 18, 2019

Duplicate of #4922

@DonJayamanne DonJayamanne marked this as a duplicate of #4922 Jun 18, 2019
@ghost ghost removed the triage-needed Needs assignment to the proper sub-team label Jun 18, 2019
@DonJayamanne
Copy link

@BeyondEvil

If you want to use your global tools, then you can update settings.json to provide the fully qualified paths to the global tools:
E.g.

"python.formatting.blackPath": "<fully qualified path to black executable>"

Hope this answers your question. More information can be found here https://code.visualstudio.com/docs/python/linting#_specific-linters

@DonJayamanne DonJayamanne marked this as not a duplicate of #4922 Jun 18, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Jun 26, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants