1[aliases] 2test = pytest 3 4[tool:pytest] 5# disable-pytest-warnings should be removed once we rewrite tests 6# using yield with parametrize 7doctest_optionflags = NORMALIZE_WHITESPACE ELLIPSIS 8testpaths = sklearn 9addopts = 10 --doctest-modules 11 --disable-pytest-warnings 12 --color=yes 13 -rN 14 15filterwarnings = 16 ignore:the matrix subclass:PendingDeprecationWarning 17 18[wheelhouse_uploader] 19artifact_indexes= 20 # Wheels built by the "Wheel builder" workflow in GitHub actions: 21 # https://github.com/scikit-learn/scikit-learn/actions?query=workflow%3A%22Wheel+builder%22 22 https://pypi.anaconda.org/scikit-learn-wheels-staging/simple/scikit-learn/ 23 24[flake8] 25# max line length for black 26max-line-length = 88 27target-version = ['py37'] 28# Default flake8 3.5 ignored flags 29ignore= 30 E24, # check ignored by default in flake8. Meaning unclear. 31 E121, # continuation line under-indented 32 E123, # closing bracket does not match indentation 33 E126, # continuation line over-indented for hanging indent 34 E203, # space before : (needed for how black formats slicing) 35 E226, # missing whitespace around arithmetic operator 36 E704, # multiple statements on one line (def) 37 E731, # do not assign a lambda expression, use a def 38 E741, # do not use variables named ‘l’, ‘O’, or ‘I’ 39 W503, # line break before binary operator 40 W504 # line break after binary operator 41exclude= 42 .git, 43 __pycache__, 44 dist, 45 sklearn/externals, 46 doc/_build, 47 doc/auto_examples, 48 doc/tutorial, 49 build 50 51# It's fine not to put the import at the top of the file in the examples 52# folder. 53per-file-ignores = 54 examples/*: E402 55 doc/conf.py: E402 56 57[mypy] 58ignore_missing_imports = True 59allow_redefinition = True 60 61[check-manifest] 62# ignore files missing in VCS 63ignore = 64 sklearn/linear_model/_sag_fast.pyx 65 sklearn/utils/_seq_dataset.pyx 66 sklearn/utils/_seq_dataset.pxd 67 sklearn/utils/_weight_vector.pyx 68 sklearn/utils/_weight_vector.pxd 69 70[codespell] 71skip = ./.git,./.mypy_cache,./doc/themes/scikit-learn-modern/static/js,./sklearn/feature_extraction/_stop_words.py,./doc/_build,./doc/auto_examples,./doc/modules/generated 72ignore-words = build_tools/codespell_ignore_words.txt 73