Skip to content

CI Check for unused imports when linting#16678

Merged
adrinjalali merged 3 commits intoscikit-learn:masterfrom
rth:missing-imports-lint
Mar 12, 2020
Merged

CI Check for unused imports when linting#16678
adrinjalali merged 3 commits intoscikit-learn:masterfrom
rth:missing-imports-lint

Conversation

@rth
Copy link
Copy Markdown
Member

@rth rth commented Mar 12, 2020

Adds a check for unused imports with flake8 to the linter CI job. This should helps catching them when refactoring.

Otherwise we have to do this manually every year or so (e.g. #14021 #16665 )

Copy link
Copy Markdown
Member

@adrinjalali adrinjalali left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Little happy moments :P

@adrinjalali adrinjalali merged commit 1cbe59e into scikit-learn:master Mar 12, 2020
@thomasjpfan
Copy link
Copy Markdown
Member

YAY Thank you @rth!!

@rth rth deleted the missing-imports-lint branch March 12, 2020 13:55
ashutosh1919 pushed a commit to ashutosh1919/scikit-learn that referenced this pull request Mar 13, 2020
* Check for missing imports in linting

* Exclude externals

* Remove unused imports
gio8tisu pushed a commit to gio8tisu/scikit-learn that referenced this pull request May 15, 2020
* Check for missing imports in linting

* Exclude externals

* Remove unused imports
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants