andreafrancia / trash-cli

Command line interface to the freedesktop.org trashcan.
GNU General Public License v2.0
3.63k stars 177 forks source link

Fix lint #221

Closed zpuskas closed 2 years ago

zpuskas commented 2 years ago

Running pylfakes reveals several QA issues with the code:

>>> pyflakes .
./tests/myStringIO.py:4:5 'io.StringIO' imported but unused
./tests/test_trash_rm.py:3:1 'six' imported but unused
./tests/test_trash_rm.py:5:1 'mock.call' imported but unused
./tests/empty/test_empty_end_to_end_interactive.py:7:1 '..support.list_trash_dir' imported but unused
./tests/put/test_file_trasher.py:6:1 'trashcli.put.Trasher' imported but unused
./tests/put/test_home_fallback.py:6:1 'trashcli.put.Trasher' imported but unused
./trashcli/list.py:7:1 '.fstab.volume_of' imported but unused
./trashcli/list.py:39:18 redefinition of unused 'volume_of' from line 7
./trashcli/list.py:131:59 redefinition of unused 'volume_of' from line 7

This PR will:

Test plan:

>>> python -m unittest discover -v
...
----------------------------------------------------------------------
Ran 280 tests in 13.362s

OK
>>> pyflakes .
>>>