quant1x-mpb 0.1.11__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- quant1x_mpb-0.1.11/.clang-format +99 -0
- quant1x_mpb-0.1.11/.clang-tidy +147 -0
- quant1x_mpb-0.1.11/.clangd +9 -0
- quant1x_mpb-0.1.11/.editorconfig +34 -0
- quant1x_mpb-0.1.11/.gitattributes +84 -0
- quant1x_mpb-0.1.11/.githooks/commit-msg +60 -0
- quant1x_mpb-0.1.11/.githooks/pre-commit +45 -0
- quant1x_mpb-0.1.11/.gitignore +59 -0
- quant1x_mpb-0.1.11/CHANGELOG.md +487 -0
- quant1x_mpb-0.1.11/LICENSE +21 -0
- quant1x_mpb-0.1.11/PKG-INFO +403 -0
- quant1x_mpb-0.1.11/README.md +384 -0
- quant1x_mpb-0.1.11/__init__.py +253 -0
- quant1x_mpb-0.1.11/_types.py +52 -0
- quant1x_mpb-0.1.11/_version.py +24 -0
- quant1x_mpb-0.1.11/build.zig +34 -0
- quant1x_mpb-0.1.11/build.zig.zon +13 -0
- quant1x_mpb-0.1.11/console_other.go +19 -0
- quant1x_mpb-0.1.11/console_windows.go +100 -0
- quant1x_mpb-0.1.11/doc.go +51 -0
- quant1x_mpb-0.1.11/draw_target.go +538 -0
- quant1x_mpb-0.1.11/draw_target.py +232 -0
- quant1x_mpb-0.1.11/draw_target.zig +512 -0
- quant1x_mpb-0.1.11/examples/cargo.go +162 -0
- quant1x_mpb-0.1.11/examples/cargo.zig +125 -0
- quant1x_mpb-0.1.11/examples/cargowrap.go +63 -0
- quant1x_mpb-0.1.11/examples/cargowrap.zig +49 -0
- quant1x_mpb-0.1.11/examples/download.go +44 -0
- quant1x_mpb-0.1.11/examples/download.zig +34 -0
- quant1x_mpb-0.1.11/examples/download_continued.go +39 -0
- quant1x_mpb-0.1.11/examples/download_continued.zig +29 -0
- quant1x_mpb-0.1.11/examples/download_speed.go +37 -0
- quant1x_mpb-0.1.11/examples/download_speed.zig +27 -0
- quant1x_mpb-0.1.11/examples/fastbar.go +34 -0
- quant1x_mpb-0.1.11/examples/fastbar.zig +27 -0
- quant1x_mpb-0.1.11/examples/finebars.go +58 -0
- quant1x_mpb-0.1.11/examples/finebars.zig +55 -0
- quant1x_mpb-0.1.11/examples/iterator.go +56 -0
- quant1x_mpb-0.1.11/examples/iterator.zig +45 -0
- quant1x_mpb-0.1.11/examples/log.go +23 -0
- quant1x_mpb-0.1.11/examples/log.zig +19 -0
- quant1x_mpb-0.1.11/examples/long_spinner.go +35 -0
- quant1x_mpb-0.1.11/examples/long_spinner.zig +28 -0
- quant1x_mpb-0.1.11/examples/main.go +85 -0
- quant1x_mpb-0.1.11/examples/main.zig +96 -0
- quant1x_mpb-0.1.11/examples/morebars.go +37 -0
- quant1x_mpb-0.1.11/examples/morebars.zig +34 -0
- quant1x_mpb-0.1.11/examples/multi.go +121 -0
- quant1x_mpb-0.1.11/examples/multi.zig +81 -0
- quant1x_mpb-0.1.11/examples/multi_tree.go +140 -0
- quant1x_mpb-0.1.11/examples/multi_tree.zig +121 -0
- quant1x_mpb-0.1.11/examples/multi_tree_ext.go +202 -0
- quant1x_mpb-0.1.11/examples/multi_tree_ext.zig +172 -0
- quant1x_mpb-0.1.11/examples/single.go +20 -0
- quant1x_mpb-0.1.11/examples/single.zig +17 -0
- quant1x_mpb-0.1.11/examples/tokio.go +32 -0
- quant1x_mpb-0.1.11/examples/tokio.zig +23 -0
- quant1x_mpb-0.1.11/examples/util.zig +77 -0
- quant1x_mpb-0.1.11/examples/yarnish.go +107 -0
- quant1x_mpb-0.1.11/examples/yarnish.zig +101 -0
- quant1x_mpb-0.1.11/format.go +248 -0
- quant1x_mpb-0.1.11/format.py +168 -0
- quant1x_mpb-0.1.11/format.zig +201 -0
- quant1x_mpb-0.1.11/go.mod +15 -0
- quant1x_mpb-0.1.11/go.sum +20 -0
- quant1x_mpb-0.1.11/in_memory.go +475 -0
- quant1x_mpb-0.1.11/in_memory.py +339 -0
- quant1x_mpb-0.1.11/iter.go +250 -0
- quant1x_mpb-0.1.11/iter.py +287 -0
- quant1x_mpb-0.1.11/license-header.toml +11 -0
- quant1x_mpb-0.1.11/mpb.zig +57 -0
- quant1x_mpb-0.1.11/multi.go +900 -0
- quant1x_mpb-0.1.11/multi.py +551 -0
- quant1x_mpb-0.1.11/multi.zig +506 -0
- quant1x_mpb-0.1.11/multi_test.py +377 -0
- quant1x_mpb-0.1.11/multi_zombie_test.go +46 -0
- quant1x_mpb-0.1.11/progress_bar.go +465 -0
- quant1x_mpb-0.1.11/progress_bar.py +374 -0
- quant1x_mpb-0.1.11/progress_bar.zig +382 -0
- quant1x_mpb-0.1.11/progress_bar_clone_test.go +53 -0
- quant1x_mpb-0.1.11/progress_bar_render_test.go +298 -0
- quant1x_mpb-0.1.11/progress_bar_render_test.py +172 -0
- quant1x_mpb-0.1.11/progress_bar_test.go +39 -0
- quant1x_mpb-0.1.11/pyproject.toml +42 -0
- quant1x_mpb-0.1.11/quant1x_mpb.egg-info/PKG-INFO +403 -0
- quant1x_mpb-0.1.11/quant1x_mpb.egg-info/SOURCES.txt +136 -0
- quant1x_mpb-0.1.11/quant1x_mpb.egg-info/dependency_links.txt +1 -0
- quant1x_mpb-0.1.11/quant1x_mpb.egg-info/scm_file_list.json +118 -0
- quant1x_mpb-0.1.11/quant1x_mpb.egg-info/scm_version.json +8 -0
- quant1x_mpb-0.1.11/quant1x_mpb.egg-info/top_level.txt +1 -0
- quant1x_mpb-0.1.11/rayon.go +59 -0
- quant1x_mpb-0.1.11/screenshots/cargo.gif +0 -0
- quant1x_mpb-0.1.11/screenshots/cargo.tape +17 -0
- quant1x_mpb-0.1.11/screenshots/cargowrap.gif +0 -0
- quant1x_mpb-0.1.11/screenshots/cargowrap.tape +23 -0
- quant1x_mpb-0.1.11/screenshots/download-continued.gif +0 -0
- quant1x_mpb-0.1.11/screenshots/download-continued.tape +12 -0
- quant1x_mpb-0.1.11/screenshots/download-speed.gif +0 -0
- quant1x_mpb-0.1.11/screenshots/download-speed.tape +12 -0
- quant1x_mpb-0.1.11/screenshots/download.gif +0 -0
- quant1x_mpb-0.1.11/screenshots/download.tape +12 -0
- quant1x_mpb-0.1.11/screenshots/fastbar.gif +0 -0
- quant1x_mpb-0.1.11/screenshots/fastbar.tape +12 -0
- quant1x_mpb-0.1.11/screenshots/finebars.gif +0 -0
- quant1x_mpb-0.1.11/screenshots/finebars.tape +12 -0
- quant1x_mpb-0.1.11/screenshots/iterator.gif +0 -0
- quant1x_mpb-0.1.11/screenshots/iterator.tape +12 -0
- quant1x_mpb-0.1.11/screenshots/log.gif +0 -0
- quant1x_mpb-0.1.11/screenshots/log.tape +12 -0
- quant1x_mpb-0.1.11/screenshots/long-spinner.gif +0 -0
- quant1x_mpb-0.1.11/screenshots/long-spinner.tape +12 -0
- quant1x_mpb-0.1.11/screenshots/morebars.gif +0 -0
- quant1x_mpb-0.1.11/screenshots/morebars.tape +12 -0
- quant1x_mpb-0.1.11/screenshots/multi-tree-ext.gif +0 -0
- quant1x_mpb-0.1.11/screenshots/multi-tree-ext.tape +15 -0
- quant1x_mpb-0.1.11/screenshots/multi-tree.gif +0 -0
- quant1x_mpb-0.1.11/screenshots/multi-tree.tape +15 -0
- quant1x_mpb-0.1.11/screenshots/single.gif +0 -0
- quant1x_mpb-0.1.11/screenshots/single.tape +12 -0
- quant1x_mpb-0.1.11/screenshots/tokio.gif +0 -0
- quant1x_mpb-0.1.11/screenshots/tokio.tape +12 -0
- quant1x_mpb-0.1.11/screenshots/yarnish.gif +0 -0
- quant1x_mpb-0.1.11/screenshots/yarnish.tape +12 -0
- quant1x_mpb-0.1.11/setup.cfg +4 -0
- quant1x_mpb-0.1.11/state.go +1268 -0
- quant1x_mpb-0.1.11/state.py +843 -0
- quant1x_mpb-0.1.11/state.zig +525 -0
- quant1x_mpb-0.1.11/style.go +1490 -0
- quant1x_mpb-0.1.11/style.py +1127 -0
- quant1x_mpb-0.1.11/style.zig +825 -0
- quant1x_mpb-0.1.11/style_test.py +239 -0
- quant1x_mpb-0.1.11/term_like.go +255 -0
- quant1x_mpb-0.1.11/term_like.py +231 -0
- quant1x_mpb-0.1.11/term_like.zig +554 -0
- quant1x_mpb-0.1.11/unicode_width.zig +1259 -0
- quant1x_mpb-0.1.11/util.zig +160 -0
- quant1x_mpb-0.1.11/weakref.go +91 -0
- quant1x_mpb-0.1.11/width.zig +109 -0
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
BasedOnStyle: Google
|
|
2
|
+
AccessModifierOffset: -4
|
|
3
|
+
AlignAfterOpenBracket: Align
|
|
4
|
+
AlignConsecutiveAssignments: true
|
|
5
|
+
AlignConsecutiveDeclarations: true
|
|
6
|
+
AlignEscapedNewlines: Left
|
|
7
|
+
AlignOperands: true
|
|
8
|
+
AlignTrailingComments: true
|
|
9
|
+
AllowAllArgumentsOnNextLine: true
|
|
10
|
+
AllowAllParametersOfDeclarationOnNextLine: true
|
|
11
|
+
AllowShortBlocksOnASingleLine: false
|
|
12
|
+
AllowShortCaseLabelsOnASingleLine: false
|
|
13
|
+
AllowShortFunctionsOnASingleLine: InlineOnly
|
|
14
|
+
AllowShortIfStatementsOnASingleLine: false
|
|
15
|
+
AllowShortLoopsOnASingleLine: false
|
|
16
|
+
AlwaysBreakAfterDefinitionReturnType: None
|
|
17
|
+
AlwaysBreakAfterReturnType: None
|
|
18
|
+
AlwaysBreakBeforeMultilineStrings: false
|
|
19
|
+
AlwaysBreakTemplateDeclarations: Yes
|
|
20
|
+
BinPackArguments: false
|
|
21
|
+
BinPackParameters: false
|
|
22
|
+
BraceWrapping:
|
|
23
|
+
AfterClass: true
|
|
24
|
+
AfterControlStatement: Never
|
|
25
|
+
AfterEnum: true
|
|
26
|
+
AfterFunction: true
|
|
27
|
+
AfterNamespace: false
|
|
28
|
+
AfterObjCDeclaration: false
|
|
29
|
+
AfterStruct: true
|
|
30
|
+
AfterUnion: true
|
|
31
|
+
BeforeElse: true
|
|
32
|
+
IndentBraces: false
|
|
33
|
+
SplitEmptyFunction: true
|
|
34
|
+
SplitEmptyRecord: true
|
|
35
|
+
SplitEmptyNamespace: true
|
|
36
|
+
BreakBeforeBinaryOperators: None
|
|
37
|
+
BreakBeforeTernaryOperators: true
|
|
38
|
+
BreakConstructorInitializers: BeforeComma
|
|
39
|
+
ColumnLimit: 120
|
|
40
|
+
CommentPragmas: '^ IWYU pragma:'
|
|
41
|
+
CompactNamespaces: false
|
|
42
|
+
ConstructorInitializerIndentWidth: 4
|
|
43
|
+
ContinuationIndentWidth: 4
|
|
44
|
+
Cpp11BracedListStyle: true
|
|
45
|
+
DerivePointerAlignment: false
|
|
46
|
+
DisableFormat: false
|
|
47
|
+
ExperimentalAutoDetectBinPacking: false
|
|
48
|
+
FixNamespaceComments: true
|
|
49
|
+
ForEachMacros:
|
|
50
|
+
- foreach
|
|
51
|
+
- qForeach
|
|
52
|
+
IncludeCategories:
|
|
53
|
+
- Regex: '^<.*\.h>'
|
|
54
|
+
Priority: 1
|
|
55
|
+
- Regex: '^<.*'
|
|
56
|
+
Priority: 2
|
|
57
|
+
- Regex: '.*'
|
|
58
|
+
Priority: 3
|
|
59
|
+
IncludeIsMainRegex: '(test|main)\.cpp'
|
|
60
|
+
IndentCaseLabels: true
|
|
61
|
+
IndentWidth: 4
|
|
62
|
+
IndentWrappedFunctionNames: false
|
|
63
|
+
JavaScriptQuotes: Leave
|
|
64
|
+
#JavaScriptRegExp: false
|
|
65
|
+
KeepEmptyLinesAtTheStartOfBlocks: true
|
|
66
|
+
MacroBlockBegin: ''
|
|
67
|
+
MacroBlockEnd: ''
|
|
68
|
+
MaxEmptyLinesToKeep: 1
|
|
69
|
+
NamespaceIndentation: All # namespace 内部内容也缩进
|
|
70
|
+
PenaltyBreakAssignment: 40
|
|
71
|
+
PenaltyBreakBeforeFirstCallParameter: 19
|
|
72
|
+
PenaltyBreakComment: 300
|
|
73
|
+
PenaltyBreakFirstLessLess: 120
|
|
74
|
+
PenaltyBreakString: 1000
|
|
75
|
+
PenaltyExcessCharacter: 1000000
|
|
76
|
+
PenaltyReturnTypeOnItsOwnLine: 60
|
|
77
|
+
PointerAlignment: Right
|
|
78
|
+
ReflowComments: true
|
|
79
|
+
SortIncludes: true
|
|
80
|
+
SortUsingDeclarations: true
|
|
81
|
+
SpaceAfterCStyleCast: false
|
|
82
|
+
SpaceAfterLogicalNot: false
|
|
83
|
+
SpaceAfterTemplateKeyword: true
|
|
84
|
+
SpaceBeforeAssignmentOperators: true
|
|
85
|
+
SpaceBeforeCpp11BracedList: false
|
|
86
|
+
#SpaceBeforeCtorColon: true
|
|
87
|
+
SpaceBeforeInheritanceColon: true
|
|
88
|
+
SpaceBeforeParens: ControlStatements
|
|
89
|
+
SpaceBeforeRangeBasedForLoopColon: true
|
|
90
|
+
SpaceInEmptyParentheses: false
|
|
91
|
+
SpacesBeforeTrailingComments: 2
|
|
92
|
+
SpacesInAngles: false
|
|
93
|
+
SpacesInContainerLiterals: false
|
|
94
|
+
SpacesInCStyleCastParentheses: false
|
|
95
|
+
SpacesInParentheses: false
|
|
96
|
+
SpacesInSquareBrackets: false
|
|
97
|
+
Standard: c++20
|
|
98
|
+
TabWidth: 4
|
|
99
|
+
UseTab: Never
|
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
# Generated from CLion Inspection settings
|
|
2
|
+
---
|
|
3
|
+
Checks: '-*,
|
|
4
|
+
bugprone-argument-comment,
|
|
5
|
+
bugprone-assert-side-effect,
|
|
6
|
+
bugprone-bad-signal-to-kill-thread,
|
|
7
|
+
bugprone-branch-clone,
|
|
8
|
+
bugprone-copy-constructor-init,
|
|
9
|
+
bugprone-dangling-handle,
|
|
10
|
+
bugprone-dynamic-static-initializers,
|
|
11
|
+
bugprone-fold-init-type,
|
|
12
|
+
bugprone-forward-declaration-namespace,
|
|
13
|
+
bugprone-forwarding-reference-overload,
|
|
14
|
+
bugprone-inaccurate-erase,
|
|
15
|
+
bugprone-incorrect-roundings,
|
|
16
|
+
bugprone-integer-division,
|
|
17
|
+
bugprone-lambda-function-name,
|
|
18
|
+
bugprone-macro-parentheses,
|
|
19
|
+
bugprone-macro-repeated-side-effects,
|
|
20
|
+
bugprone-misplaced-operator-in-strlen-in-alloc,
|
|
21
|
+
bugprone-misplaced-pointer-arithmetic-in-alloc,
|
|
22
|
+
bugprone-misplaced-widening-cast,
|
|
23
|
+
bugprone-move-forwarding-reference,
|
|
24
|
+
bugprone-multiple-statement-macro,
|
|
25
|
+
bugprone-no-escape,
|
|
26
|
+
bugprone-parent-virtual-call,
|
|
27
|
+
bugprone-posix-return,
|
|
28
|
+
bugprone-reserved-identifier,
|
|
29
|
+
bugprone-sizeof-container,
|
|
30
|
+
bugprone-sizeof-expression,
|
|
31
|
+
bugprone-spuriously-wake-up-functions,
|
|
32
|
+
bugprone-string-constructor,
|
|
33
|
+
bugprone-string-integer-assignment,
|
|
34
|
+
bugprone-string-literal-with-embedded-nul,
|
|
35
|
+
bugprone-suspicious-enum-usage,
|
|
36
|
+
bugprone-suspicious-include,
|
|
37
|
+
bugprone-suspicious-memset-usage,
|
|
38
|
+
bugprone-suspicious-missing-comma,
|
|
39
|
+
bugprone-suspicious-semicolon,
|
|
40
|
+
bugprone-suspicious-string-compare,
|
|
41
|
+
bugprone-suspicious-memory-comparison,
|
|
42
|
+
bugprone-suspicious-realloc-usage,
|
|
43
|
+
bugprone-swapped-arguments,
|
|
44
|
+
bugprone-terminating-continue,
|
|
45
|
+
bugprone-throw-keyword-missing,
|
|
46
|
+
bugprone-too-small-loop-variable,
|
|
47
|
+
bugprone-undefined-memory-manipulation,
|
|
48
|
+
bugprone-undelegated-constructor,
|
|
49
|
+
bugprone-unhandled-self-assignment,
|
|
50
|
+
bugprone-unused-raii,
|
|
51
|
+
bugprone-unused-return-value,
|
|
52
|
+
bugprone-use-after-move,
|
|
53
|
+
bugprone-virtual-near-miss,
|
|
54
|
+
cert-dcl21-cpp,
|
|
55
|
+
cert-dcl58-cpp,
|
|
56
|
+
cert-err34-c,
|
|
57
|
+
cert-err52-cpp,
|
|
58
|
+
cert-err60-cpp,
|
|
59
|
+
cert-flp30-c,
|
|
60
|
+
cert-msc50-cpp,
|
|
61
|
+
cert-msc51-cpp,
|
|
62
|
+
cert-str34-c,
|
|
63
|
+
cppcoreguidelines-interfaces-global-init,
|
|
64
|
+
cppcoreguidelines-narrowing-conversions,
|
|
65
|
+
cppcoreguidelines-pro-type-member-init,
|
|
66
|
+
cppcoreguidelines-pro-type-static-cast-downcast,
|
|
67
|
+
cppcoreguidelines-slicing,
|
|
68
|
+
google-default-arguments,
|
|
69
|
+
google-explicit-constructor,
|
|
70
|
+
google-runtime-operator,
|
|
71
|
+
hicpp-exception-baseclass,
|
|
72
|
+
hicpp-multiway-paths-covered,
|
|
73
|
+
misc-misplaced-const,
|
|
74
|
+
misc-new-delete-overloads,
|
|
75
|
+
misc-no-recursion,
|
|
76
|
+
misc-non-copyable-objects,
|
|
77
|
+
misc-throw-by-value-catch-by-reference,
|
|
78
|
+
misc-unconventional-assign-operator,
|
|
79
|
+
misc-uniqueptr-reset-release,
|
|
80
|
+
modernize-avoid-bind,
|
|
81
|
+
modernize-concat-nested-namespaces,
|
|
82
|
+
modernize-deprecated-headers,
|
|
83
|
+
modernize-deprecated-ios-base-aliases,
|
|
84
|
+
modernize-loop-convert,
|
|
85
|
+
modernize-make-shared,
|
|
86
|
+
modernize-make-unique,
|
|
87
|
+
modernize-pass-by-value,
|
|
88
|
+
modernize-raw-string-literal,
|
|
89
|
+
modernize-redundant-void-arg,
|
|
90
|
+
modernize-replace-auto-ptr,
|
|
91
|
+
modernize-replace-disallow-copy-and-assign-macro,
|
|
92
|
+
modernize-replace-random-shuffle,
|
|
93
|
+
modernize-return-braced-init-list,
|
|
94
|
+
modernize-shrink-to-fit,
|
|
95
|
+
modernize-unary-static-assert,
|
|
96
|
+
modernize-use-auto,
|
|
97
|
+
modernize-use-bool-literals,
|
|
98
|
+
modernize-use-emplace,
|
|
99
|
+
modernize-use-equals-default,
|
|
100
|
+
modernize-use-equals-delete,
|
|
101
|
+
modernize-use-nodiscard,
|
|
102
|
+
modernize-use-noexcept,
|
|
103
|
+
modernize-use-nullptr,
|
|
104
|
+
modernize-use-override,
|
|
105
|
+
modernize-use-transparent-functors,
|
|
106
|
+
modernize-use-uncaught-exceptions,
|
|
107
|
+
mpi-buffer-deref,
|
|
108
|
+
mpi-type-mismatch,
|
|
109
|
+
openmp-use-default-none,
|
|
110
|
+
performance-faster-string-find,
|
|
111
|
+
performance-for-range-copy,
|
|
112
|
+
performance-implicit-conversion-in-loop,
|
|
113
|
+
performance-inefficient-algorithm,
|
|
114
|
+
performance-inefficient-string-concatenation,
|
|
115
|
+
performance-inefficient-vector-operation,
|
|
116
|
+
performance-move-const-arg,
|
|
117
|
+
performance-move-constructor-init,
|
|
118
|
+
performance-no-automatic-move,
|
|
119
|
+
performance-noexcept-move-constructor,
|
|
120
|
+
performance-trivially-destructible,
|
|
121
|
+
performance-type-promotion-in-math-fn,
|
|
122
|
+
performance-unnecessary-copy-initialization,
|
|
123
|
+
performance-unnecessary-value-param,
|
|
124
|
+
portability-simd-intrinsics,
|
|
125
|
+
readability-avoid-const-params-in-decls,
|
|
126
|
+
readability-const-return-type,
|
|
127
|
+
readability-container-size-empty,
|
|
128
|
+
readability-convert-member-functions-to-static,
|
|
129
|
+
readability-delete-null-pointer,
|
|
130
|
+
readability-deleted-default,
|
|
131
|
+
readability-inconsistent-declaration-parameter-name,
|
|
132
|
+
readability-make-member-function-const,
|
|
133
|
+
readability-misleading-indentation,
|
|
134
|
+
readability-misplaced-array-index,
|
|
135
|
+
readability-non-const-parameter,
|
|
136
|
+
readability-redundant-control-flow,
|
|
137
|
+
readability-redundant-declaration,
|
|
138
|
+
readability-redundant-function-ptr-dereference,
|
|
139
|
+
readability-redundant-smartptr-get,
|
|
140
|
+
readability-redundant-string-cstr,
|
|
141
|
+
readability-redundant-string-init,
|
|
142
|
+
readability-simplify-subscript-expr,
|
|
143
|
+
readability-static-accessed-through-instance,
|
|
144
|
+
readability-static-definition-in-anonymous-namespace,
|
|
145
|
+
readability-string-compare,
|
|
146
|
+
readability-uniqueptr-delete-release,
|
|
147
|
+
readability-use-anyofallof'
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
# clangd 配置:编译数据库由 CMake 生成。
|
|
2
|
+
#
|
|
3
|
+
# Visual Studio 生成器不产出 compile_commands.json,需要 clangd 时用单独的
|
|
4
|
+
# Ninja 构建目录:
|
|
5
|
+
# cmake -S . -B build -G Ninja -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DCMAKE_BUILD_TYPE=Debug
|
|
6
|
+
# 切换/新增依赖后重跑上面的命令即可,编译数据库会随构建更新。
|
|
7
|
+
|
|
8
|
+
CompileFlags:
|
|
9
|
+
CompilationDatabase: build
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
# 顶层配置(对所有文件生效)
|
|
2
|
+
root = true
|
|
3
|
+
|
|
4
|
+
[*] # 所有文件
|
|
5
|
+
charset = utf-8 # 编码: 必须是**无 BOM** 的 UTF-8(`utf-8-bom` 是另一个取值, 本仓库不得使用)
|
|
6
|
+
end_of_line = lf # 换行符(Linux/macOS风格)
|
|
7
|
+
insert_final_newline = true # 文件末尾保留空行
|
|
8
|
+
trim_trailing_whitespace = true # 删除行尾空格
|
|
9
|
+
|
|
10
|
+
# 针对 Windows 批处理文件的配置
|
|
11
|
+
[*.{bat,cmd}]
|
|
12
|
+
charset = gbk # 编码
|
|
13
|
+
end_of_line = crlf # 强制使用 CRLF(Windows 风格)
|
|
14
|
+
trim_trailing_whitespace = false # 避免破坏批处理命令中的空格
|
|
15
|
+
insert_final_newline = true # 文件末尾保留空行(可选)
|
|
16
|
+
|
|
17
|
+
# Python 文件特定配置
|
|
18
|
+
[*.py]
|
|
19
|
+
indent_style = space # 缩进风格:空格
|
|
20
|
+
indent_size = 4 # 缩进大小:4空格(符合PEP 8)
|
|
21
|
+
max_line_length = 120 # 行长度限制(可自定义)
|
|
22
|
+
|
|
23
|
+
# 测试文件可能允许稍长行宽
|
|
24
|
+
[*/tests/*.py]
|
|
25
|
+
max_line_length = 160
|
|
26
|
+
|
|
27
|
+
# 配置文件(如YAML/JSON)
|
|
28
|
+
[*.{yml,yaml,json}]
|
|
29
|
+
indent_style = space
|
|
30
|
+
indent_size = 2 # 通常为2空格
|
|
31
|
+
|
|
32
|
+
# Markdown文件
|
|
33
|
+
[*.md]
|
|
34
|
+
trim_trailing_whitespace = false # 允许行尾空格(用于换行)
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
*.bat text working-tree-encoding=GBK eol=crlf
|
|
2
|
+
*.py text eol=lf
|
|
3
|
+
*.go text eol=lf
|
|
4
|
+
*.rs text eol=lf
|
|
5
|
+
*.java text eol=lf
|
|
6
|
+
*.ps1 text eol=lf
|
|
7
|
+
*.json text eol=lf
|
|
8
|
+
*.toml text eol=lf
|
|
9
|
+
*.md text eol=lf
|
|
10
|
+
*.yml text eol=lf
|
|
11
|
+
*.yaml text eol=lf
|
|
12
|
+
*.cmake text eol=lf
|
|
13
|
+
*.cpp text eol=lf
|
|
14
|
+
*.h text eol=lf
|
|
15
|
+
*.proto text eol=lf
|
|
16
|
+
.githooks/* text eol=lf
|
|
17
|
+
|
|
18
|
+
# ============================================================
|
|
19
|
+
# export-ignore: go 模块发布出口
|
|
20
|
+
# go 模块 (github.com/quant1x/mopr) 经 git archive / go module proxy
|
|
21
|
+
# 分发时只携带 Go 源码与合规物 (THIRD_PARTY_NOTICES.md +
|
|
22
|
+
# third_party/licenses/go/ 归档, 与 MANIFEST.in / Cargo include 的
|
|
23
|
+
# "各语言许可证归档仅随各自语言产物分发" 策略一致)。
|
|
24
|
+
# 以下为其它语言源码、构建产物与辅助文件, 一律不进 go module zip。
|
|
25
|
+
# 语法注意: 注释(#)行不生效; export-ignore 必须显式写在 attribute 位;
|
|
26
|
+
# 目录排除须写 dir/** 才能递归覆盖目录内文件。
|
|
27
|
+
# ============================================================
|
|
28
|
+
|
|
29
|
+
# --- Rust (lib.rs/main.rs 已含于 *.rs) ---
|
|
30
|
+
*.rs export-ignore
|
|
31
|
+
Cargo.toml export-ignore
|
|
32
|
+
Cargo.lock export-ignore
|
|
33
|
+
rust-toolchain.toml export-ignore
|
|
34
|
+
/target/** export-ignore
|
|
35
|
+
|
|
36
|
+
# --- C/C++ (本仓 C++ 库 mopr_core 与其 conan 构建链) ---
|
|
37
|
+
*.c export-ignore
|
|
38
|
+
*.cc export-ignore
|
|
39
|
+
*.cpp export-ignore
|
|
40
|
+
*.h export-ignore
|
|
41
|
+
*.hpp export-ignore
|
|
42
|
+
*.o export-ignore
|
|
43
|
+
*.obj export-ignore
|
|
44
|
+
*.out export-ignore
|
|
45
|
+
*.a export-ignore
|
|
46
|
+
*.lib export-ignore
|
|
47
|
+
*.so export-ignore
|
|
48
|
+
*.dll export-ignore
|
|
49
|
+
*.dylib export-ignore
|
|
50
|
+
CMakeLists.txt export-ignore
|
|
51
|
+
CMakePresets.json export-ignore
|
|
52
|
+
*.cmake export-ignore
|
|
53
|
+
/cmake/** export-ignore
|
|
54
|
+
ninja-toolchain.cmake export-ignore
|
|
55
|
+
conanfile.py export-ignore
|
|
56
|
+
/build/** export-ignore
|
|
57
|
+
|
|
58
|
+
# --- Python (python/ 包与 tools/ 工具集) ---
|
|
59
|
+
/python/** export-ignore
|
|
60
|
+
/tools/** export-ignore
|
|
61
|
+
*.py export-ignore
|
|
62
|
+
*.pyc export-ignore
|
|
63
|
+
**/__pycache__/** export-ignore
|
|
64
|
+
**/*.egg-info/** export-ignore
|
|
65
|
+
/mopr.egg-info/** export-ignore
|
|
66
|
+
pyproject.toml export-ignore
|
|
67
|
+
MANIFEST.in export-ignore
|
|
68
|
+
|
|
69
|
+
# --- Java ---
|
|
70
|
+
pom.xml export-ignore
|
|
71
|
+
|
|
72
|
+
# --- 前端示例 (JS/Vite) ---
|
|
73
|
+
/demo/** export-ignore
|
|
74
|
+
|
|
75
|
+
# --- 第三方许可证归档: 仅 go/ 归档随 go module zip 分发 ---
|
|
76
|
+
# 白名单式(后写优先): 先整体忽略 third_party/licenses/**, 再对 go/**
|
|
77
|
+
# unset; 今后无论新增 python/java/... 归档目录均自动被忽略, 无需改此处。
|
|
78
|
+
/third_party/licenses/** export-ignore
|
|
79
|
+
/third_party/licenses/go/** -export-ignore
|
|
80
|
+
|
|
81
|
+
# --- 发布与辅助脚本 ---
|
|
82
|
+
*.bat export-ignore
|
|
83
|
+
*.ps1 export-ignore
|
|
84
|
+
*.sh export-ignore
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
#!/bin/sh
|
|
2
|
+
# commit-msg 钩子:提交信息编码校验(非法 UTF-8 / GBK 乱码 → 拒绝提交)
|
|
3
|
+
# 校验逻辑见同目录 commit_msg_check.py
|
|
4
|
+
hook_dir=$(CDPATH= cd -- "$(dirname -- "$0")" && pwd)
|
|
5
|
+
run_check() {
|
|
6
|
+
# 优先使用 python / python3;在 Windows 环境下回退到 py -3
|
|
7
|
+
if command -v python >/dev/null 2>&1; then
|
|
8
|
+
python -V >/dev/null 2>&1
|
|
9
|
+
probe=$?
|
|
10
|
+
if [ "$probe" -ne 126 ] && [ "$probe" -ne 127 ]; then
|
|
11
|
+
python "$hook_dir/commit_msg_check.py" "$1"
|
|
12
|
+
return $?
|
|
13
|
+
fi
|
|
14
|
+
fi
|
|
15
|
+
if command -v python3 >/dev/null 2>&1; then
|
|
16
|
+
python3 -V >/dev/null 2>&1
|
|
17
|
+
probe=$?
|
|
18
|
+
if [ "$probe" -ne 126 ] && [ "$probe" -ne 127 ]; then
|
|
19
|
+
python3 "$hook_dir/commit_msg_check.py" "$1"
|
|
20
|
+
return $?
|
|
21
|
+
fi
|
|
22
|
+
fi
|
|
23
|
+
if command -v py >/dev/null 2>&1; then
|
|
24
|
+
py -3 -V >/dev/null 2>&1
|
|
25
|
+
probe=$?
|
|
26
|
+
if [ "$probe" -ne 126 ] && [ "$probe" -ne 127 ]; then
|
|
27
|
+
py -3 "$hook_dir/commit_msg_check.py" "$1"
|
|
28
|
+
return $?
|
|
29
|
+
fi
|
|
30
|
+
fi
|
|
31
|
+
return 127
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
run_check "$1"
|
|
35
|
+
check_rc=$?
|
|
36
|
+
if [ "$check_rc" -eq 127 ]; then
|
|
37
|
+
echo "commit-msg 校验未通过:未找到可用 Python 解释器(python/python3/py -3)。" >&2
|
|
38
|
+
exit 1
|
|
39
|
+
fi
|
|
40
|
+
if [ "$check_rc" -ne 0 ]; then
|
|
41
|
+
echo "commit-msg 校验未通过,提交已中止。请修正提交信息后重试。" >&2
|
|
42
|
+
exit 1
|
|
43
|
+
fi
|
|
44
|
+
|
|
45
|
+
# 提交尾注/署名约束(仓库规则):
|
|
46
|
+
# - 禁止 Co-authored-by trailer
|
|
47
|
+
# - 禁止 Copilot/AI 署名(包含历史常见 noreply 地址)
|
|
48
|
+
msg_file="$1"
|
|
49
|
+
if [ -n "$msg_file" ] && [ -f "$msg_file" ]; then
|
|
50
|
+
if tr -d '\r' < "$msg_file" | grep -Eiq '^[[:space:]]*co-authored-by[[:space:]]*:'; then
|
|
51
|
+
echo "commit-msg 校验未通过:禁止 Co-authored-by trailer。" >&2
|
|
52
|
+
exit 1
|
|
53
|
+
fi
|
|
54
|
+
if tr -d '\r' < "$msg_file" | grep -Eiq 'copilot@users\.noreply\.github\.com|^[[:space:]]*(copilot|ai)[[:space:]]*(署名|signature)[[:space:]]*:'; then
|
|
55
|
+
echo "commit-msg 校验未通过:禁止 Copilot/AI 署名信息。" >&2
|
|
56
|
+
exit 1
|
|
57
|
+
fi
|
|
58
|
+
fi
|
|
59
|
+
|
|
60
|
+
exit 0
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
#!/bin/sh
|
|
2
|
+
# pre-commit 钩子:提交内容编码校验(新混入 BOM → 拒绝提交)
|
|
3
|
+
# 校验逻辑见同目录 text_check.py
|
|
4
|
+
hook_dir=$(CDPATH= cd -- "$(dirname -- "$0")" && pwd)
|
|
5
|
+
run_check() {
|
|
6
|
+
# 优先使用 python / python3;在 Windows 环境下回退到 py -3
|
|
7
|
+
if command -v python >/dev/null 2>&1; then
|
|
8
|
+
python -V >/dev/null 2>&1
|
|
9
|
+
probe=$?
|
|
10
|
+
if [ "$probe" -ne 126 ] && [ "$probe" -ne 127 ]; then
|
|
11
|
+
python "$hook_dir/text_check.py"
|
|
12
|
+
return $?
|
|
13
|
+
fi
|
|
14
|
+
fi
|
|
15
|
+
if command -v python3 >/dev/null 2>&1; then
|
|
16
|
+
python3 -V >/dev/null 2>&1
|
|
17
|
+
probe=$?
|
|
18
|
+
if [ "$probe" -ne 126 ] && [ "$probe" -ne 127 ]; then
|
|
19
|
+
python3 "$hook_dir/text_check.py"
|
|
20
|
+
return $?
|
|
21
|
+
fi
|
|
22
|
+
fi
|
|
23
|
+
if command -v py >/dev/null 2>&1; then
|
|
24
|
+
py -3 -V >/dev/null 2>&1
|
|
25
|
+
probe=$?
|
|
26
|
+
if [ "$probe" -ne 126 ] && [ "$probe" -ne 127 ]; then
|
|
27
|
+
py -3 "$hook_dir/text_check.py"
|
|
28
|
+
return $?
|
|
29
|
+
fi
|
|
30
|
+
fi
|
|
31
|
+
return 127
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
run_check
|
|
35
|
+
check_rc=$?
|
|
36
|
+
if [ "$check_rc" -eq 127 ]; then
|
|
37
|
+
echo "pre-commit 校验未通过:未找到可用 Python 解释器(python/python3/py -3)。" >&2
|
|
38
|
+
exit 1
|
|
39
|
+
fi
|
|
40
|
+
if [ "$check_rc" -ne 0 ]; then
|
|
41
|
+
echo "pre-commit 校验未通过,提交已中止。请去掉新混入的 BOM 后重试。" >&2
|
|
42
|
+
exit 1
|
|
43
|
+
fi
|
|
44
|
+
|
|
45
|
+
exit 0
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
# Prerequisites
|
|
2
|
+
*.d
|
|
3
|
+
|
|
4
|
+
# Compiled Object files
|
|
5
|
+
*.slo
|
|
6
|
+
*.lo
|
|
7
|
+
*.o
|
|
8
|
+
*.obj
|
|
9
|
+
|
|
10
|
+
# Precompiled Headers
|
|
11
|
+
*.gch
|
|
12
|
+
*.pch
|
|
13
|
+
|
|
14
|
+
# Compiled Dynamic libraries
|
|
15
|
+
*.so
|
|
16
|
+
*.dylib
|
|
17
|
+
*.dll
|
|
18
|
+
|
|
19
|
+
# Compiled Static libraries
|
|
20
|
+
*.lai
|
|
21
|
+
*.la
|
|
22
|
+
*.a
|
|
23
|
+
*.lib
|
|
24
|
+
|
|
25
|
+
# Executables
|
|
26
|
+
*.exe
|
|
27
|
+
*.out
|
|
28
|
+
*.app
|
|
29
|
+
|
|
30
|
+
#VS Code
|
|
31
|
+
.vscode/
|
|
32
|
+
|
|
33
|
+
# Python
|
|
34
|
+
__pycache__/
|
|
35
|
+
*.py[cod]
|
|
36
|
+
*.egg-info/
|
|
37
|
+
build/
|
|
38
|
+
dist/
|
|
39
|
+
_version.py
|
|
40
|
+
.pytest_cache/
|
|
41
|
+
.coverage
|
|
42
|
+
|
|
43
|
+
# CMake
|
|
44
|
+
.build-*/
|
|
45
|
+
build-*/
|
|
46
|
+
CMakeFiles/
|
|
47
|
+
CMakeCache.txt
|
|
48
|
+
__cmake_systeminformation/
|
|
49
|
+
|
|
50
|
+
# Zig
|
|
51
|
+
.zig-cache/
|
|
52
|
+
zig-out/
|
|
53
|
+
|
|
54
|
+
# Rust
|
|
55
|
+
/target/
|
|
56
|
+
Cargo.lock
|
|
57
|
+
|
|
58
|
+
# clang-format / clangd temp files (Windows)
|
|
59
|
+
*.tmp0
|