[flake8]
exclude =
    .git,
    __pycache__,
	auto_examples,
    build,
    dist,
	env,
	nilearn/externals/tempita
	nilearn/externals/
	nilearn_cache
	venv,
	doc/_build
--select = D,E,F,W,C90,CFQ
docstring-convention = numpy
max-line-length = 79
max_complexity = 43
max_function_length = 407
max_parameters_amount = 26
max_returns_amount = 10
# For PEP8 error codes see
# http://pep8.readthedocs.org/en/latest/intro.html#error-codes
	# D100-D104: missing docstring
	# D105: missing docstring in magic method
	# D107: missing docstring in __init__
	# D205: 1 blank line required between summary line and description
	# D400: first line should end with a period
	# E203: whitespace before ':'
	# E402: module level import not at top of file
	# F401: module imported but unused
	# W503: line break before binary operator
	# W504: line break after binary operator
per-file-ignores =
	**/__init__.py: D104
    # - docstrings rules that should not be applied to tests
	**/tests/*: D100, D101, D102, D103, D104, D205, D400, D401
	**/_testing.py: D100, D101, D102, D103, D104, D205, D400, D401
    # - docstrings rules that should not be applied to examples
	examples/*/*: D103, D205, D301, D400
    # - docstrings rules that should not be applied to doc
	doc/*: D100, D103, F401
ignore = D105, D107, E402, W503, W504, W605, BLK100, CFQ003
# for compatibility with black
# https://black.readthedocs.io/en/stable/guides/using_black_with_other_tools.html#flake8
extend-ignore = E203
