[Patchew-devel] [PATCH 0/2] Cleanup imports

Paolo Bonzini pbonzini at redhat.com
Fri Mar 16 16:43:59 UTC 2018


On 16/03/2018 08:11, Fam Zheng wrote:
> Overtime the import lines are containing redundancy. Clean it up with
> autoflake.
> 
> One small fix is needed to keep this smooth.

Nice, would it make sense to add some flake wrapper in scripts/, and run
it in Travis?  It can only look for selected errors and violations for now.

Paolo

> Fam Zheng (2):
>   api: Fix import of Group
>   "autoflake" out unused imports
> 
>  api/admin.py                                        | 1 -
>  api/apps.py                                         | 2 +-
>  api/migrations/0019_populate_last_comment_date.py   | 2 +-
>  api/migrations/0021_fix_recipients_utf8.py          | 2 +-
>  api/migrations/0025_populate_project_maintainers.py | 2 +-
>  api/models.py                                       | 4 +---
>  api/views.py                                        | 1 -
>  mod.py                                              | 2 --
>  mods/diff.py                                        | 7 +------
>  mods/email.py                                       | 1 -
>  mods/git.py                                         | 4 +---
>  mods/testing.py                                     | 4 ----
>  patchew/urls.py                                     | 1 -
>  tests/test_custom_tags.py                           | 1 -
>  tests/test_diff.py                                  | 1 -
>  tests/test_git.py                                   | 3 ---
>  tests/test_message.py                               | 2 --
>  tests/test_model.py                                 | 3 ---
>  tests/test_project.py                               | 2 --
>  tests/test_rest.py                                  | 6 +-----
>  tests/test_tags.py                                  | 1 -
>  tests/test_testing.py                               | 3 +--
>  www/views.py                                        | 1 -
>  23 files changed, 9 insertions(+), 47 deletions(-)
> 




More information about the Patchew-devel mailing list