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

DNL: python: enable gazelle support #24

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

jessecureton
Copy link
Owner

@jessecureton jessecureton commented Mar 17, 2024

This is a draft PR that enables gazelle support in the repo for python files, but unfortunately I ran into lots of problems around:

  1. Gazelle falling back to file generation mode if there is a if __name__ == "__main__" in a file not named __main__.py
  2. Gazelle assigning incorrect target names in deps lists if a # gazelle:python_*_naming_convention directive is set
  3. Behavior I couldn't quite figure out around test target locations and expectations for a test entrypoint named __test__.py

All in all this seems nice to have, but enforces too many constraints around python development that don't fit in with the way I want python dev to work in this template. I'm uploading this in case anyone wants to pick it up and run with it or in case I want to follow up on it later, but in the meantime gazelle+python is dead in the water for this project

@jessecureton jessecureton mentioned this pull request Mar 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant