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

ruff analyze graph omits implicit __init__.py imports #13482

Open
charliermarsh opened this issue Sep 23, 2024 · 0 comments
Open

ruff analyze graph omits implicit __init__.py imports #13482

charliermarsh opened this issue Sep 23, 2024 · 0 comments
Labels
analyze Related to Ruff analyze functionality preview Related to preview mode features

Comments

@charliermarsh
Copy link
Member

If you import foo/bar/baz.py, barring unusual setups, you will also implicitly import foo/bar/__init__.py, foo/__init__.py, etc. Right now, these are omitted from the module graph. We may want to include them. (By default, Pants seems to include them if the __init__.py files contain content.)

@charliermarsh charliermarsh added preview Related to preview mode features analyze Related to Ruff analyze functionality labels Sep 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
analyze Related to Ruff analyze functionality preview Related to preview mode features
Projects
None yet
Development

No branches or pull requests

1 participant