8000 MAINT flake8: move E402 ignore rule to setup.cfg for examples folder by ogrisel · Pull Request #18724 · scikit-learn/scikit-learn · GitHub
[go: up one dir, main page]

Skip to content

MAINT flake8: move E402 ignore rule to setup.cfg for examples folder #18724

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

Merged
merged 1 commit into from
Nov 1, 2020

Conversation

ogrisel
Copy link
Member
@ogrisel ogrisel commented Nov 1, 2020

I noticed the flake8 E402 ignore rule for the example folder (import lines not at the top of the file) would not be taken into account when you run the flake8 command from the top level folder. In particular this would cause some dev environments such as VS Code to display the lint markers for those import lines.

Using the per-file-ignores directive in the top level setup.cfg file makes this configuration work, wherever the flake8 command is run from.

I will merge merge if CI stays green.

@ogrisel ogrisel merged commit a2728ac into scikit-learn:master Nov 1, 2020
@ogrisel ogrisel deleted the flake8-configuration branch November 1, 2020 21:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant
0