Skip to content

DNL: python: enable gazelle support#24

Draft
jessecureton wants to merge 1 commit into
mainfrom
jcureton/gazelle-python
Draft

DNL: python: enable gazelle support#24
jessecureton wants to merge 1 commit into
mainfrom
jcureton/gazelle-python

Conversation

@jessecureton
Copy link
Copy Markdown
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