Repository navigation
Expand file tree
/
Copy pathsetup.cfg
More file actions
60 lines (55 loc) · 1.42 KB
/
Copy pathsetup.cfg
File metadata and controls
60 lines (55 loc) · 1.42 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
[aliases]
test = pytest
[tool:pytest]
# disable-pytest-warnings should be removed once we rewrite tests
# using yield with parametrize
; doctest_optionflags = NORMALIZE_WHITESPACE ELLIPSIS
; testpaths = sklearn
; addopts =
; --doctest-modules
; --disable-pytest-warnings
; --color=yes
; -rN
[flake8]
# max line length for black
max-line-length = 88
target-version = ['py37']
# Default flake8 3.5 ignored flags
ignore=
# check ignored by default in flake8. Meaning unclear.
E24,
# continuation line under-indented
E121,
# closing bracket does not match indentation
E123,
# continuation line over-indented for hanging indent
E126,
# space before : (needed for how black formats slicing)
E203,
# missing whitespace around arithmetic operator
E226,
# multiple statements on one line (def)
E704,
# do not assign a lambda expression, use a def
E731,
# do not use variables named 'l', 'O', or 'I'
E741,
# line break before binary operator
W503,
# line break after binary operator
W504
exclude=
.git,
__pycache__,
dist,
build
# It's fine not to put the import at the top of the file in the examples
# folder.
per-file-ignores =
examples/*: E402
docs/conf.py: E402
[mypy]
ignore_missing_imports = True
allow_redefinition = True
[codespell]
skip = ./.git,./.mypy_cache,./docs/_build,./docs/auto_examples,./docs/modules/generated