-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathpyproject.toml
114 lines (89 loc) · 2.62 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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
[project]
name = "halutmatmul"
version = "0.0.1"
readme = "README.md"
[project.license]
name = "MIT"
[tool.mypy]
ignore_missing_imports = true
files = ["src/python"]
[tool.pytest.ini_options]
pythonpath = ["src/python"]
markers = [
"heavy", # should be run independent in CI
]
minversion = "6.0.0"
testpaths = ["src/python/test"]
python_files = "test*.py"
addopts = "-nauto --strict-markers --strict-config -v"
# always run in parallel (requires pytest-xdist to be installed)
# and enable strict mode: require all markers
# to be defined and raise on invalid config values
# treat xpasses as test failures so they get converted to regular tests as soon as possible
xfail_strict = true
[tool.pylint]
# Use multiple processes to speed up Pylint.
jobs = 4
ignore-paths = ["^src/python/results/*$", "^src/python/runs/*$"]
ignore-patterns = [
".*.json",
".*.pth",
".*.core",
".*.sh",
".*.log",
".*.txt",
".*.npy",
".*.png",
".*.csv",
]
max-line-length = 100
enable = "bad-indentation" # Used when an unexpected number of indentation’s tabulations or spaces has been found.unnecessary-semicolon, # Used when a statement is ended by a semi-colon (”;”), which isn’t necessary.unused-variable # Used when a variable is defined but not used. (Use _var to ignore var).
disable = [
"import-error",
"missing-module-docstring",
"invalid-name",
"missing-function-docstring",
"redefined-outer-name",
"missing-class-docstring",
"too-many-locals",
"too-few-public-methods",
"unused-import",
"pointless-string-statement",
"too-many-statements",
"too-many-arguments",
"no-name-in-module",
"fixme",
"too-many-branches",
"multiple-imports",
"duplicate-code",
"inconsistent-return-statements",
"consider-using-min-builtin",
"too-many-instance-attributes",
"consider-using-f-string",
"no-else-return",
"no-else-raise",
"unspecified-encoding",
"broad-except",
"redefined-builtin",
"trailing-newlines",
"dangerous-default-value",
"too-many-lines",
"broad-exception-raised",
]
reports = false
score = false
# Tells whether to display a full report or only the messages
# Activate the evaluation score.
# Exceptions that will emit a warning when being caught.
# Minimum lines number of a similarity.
min-similarity-lines = 5
generated-members = ["numpy.*", "torch.*"]
# List of members which are set dynamically and missed by Pylint inference
# system, and so shouldn't trigger E1101 when accessed.
[tool.commitizen]
name = "cz_conventional_commits"
tag_format = "$version"
version_scheme = "semver"
version_provider = "pep621"
update_changelog_on_bump = true
major_version_zero = true