-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
#1021 - refactoring: delete unused imports #536
#1021 - refactoring: delete unused imports #536
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I do not know if we are allowed to have execution commands on the commit message. I will leave this to @iGormilhit to confirm.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are the celery worker tasks: indexer, accounts, ebooks-harvester, notification-creation
still functional and executed in a celery worker?
That's a good point. Have I any way to check this quickly @rerowep ? |
|
6802136
to
9b2f489
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
About the commit message:
* Uses autoflake to remove current useless python imports. The command is `autoflake --remove-all-unused-imports -i -r --exclude ui --ignore-init-module-imports`.
* Uses autoflake in `run-tests.sh` script, to check for useless python imports regularly.
I do like informative commit message, but let's try to not be too verbose.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are the celery worker tasks: indexer, accounts, ebooks-harvester, notification-creation
still functional and executed in a celery worker?
06b2a87
to
1a31dd2
Compare
More and more imports are useless in the project. To avoid this problem, 2 things are needed: * delete current imports * check imports regularly To delete current imports it uses a program: `autoflakes`. Also checks that no more useless imports remains. It also uses `autoflakes` during `run-tests.sh` script. Co-Authored-by: Olivier DOSSMANN <[email protected]>
1a31dd2
to
85fc950
Compare
More and more imports are useless in the project.
To avoid this problem, 2 things are needed:
To delete current imports it uses a program:
autoflakes
autoflake --remove-all-unused-imports -i -r --exclude ui \ --ignore-init-module-imports .
Also checks that no more useless imports remains. It also uses
autoflakes
duringrun-tests.sh
script.