2010-08-18 17:47:31 +08:00
|
|
|
|
[aliases]
|
2017-11-17 03:20:35 +08:00
|
|
|
|
test = pytest
|
2013-07-28 06:48:28 +08:00
|
|
|
|
|
2017-02-20 20:08:09 +08:00
|
|
|
|
[tool:pytest]
|
2017-11-17 03:20:35 +08:00
|
|
|
|
# disable-pytest-warnings should be removed once we rewrite tests
|
|
|
|
|
|
# using yield with parametrize
|
2019-06-01 16:53:45 +08:00
|
|
|
|
doctest_optionflags = NORMALIZE_WHITESPACE ELLIPSIS
|
2021-12-07 21:33:54 +08:00
|
|
|
|
testpaths = sklearn
|
2017-02-20 20:08:09 +08:00
|
|
|
|
addopts =
|
|
|
|
|
|
--doctest-modules
|
|
|
|
|
|
--disable-pytest-warnings
|
2021-08-08 23:01:13 +08:00
|
|
|
|
--color=yes
|
2022-03-14 17:41:06 +08:00
|
|
|
|
# Activate the plugin explicitly to ensure that the seed is reported
|
|
|
|
|
|
# correctly on the CI when running `pytest --pyargs sklearn` from the
|
|
|
|
|
|
# source folder.
|
|
|
|
|
|
-p sklearn.tests.random_seed
|
2021-11-06 17:06:06 +08:00
|
|
|
|
-rN
|
2017-02-20 20:08:09 +08:00
|
|
|
|
|
2019-02-02 18:15:39 +08:00
|
|
|
|
filterwarnings =
|
|
|
|
|
|
ignore:the matrix subclass:PendingDeprecationWarning
|
|
|
|
|
|
|
2017-11-14 20:26:39 +08:00
|
|
|
|
[flake8]
|
2021-06-12 23:14:09 +08:00
|
|
|
|
# max line length for black
|
|
|
|
|
|
max-line-length = 88
|
|
|
|
|
|
target-version = ['py37']
|
2017-11-14 20:26:39 +08:00
|
|
|
|
# Default flake8 3.5 ignored flags
|
2021-06-12 23:14:09 +08:00
|
|
|
|
ignore=
|
|
|
|
|
|
E24, # check ignored by default in flake8. Meaning unclear.
|
|
|
|
|
|
E121, # continuation line under-indented
|
|
|
|
|
|
E123, # closing bracket does not match indentation
|
|
|
|
|
|
E126, # continuation line over-indented for hanging indent
|
|
|
|
|
|
E203, # space before : (needed for how black formats slicing)
|
|
|
|
|
|
E226, # missing whitespace around arithmetic operator
|
|
|
|
|
|
E704, # multiple statements on one line (def)
|
|
|
|
|
|
E731, # do not assign a lambda expression, use a def
|
|
|
|
|
|
E741, # do not use variables named ‘l’, ‘O’, or ‘I’
|
|
|
|
|
|
W503, # line break before binary operator
|
|
|
|
|
|
W504 # line break after binary operator
|
|
|
|
|
|
exclude=
|
|
|
|
|
|
.git,
|
|
|
|
|
|
__pycache__,
|
|
|
|
|
|
dist,
|
|
|
|
|
|
sklearn/externals,
|
|
|
|
|
|
doc/_build,
|
|
|
|
|
|
doc/auto_examples,
|
2021-06-18 21:46:40 +08:00
|
|
|
|
doc/tutorial,
|
|
|
|
|
|
build
|
2021-06-12 23:14:09 +08:00
|
|
|
|
|
2020-11-02 05:31:57 +08:00
|
|
|
|
# It's fine not to put the import at the top of the file in the examples
|
|
|
|
|
|
# folder.
|
|
|
|
|
|
per-file-ignores =
|
|
|
|
|
|
examples/*: E402
|
2021-06-18 21:46:40 +08:00
|
|
|
|
doc/conf.py: E402
|
2020-09-01 07:03:38 +08:00
|
|
|
|
|
|
|
|
|
|
[mypy]
|
|
|
|
|
|
ignore_missing_imports = True
|
|
|
|
|
|
allow_redefinition = True
|
2020-09-07 19:24:26 +08:00
|
|
|
|
|
|
|
|
|
|
[check-manifest]
|
|
|
|
|
|
# ignore files missing in VCS
|
|
|
|
|
|
ignore =
|
2021-11-26 23:45:41 +08:00
|
|
|
|
sklearn/_loss/_loss.pyx
|
2020-09-07 19:24:26 +08:00
|
|
|
|
sklearn/linear_model/_sag_fast.pyx
|
|
|
|
|
|
sklearn/utils/_seq_dataset.pyx
|
2021-08-10 03:43:56 +08:00
|
|
|
|
sklearn/utils/_seq_dataset.pxd
|
|
|
|
|
|
sklearn/utils/_weight_vector.pyx
|
|
|
|
|
|
sklearn/utils/_weight_vector.pxd
|
2021-10-04 21:33:47 +08:00
|
|
|
|
|
|
|
|
|
|
[codespell]
|
|
|
|
|
|
skip = ./.git,./.mypy_cache,./doc/themes/scikit-learn-modern/static/js,./sklearn/feature_extraction/_stop_words.py,./doc/_build,./doc/auto_examples,./doc/modules/generated
|
|
|
|
|
|
ignore-words = build_tools/codespell_ignore_words.txt
|