edx / edx-arch-experiments

A plugin to include applications under development by the architecture team at edx
GNU Affero General Public License v3.0
0 stars 3 forks source link

Missing __init__.py files causes pylint to fail to lint some modules #57

Open timmc-edx opened 2 years ago

timmc-edx commented 2 years ago

Pylint won't lint Python modules in directories that lack an __init__.py file, causing us to miss lint errors: https://github.com/openedx/event-bus-kafka/pull/36

Discovery required. Information so far:

References:

jristau1984 commented 3 months ago

@timmc-edx can you offer insights on if this still needs to remain open? Thanks!

timmc-edx commented 3 months ago

It all still looks relevant. I don't think anything has changed about it.

jristau1984 commented 2 months ago

Note: This should move to the event-bus-kafka repo.

This bullet could be carved out into a separate, more general, community task:

edx-platform https://github.com/openedx/edx-platform/pull/27875 that validates that every dir with Python code has a dunder-init file; we could make this a standard CI check.

  • Pytest is opinionated against having init.py in test directories. We would need to find out why first.
  • We might actually want to use namespace packages in the future (which don't have dunder-init files).