Skip to content

Commit

Permalink
[ruff F401 #10390 #10391] ruff format the test fixtures
Browse files Browse the repository at this point in the history
  • Loading branch information
plredmond committed Apr 30, 2024
1 parent 1405bae commit 56bec82
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 40 deletions.
Original file line number Diff line number Diff line change
@@ -1,47 +1,36 @@
'''__init__.py without __all__
"""__init__.py without __all__
Unused stdlib and third party imports are unsafe removals
Unused first party imports get changed to redundant aliases
'''

"""


# stdlib

import os # Ok: is used


import os # Ok: is used
_ = os



import argparse as argparse # Ok: is redundant alias
import argparse as argparse # Ok: is redundant alias



import sys # F401: remove unused

import sys # F401: remove unused


# first-party


from . import used # Ok: is used

from . import used # Ok: is used
_ = used


from . import aliased as aliased # Ok: is redundant alias

from . import aliased as aliased # Ok: is redundant alias






from . import unused # F401: change to redundant alias

from . import unused # F401: change to redundant alias


from . import renamed as bees # F401: no fix
from . import renamed as bees # F401: no fix
Original file line number Diff line number Diff line change
@@ -1,52 +1,42 @@
'''__init__.py with __all__
"""__init__.py with __all__
Unused stdlib and third party imports are unsafe removals
Unused first party imports get added to __all__
'''

"""


# stdlib

import os # Ok: is used


import os # Ok: is used
_ = os


import argparse # Ok: is exported in __all__

import argparse # Ok: is exported in __all__



import sys # F401: remove unused

import sys # F401: remove unused


# first-party


from . import used # Ok: is used

from . import used # Ok: is used
_ = used



from . import aliased as aliased # Ok: is redundant alias



from . import exported # Ok: is exported in __all__

from . import aliased as aliased # Ok: is redundant alias


#from . import unused # F401: add to __all__
from . import exported # Ok: is exported in __all__


# from . import unused # F401: add to __all__

#from . import renamed as bees # F401: add to __all__

# from . import renamed as bees # F401: add to __all__


__all__ = ["argparse", "exported"]

0 comments on commit 56bec82

Please sign in to comment.