forked from pyqtgraph/pyqtgraph
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
94 lines (80 loc) · 1.88 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
90
91
92
93
94
[build-system]
requires = ["setuptools"]
build-backend = "setuptools.build_meta"
[tool.black]
line-length = 88
target-version = ['py310']
include = '\.pyi?$'
exclude = '''
(
/(
\.eggs # exclude a few common directories in the
| \.git # root of the project
| \.hg
| \.mypy_cache
| \.tox
| \.venv*
| _build
| buck-out
| build
| dist
)/
)
'''
[tool.coverage.run]
parallel = true
branch = true
relative_files = true
source = ["pyqtgraph"]
omit = ["./pyqtgraph/examples/*"]
[tool.coverage.report]
show_missing = true
skip_covered = false
skip_empty = true
exclude_also = [
# allow defensive code
"raise AssertionError",
"raise NotImplementedError",
"return NotImplemented",
"if self.debug",
"def __repr__",
# typing-related code
"if False:",
"if TYPE_CHECKING",
"-> NoReturn:",
]
[tool.isort]
profile = "black"
honor_noqa = true
color_output = true
py_version = 310
src_paths = ["pyqtgraph", "tests"]
skip_glob = ["**/*Template*.py"]
skip_gitignore = true
known_third_party = ["QtCore", "QtGui", "QtWidgets"]
[tool.pycln]
all = true
exclude = '(Template|__init__.py)'
[tool.mypy]
packages = ["pyqtgraph"]
show_error_codes = true
strict = true
disable_error_code = ["attr-defined"]
ignore_errors = true
[[tool.mypy.overrides]]
module = "pyqtgraph.flowchart.*" # the list will increase
ignore_errors = true # will be changed to `false` when it's ready
[tool.numpydoc_validation]
checks = [
'all', # report on all checks, except the below
'EX01', # allow absence of "Examples" section
'SA01', # allow absence of "See Also" section
'GL08', # allow absence of docstring
'ES01', # allow absence of Extended Summary
]
# remember to use single quotes for regex in TOML
exclude = [ # don't report on objects that match any of these regex
]
override_GL06 = [
'Signals', # allow sections to start with "Signals"
]