-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathpyproject.toml
89 lines (78 loc) · 2.32 KB
/
pyproject.toml
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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
[build-system]
requires = ["setuptools>=46.4", "wheel"]
build-backend = "setuptools.build_meta"
# ======================================
[tool.mypy]
python_version = "3.10"
disable_error_code = "override"
disallow_any_expr = true
disallow_untyped_calls = true
disallow_untyped_defs = true
disallow_incomplete_defs = true
disallow_untyped_decorators = true
no_implicit_optional = true
warn_redundant_casts = true
warn_unused_ignores = true
warn_return_any = true
warn_unreachable = true
show_error_codes = true
show_absolute_path = true
# ======================================
[tool.pylint.master]
load-plugins = ["pylint.extensions.overlapping_exceptions"]
[tool.pylint.basic]
good-names = ["e", "i", "ix", "k", "ns", "p", "tb", "v"]
[tool.pylint.messages_control]
disable = [
"cyclic-import",
"fixme",
"import-outside-toplevel",
"too-many-ancestors",
"too-many-arguments",
"too-many-branches",
"too-many-locals",
"too-many-return-statements",
"too-many-statements",
"wrong-import-position"
]
[tool.pylint.classes]
exclude-protected = [
# davos.core.config.DavosConfig attributes
"_active",
"_conda_avail",
"_conda_env",
"_conda_envs_dirs",
"_ipy_showsyntaxerror_orig",
"_ipython_shell",
"_pip_executable",
"_smuggled",
"_stdlib_modules",
# IPython.core.interactiveshell.InteractiveShell methods
"_get_exc_info",
"_showtraceback",
# IPython custom display method for Exception classes
"_render_traceback_",
# ipykernel.ipkernel.IPythonKernel attribute
"_parent_ident"
]
[tool.pylint.design]
max-attributes = 20
[tool.pylint.typecheck]
generated-members = ["zmq.EAGAIN", "NOBLOCK"]
[tool.pylint.variables]
additional-builtins = ["get_ipython"]
allowed-redefined-builtins = ["help"]
[tool.pytest.ini_options]
addopts = "--capture=no --strict-markers --verbose"
markers = [
"colab: marks tests that should run only on Google Colab",
"jupyter: marks tests that should run only in Jupyter notebooks",
"ipython_pre7: marks tests that should run only if IPython<7.0.0",
"ipython_post7: marks tests that should run only if IPython>=7.0.0",
"timeout: marks tests that should fail after a certain amount of time"
]
[tool.codespell]
skip = '.git,*.pdf,*.svg,*.bst,*.cls'
ignore-regex = 'doesnt/exist|Ser Davos'
#
ignore-words-list = 'covert,dateset'