forked from fonttools/fontbakery
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
93 lines (85 loc) · 2.41 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
# ============================================================================
[tool.black]
line-length = 88
target-version = ["py310"]
# 'extend-exclude' excludes files or directories in addition to the defaults
extend-exclude = '''
# A regex preceded with ^/ will apply only to files and directories
# in the root of the project. Separate regexes with | .
(
.*_pb2.py # exclude autogenerated Protocol Buffer files anywhere in the project
)
'''
# ============================================================================
[tool.pytest.ini_options]
minversion = "6.0"
testpaths = ["tests"]
addopts = "-n 8 --color=yes --verbose"
filterwarnings = [
"ignore:pkg_resources is deprecated as an API:DeprecationWarning",
"ignore:Deprecated call to `pkg_resources.declare_namespace:DeprecationWarning",
]
# ============================================================================
[tool.pylint.master]
ignore-patterns = ".*_pb2.py"
jobs = 0 # Specifying 0 will auto-detect the number of processors available to use
logging-format-style = "new"
msg-template = "{msg_id} ({symbol}) {path} @ {line} — {msg}"
output-format = "colorized"
score = "n"
[tool.pylint.'MESSAGES CONTROL']
disable = [
# Error
"no-member",
"no-name-in-module",
"used-before-assignment",
# Warning
"broad-exception-caught",
"broad-exception-raised",
"cell-var-from-loop",
"fixme",
"keyword-arg-before-vararg",
"protected-access",
"raise-missing-from",
"redefined-outer-name",
"subprocess-run-check",
"superfluous-parens",
"undefined-loop-variable",
"unnecessary-pass",
"unused-argument",
"unused-variable",
# Convention
"consider-iterating-dictionary",
"consider-using-dict-items",
"consider-using-enumerate",
"consider-using-f-string",
"import-outside-toplevel",
"invalid-name",
"missing-docstring",
"too-many-lines",
# Refactor
"chained-comparison",
"consider-using-with",
"inconsistent-return-statements",
"no-else-raise",
"no-else-return",
"too-few-public-methods",
"too-many-arguments",
"too-many-boolean-expressions",
"too-many-branches",
"too-many-instance-attributes",
"too-many-locals",
"too-many-nested-blocks",
"too-many-public-methods",
"too-many-return-statements",
"too-many-statements",
"unnecessary-dict-index-lookup",
"use-a-generator",
# Information
"c-extension-no-member",
# FIXME on Sphinx code,
"abstract-method",
"unexpected-keyword-arg",
"logging-too-many-args",
"attribute-defined-outside-init",
]