-
Notifications
You must be signed in to change notification settings - Fork 2
/
setup.cfg
61 lines (52 loc) · 1.3 KB
/
setup.cfg
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
61
[flake8]
# Required to match 'black'
ignore = E203,W503
max-line-length = 120
[mypy]
pretty = true
check_untyped_defs = true
show_error_codes = true
ignore_missing_imports = true
[pylint.BASIC]
good-names=a,b,c,i,j,k,n,x,y,z,xs,ys,zs,f,fn,exc,df,t0,T,_
max-args=7
ignored-modules=keras
extension-pkg-whitelist=numpy
no-docstring-rgx=^_|^build$|^call$|^apply_gradients$
# Mostly TensorFlow issues e.g. https://github.com/PyCQA/pylint/issues/3613
disable =
unexpected-keyword-arg,
no-value-for-parameter,
invalid-unary-operand-type,
invalid-sequence-index,
redefined-builtin, # annoying & not that helpful
use-dict-literal,
line-too-long
[pylint.REPORTS]
output-format = colorized
[pylint.SIMILARITIES]
ignore-imports = yes
[pylint.DESIGN]
max-attributes = 10
[tool:pytest]
addopts = --no-cov-on-fail
filterwarnings =
ignore:the imp module:DeprecationWarning:tensorflow
[coverage:run]
omit = */flycheck_*.py
[coverage:report]
fail_under = 100
skip_covered = true
show_missing = true
exclude_lines =
pragma: no cover
raise NotImplementedError
assert False
[isort]
# See https://black.readthedocs.io/en/stable/compatible_configs.html
multi_line_output = 3
include_trailing_comma = True
force_grid_wrap = 0
use_parentheses = True
ensure_newline_before_comments = True
line_length = 88