Skip to content

Commit 6be3450

Browse files
committed
fixing lint, Soundfont md5 renamed hash_ (and using sha384)
1 parent 09e3bba commit 6be3450

17 files changed

+1114
-2443
lines changed

.clang-format

+1-1
Original file line numberDiff line numberDiff line change
@@ -297,4 +297,4 @@ UseTab: Never
297297

298298
NamespaceIndentation: None
299299

300-
KeepEmptyLinesAtEOF: true
300+
KeepEmptyLinesAtEOF: true

CMakeSettings.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@
1212
"ctestCommandArgs": ""
1313
}
1414
]
15-
}
15+
}

py_src/bind_vector_copy.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -566,4 +566,4 @@ nanobind::class_<std::shared_ptr<pycontainer::pyvec<T>>> bind_shared_pyvec(nanob
566566
return cl;
567567
}
568568

569-
} // namespace pyutils
569+
} // namespace pyutils

py_src/core.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -596,4 +596,4 @@ NB_MODULE(core, m) {
596596
// clang-format on
597597
bind_synthesizer(m);
598598
}
599-
} // namespace symusic
599+
} // namespace symusic

py_src/py_utils.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -541,4 +541,4 @@ auto bind_textmeta(nb::module_& m, const std::string& name_) {
541541

542542

543543
} // namespace pyutils
544-
#endif // PY_UTILS_H
544+
#endif // PY_UTILS_H

pyproject.toml

+24-5
Original file line numberDiff line numberDiff line change
@@ -95,22 +95,42 @@ exclude = ["3rdparty"]
9595
extend-select = [
9696
"ARG",
9797
"A",
98+
# "ANN",
9899
"B",
100+
"BLE",
101+
"C4",
102+
"COM",
103+
# "D",
99104
# "E",
105+
"EM",
106+
"EXE",
100107
"F",
108+
"FA",
109+
# "FBT",
101110
"G",
102111
"I",
112+
"ICN",
113+
"INP",
103114
"INT",
115+
"ISC",
104116
# "N",
105117
"NPY",
106118
"PERF",
107-
# "PTH",
119+
# "PGH",
120+
"PTH",
108121
"PIE",
122+
# "PL",
123+
"PT",
109124
"Q",
125+
"RET",
126+
"RSE",
110127
"RUF",
111-
# "S",
112-
# "SIM",
128+
"S",
129+
# "SLF",
130+
"SIM",
113131
"T",
132+
"TCH",
133+
"TID",
114134
"UP",
115135
"W",
116136
]
@@ -120,8 +140,7 @@ extend-select = [
120140
"S101", # allow assertions in tests
121141
"T201", # print allowed
122142
]
123-
"symusic/core.pyi" = [
124-
"UP007", # `X | Y` for type annotations
143+
"python/symusic/core.pyi" = [
125144
"A003", # allow using filter as method name
126145
"F811", # the first overloaded function generated by nanobind has no @overload decorator
127146
]

0 commit comments

Comments
 (0)