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

Flake8 does not apply to projects in the site_packages directory(Python) #330

Closed
kingmo888 opened this issue Oct 25, 2024 · 2 comments
Closed
Labels
bug Issue identified by VS Code Team member as probable bug triage-needed

Comments

@kingmo888
Copy link

My environment is Anaconda base, and I have already installed the Flake8 plugin in VSCode. When creating scripts that do not comply with the specifications, they are working normally.
I am currently facing a problem:
When I put the project in the site packages directory of base, flake8 no longer gives any error prompts. May I ask what the reason is?

@kingmo888 kingmo888 added the bug Issue identified by VS Code Team member as probable bug label Oct 25, 2024
@kingmo888
Copy link
Author

Image

@karthiknadig
Copy link
Member

@kingmo888 This is by design. You are never supposed to put packages that you work on inside site-packages. If you want to be able to import packages while working on them then what you need is "Editable install", learn about editable installs, and use them for packages that you are actively working on. With "editable install" you package gets included in sys.path automatically for import.

@karthiknadig karthiknadig closed this as not planned Won't fix, can't repro, duplicate, stale Oct 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issue identified by VS Code Team member as probable bug triage-needed
Projects
None yet
Development

No branches or pull requests

2 participants