You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be very useful and appreciated if there was an option to have ruff automatically resolve the __all__ statement. A configuration might look something like...
To better support introspection, modules should explicitly declare the names in their public API using the __all__ attribute. Setting all to an empty list indicates that the module has no public API.
That fix might look something like.
Module level “dunders” should be placed after the module docstring but before any import statements except from future imports module-level-dunder-names
It would be very useful and appreciated if there was an option to have
ruff
automatically resolve the__all__
statement. A configuration might look something like...From the pep regarding
__all__
.That fix might look something like.
running something along the lines of
ruff check auto-all="**/__init__.py" --fix app
would result in...Take this example from the
dask/array/__init__.py
where the__all__
is not set and the resulting complaint frompylance
.The text was updated successfully, but these errors were encountered: