Skip to content

Commit a2728ac

Browse files
authored
flake8: move E402 ignore rule to setup.cfg for examples folder (scikit-learn#18724)
1 parent 9358a94 commit a2728ac

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

examples/.flake8

Lines changed: 0 additions & 5 deletions
This file was deleted.

setup.cfg

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,10 @@ artifact_indexes=
2828
[flake8]
2929
# Default flake8 3.5 ignored flags
3030
ignore=E121,E123,E126,E226,E24,E704,W503,W504
31+
# It's fine not to put the import at the top of the file in the examples
32+
# folder.
33+
per-file-ignores =
34+
examples/*: E402
3135

3236
[mypy]
3337
ignore_missing_imports = True

0 commit comments

Comments
 (0)