fc-mcp 0.8.12__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.
Files changed (112) hide show
  1. fc_mcp-0.8.12/.QualityGate +10 -0
  2. fc_mcp-0.8.12/.github/workflows/main.yml +34 -0
  3. fc_mcp-0.8.12/.gitignore +15 -0
  4. fc_mcp-0.8.12/.pylintrc +567 -0
  5. fc_mcp-0.8.12/.python-version +1 -0
  6. fc_mcp-0.8.12/.readthedocs.yaml +35 -0
  7. fc_mcp-0.8.12/LICENSE +21 -0
  8. fc_mcp-0.8.12/PKG-INFO +22 -0
  9. fc_mcp-0.8.12/README.rst +50 -0
  10. fc_mcp-0.8.12/SCR-fc.txt +8 -0
  11. fc_mcp-0.8.12/ci/black.sh +7 -0
  12. fc_mcp-0.8.12/ci/docker.sh +14 -0
  13. fc_mcp-0.8.12/ci/package.sh +14 -0
  14. fc_mcp-0.8.12/ci/publish_docker.sh +15 -0
  15. fc_mcp-0.8.12/ci/pylint.sh +29 -0
  16. fc_mcp-0.8.12/ci/pytest.sh +5 -0
  17. fc_mcp-0.8.12/ci/setup.sh +9 -0
  18. fc_mcp-0.8.12/doc/Makefile +19 -0
  19. fc_mcp-0.8.12/doc/conf.py +58 -0
  20. fc_mcp-0.8.12/doc/configuration.rst +83 -0
  21. fc_mcp-0.8.12/doc/css/css-style.css +7 -0
  22. fc_mcp-0.8.12/doc/images/architecture.svg +3 -0
  23. fc_mcp-0.8.12/doc/images/era.svg +3 -0
  24. fc_mcp-0.8.12/doc/images/fc.png +0 -0
  25. fc_mcp-0.8.12/doc/images/flowchart.svg +3 -0
  26. fc_mcp-0.8.12/doc/images/principle.svg +3 -0
  27. fc_mcp-0.8.12/doc/index.rst +64 -0
  28. fc_mcp-0.8.12/doc/make.bat +35 -0
  29. fc_mcp-0.8.12/doc/overview.rst +88 -0
  30. fc_mcp-0.8.12/doc/quickstart.rst +105 -0
  31. fc_mcp-0.8.12/doc/support.rst +4 -0
  32. fc_mcp-0.8.12/doc/usage.rst +25 -0
  33. fc_mcp-0.8.12/docker/fc_client/Dockerfile +20 -0
  34. fc_mcp-0.8.12/docker/fc_client/fc-agent +3 -0
  35. fc_mcp-0.8.12/docker/fc_client/fc-client +3 -0
  36. fc_mcp-0.8.12/docker/fc_guarder/Dockerfile +22 -0
  37. fc_mcp-0.8.12/docker/fc_guarder/docker-compose.yaml +16 -0
  38. fc_mcp-0.8.12/docker/fc_guarder/entrypoint.sh +5 -0
  39. fc_mcp-0.8.12/docker/fc_guarder/sample.env +5 -0
  40. fc_mcp-0.8.12/docker/fc_server/Dockerfile +25 -0
  41. fc_mcp-0.8.12/docker/fc_server/docker-compose.yaml +21 -0
  42. fc_mcp-0.8.12/docker/fc_server/entrypoint.sh +5 -0
  43. fc_mcp-0.8.12/fc_agent/agent.py +318 -0
  44. fc_mcp-0.8.12/fc_client/client.py +748 -0
  45. fc_mcp-0.8.12/fc_client/sample_client.env +2 -0
  46. fc_mcp-0.8.12/fc_client_daemon/client_daemon.py +292 -0
  47. fc_mcp-0.8.12/fc_client_docker/__init__.py +21 -0
  48. fc_mcp-0.8.12/fc_client_docker/fc_client_docker +3 -0
  49. fc_mcp-0.8.12/fc_common/VERSION +1 -0
  50. fc_mcp-0.8.12/fc_common/__init__.py +27 -0
  51. fc_mcp-0.8.12/fc_common/config.py +81 -0
  52. fc_mcp-0.8.12/fc_common/etcd.py +60 -0
  53. fc_mcp-0.8.12/fc_common/logger.py +57 -0
  54. fc_mcp-0.8.12/fc_common/version.py +31 -0
  55. fc_mcp-0.8.12/fc_guarder/guarder.py +75 -0
  56. fc_mcp-0.8.12/fc_mcp/__init__.py +0 -0
  57. fc_mcp-0.8.12/fc_mcp/mcp_base.py +74 -0
  58. fc_mcp-0.8.12/fc_mcp/mcp_plugins/__init__.py +0 -0
  59. fc_mcp-0.8.12/fc_mcp/mcp_plugins/external/__init__.py +0 -0
  60. fc_mcp-0.8.12/fc_mcp/mcp_plugins/external/uboot_mcp.py +788 -0
  61. fc_mcp-0.8.12/fc_mcp/mcp_plugins/external/uuu_bcu_mcp.py +610 -0
  62. fc_mcp-0.8.12/fc_mcp/mcp_plugins/internal/__init__.py +0 -0
  63. fc_mcp-0.8.12/fc_mcp/mcp_plugins/internal/fc_mcp.py +625 -0
  64. fc_mcp-0.8.12/fc_mcp/mcp_server.py +64 -0
  65. fc_mcp-0.8.12/fc_mcp.egg-info/PKG-INFO +22 -0
  66. fc_mcp-0.8.12/fc_mcp.egg-info/SOURCES.txt +111 -0
  67. fc_mcp-0.8.12/fc_mcp.egg-info/dependency_links.txt +1 -0
  68. fc_mcp-0.8.12/fc_mcp.egg-info/entry_points.txt +2 -0
  69. fc_mcp-0.8.12/fc_mcp.egg-info/requires.txt +4 -0
  70. fc_mcp-0.8.12/fc_mcp.egg-info/top_level.txt +2 -0
  71. fc_mcp-0.8.12/fc_server/__init__.py +0 -0
  72. fc_mcp-0.8.12/fc_server/config/sample_cfg.yaml +29 -0
  73. fc_mcp-0.8.12/fc_server/config/sample_lavacli.yaml +4 -0
  74. fc_mcp-0.8.12/fc_server/config/sample_resource.yaml +4 -0
  75. fc_mcp-0.8.12/fc_server/core/__init__.py +38 -0
  76. fc_mcp-0.8.12/fc_server/core/api_svr.py +508 -0
  77. fc_mcp-0.8.12/fc_server/core/config.py +150 -0
  78. fc_mcp-0.8.12/fc_server/core/coordinator.py +433 -0
  79. fc_mcp-0.8.12/fc_server/core/decorators.py +80 -0
  80. fc_mcp-0.8.12/fc_server/core/plugin.py +42 -0
  81. fc_mcp-0.8.12/fc_server/management/__init__.py +0 -0
  82. fc_mcp-0.8.12/fc_server/management/cmd_online_lava_devices.py +61 -0
  83. fc_mcp-0.8.12/fc_server/management/common.py +12 -0
  84. fc_mcp-0.8.12/fc_server/plugins/__init__.py +0 -0
  85. fc_mcp-0.8.12/fc_server/plugins/labgrid.py +399 -0
  86. fc_mcp-0.8.12/fc_server/plugins/lava.py +502 -0
  87. fc_mcp-0.8.12/fc_server/plugins/utils/__init__.py +0 -0
  88. fc_mcp-0.8.12/fc_server/plugins/utils/labgrid.py +142 -0
  89. fc_mcp-0.8.12/fc_server/plugins/utils/lava.py +181 -0
  90. fc_mcp-0.8.12/fc_server/server.py +32 -0
  91. fc_mcp-0.8.12/fc_server/tools/cache_helper.py +283 -0
  92. fc_mcp-0.8.12/fc_server_daemon/__init__.py +0 -0
  93. fc_mcp-0.8.12/fc_server_daemon/server_daemon.py +85 -0
  94. fc_mcp-0.8.12/requirements/agent-requirements.txt +7 -0
  95. fc_mcp-0.8.12/requirements/ci-requirements.txt +21 -0
  96. fc_mcp-0.8.12/requirements/client-requirements.txt +8 -0
  97. fc_mcp-0.8.12/requirements/doc-requirements.txt +1 -0
  98. fc_mcp-0.8.12/requirements/server-requirements.txt +11 -0
  99. fc_mcp-0.8.12/requirements.txt +3 -0
  100. fc_mcp-0.8.12/setup.cfg +24 -0
  101. fc_mcp-0.8.12/setup.py +240 -0
  102. fc_mcp-0.8.12/tests/conftest.py +13 -0
  103. fc_mcp-0.8.12/tests/fc_client/test_client.py +159 -0
  104. fc_mcp-0.8.12/tests/fc_guarder/conftest.py +13 -0
  105. fc_mcp-0.8.12/tests/fc_guarder/test_guarder.py +36 -0
  106. fc_mcp-0.8.12/tests/fc_server/config/cfg.yaml +24 -0
  107. fc_mcp-0.8.12/tests/fc_server/conftest.py +51 -0
  108. fc_mcp-0.8.12/tests/fc_server/test_config.py +44 -0
  109. fc_mcp-0.8.12/tests/fc_server/test_coordinator.py +232 -0
  110. fc_mcp-0.8.12/tests/fc_server/test_misc.py +19 -0
  111. fc_mcp-0.8.12/tests/fc_server/test_plugin_labgrid.py +147 -0
  112. fc_mcp-0.8.12/tests/fc_server/test_plugin_lava.py +283 -0
@@ -0,0 +1,10 @@
1
+ #!/bin/bash -ex
2
+
3
+ # install dep
4
+ ci/setup.sh
5
+
6
+ # run checks
7
+ ci/black.sh || exit 1
8
+ ci/pylint.sh || exit 1
9
+ ci/pytest.sh || exit 1
10
+ ci/package.sh || exit 1
@@ -0,0 +1,34 @@
1
+ name: 'CI'
2
+
3
+ # **What it does**: Checks coding standards, tests and more
4
+
5
+ on:
6
+ workflow_dispatch:
7
+ push:
8
+ branches:
9
+ - main
10
+ pull_request:
11
+
12
+ permissions:
13
+ contents: read
14
+
15
+ # Interupt previous runs on PR update
16
+ concurrency:
17
+ group: '${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}'
18
+ cancel-in-progress: true
19
+
20
+ jobs:
21
+ NXP-QualityGate:
22
+ runs-on: "ubuntu-latest"
23
+ steps:
24
+ - name: Checkout
25
+ uses: actions/checkout@v3
26
+
27
+ - name: Setup node
28
+ uses: actions/setup-python@v4.6.0
29
+ with:
30
+ cache: pip
31
+ python-version: '3.10'
32
+
33
+ - name: Run Quality Gate
34
+ run: bash -ex .QualityGate
@@ -0,0 +1,15 @@
1
+ *.pyc
2
+ *.log
3
+ *.swp
4
+ *.egg-info
5
+ dist
6
+ log
7
+ fc_server/config/cfg.yaml
8
+ client.env
9
+ agent.env
10
+ lavacli.yaml
11
+ __pycache__
12
+ .vscode
13
+ .env
14
+ run.log
15
+ _build
@@ -0,0 +1,567 @@
1
+ [MASTER]
2
+
3
+ # A comma-separated list of package or module names from where C extensions may
4
+ # be loaded. Extensions are loading into the active Python interpreter and may
5
+ # run arbitrary code.
6
+ extension-pkg-allow-list=
7
+
8
+ # A comma-separated list of package or module names from where C extensions may
9
+ # be loaded. Extensions are loading into the active Python interpreter and may
10
+ # run arbitrary code. (This is an alternative name to extension-pkg-allow-list
11
+ # for backward compatibility.)
12
+ extension-pkg-whitelist=
13
+
14
+ # Return non-zero exit code if any of these messages/categories are detected,
15
+ # even if score is above --fail-under value. Syntax same as enable. Messages
16
+ # specified are enabled, while categories only check already-enabled messages.
17
+ fail-on=
18
+
19
+ # Specify a score threshold to be exceeded before program exits with error.
20
+ fail-under=10.0
21
+
22
+ # Files or directories to be skipped. They should be base names, not paths.
23
+ ignore=CVS
24
+
25
+ # Add files or directories matching the regex patterns to the ignore-list. The
26
+ # regex matches against paths.
27
+ ignore-paths=
28
+
29
+ # Files or directories matching the regex patterns are skipped. The regex
30
+ # matches against base names, not paths.
31
+ ignore-patterns=
32
+
33
+ # Python code to execute, usually for sys.path manipulation such as
34
+ # pygtk.require().
35
+ init-hook=import sys; sys.path.append(".")
36
+
37
+ # Use multiple processes to speed up Pylint. Specifying 0 will auto-detect the
38
+ # number of processors available to use.
39
+ jobs=1
40
+
41
+ # Control the amount of potential inferred values when inferring a single
42
+ # object. This can help the performance when dealing with large functions or
43
+ # complex, nested conditions.
44
+ limit-inference-results=100
45
+
46
+ # List of plugins (as comma separated values of python module names) to load,
47
+ # usually to register additional checkers.
48
+ load-plugins=
49
+
50
+ # Pickle collected data for later comparisons.
51
+ persistent=yes
52
+
53
+ # Min Python version to use for version dependend checks. Will default to the
54
+ # version used to run pylint.
55
+ py-version=3.7
56
+
57
+ # When enabled, pylint would attempt to guess common misconfiguration and emit
58
+ # user-friendly hints instead of false-positive error messages.
59
+ suggestion-mode=yes
60
+
61
+ # Allow loading of arbitrary C extensions. Extensions are imported into the
62
+ # active Python interpreter and may run arbitrary code.
63
+ unsafe-load-any-extension=no
64
+
65
+
66
+ [MESSAGES CONTROL]
67
+
68
+ # Only show warnings with the listed confidence levels. Leave empty to show
69
+ # all. Valid levels: HIGH, INFERENCE, INFERENCE_FAILURE, UNDEFINED.
70
+ confidence=
71
+
72
+ # Disable the message, report, category or checker with the given id(s). You
73
+ # can either give multiple identifiers separated by comma (,) or put this
74
+ # option multiple times (only on the command line, not in the configuration
75
+ # file where it should appear only once). You can also use "--disable=all" to
76
+ # disable everything first and then reenable specific checks. For example, if
77
+ # you want to run only the similarities checker, you can use "--disable=all
78
+ # --enable=similarities". If you want to run only the classes checker, but have
79
+ # no Warning level messages displayed, use "--disable=all --enable=classes
80
+ # --disable=W".
81
+ disable=raw-checker-failed,
82
+ bad-inline-option,
83
+ locally-disabled,
84
+ file-ignored,
85
+ suppressed-message,
86
+ useless-suppression,
87
+ deprecated-pragma,
88
+ use-symbolic-message-instead,
89
+ missing-module-docstring,
90
+ missing-class-docstring,
91
+ missing-function-docstring,
92
+ no-self-use,
93
+ too-few-public-methods,
94
+ too-many-arguments,
95
+ duplicate-code,
96
+
97
+ # Enable the message, report, category or checker with the given id(s). You can
98
+ # either give multiple identifier separated by comma (,) or put this option
99
+ # multiple time (only on the command line, not in the configuration file where
100
+ # it should appear only once). See also the "--disable" option for examples.
101
+ enable=c-extension-no-member
102
+
103
+
104
+ [REPORTS]
105
+
106
+ # Python expression which should return a score less than or equal to 10. You
107
+ # have access to the variables 'error', 'warning', 'refactor', and 'convention'
108
+ # which contain the number of messages in each category, as well as 'statement'
109
+ # which is the total number of statements analyzed. This score is used by the
110
+ # global evaluation report (RP0004).
111
+ evaluation=10.0 - ((float(5 * error + warning + refactor + convention) / statement) * 10)
112
+
113
+ # Template used to display messages. This is a python new-style format string
114
+ # used to format the message information. See doc for all details.
115
+ #msg-template=
116
+
117
+ # Set the output format. Available formats are text, parseable, colorized, json
118
+ # and msvs (visual studio). You can also give a reporter class, e.g.
119
+ # mypackage.mymodule.MyReporterClass.
120
+ output-format=text
121
+
122
+ # Tells whether to display a full report or only the messages.
123
+ reports=no
124
+
125
+ # Activate the evaluation score.
126
+ score=yes
127
+
128
+
129
+ [REFACTORING]
130
+
131
+ # Maximum number of nested blocks for function / method body
132
+ max-nested-blocks=5
133
+
134
+ # Complete name of functions that never returns. When checking for
135
+ # inconsistent-return-statements if a never returning function is called then
136
+ # it will be considered as an explicit return statement and no message will be
137
+ # printed.
138
+ never-returning-functions=sys.exit,argparse.parse_error
139
+
140
+
141
+ [FORMAT]
142
+
143
+ # Expected format of line ending, e.g. empty (any line ending), LF or CRLF.
144
+ expected-line-ending-format=
145
+
146
+ # Regexp for a line that is allowed to be longer than the limit.
147
+ ignore-long-lines=^\s*(# )?<?https?://\S+>?$
148
+
149
+ # Number of spaces of indent required inside a hanging or continued line.
150
+ indent-after-paren=4
151
+
152
+ # String used as indentation unit. This is usually " " (4 spaces) or "\t" (1
153
+ # tab).
154
+ indent-string=' '
155
+
156
+ # Maximum number of characters on a single line.
157
+ max-line-length=100
158
+
159
+ # Maximum number of lines in a module.
160
+ max-module-lines=1000
161
+
162
+ # Allow the body of a class to be on the same line as the declaration if body
163
+ # contains single statement.
164
+ single-line-class-stmt=no
165
+
166
+ # Allow the body of an if to be on the same line as the test if there is no
167
+ # else.
168
+ single-line-if-stmt=no
169
+
170
+
171
+ [VARIABLES]
172
+
173
+ # List of additional names supposed to be defined in builtins. Remember that
174
+ # you should avoid defining new builtins when possible.
175
+ additional-builtins=
176
+
177
+ # Tells whether unused global variables should be treated as a violation.
178
+ allow-global-unused-variables=yes
179
+
180
+ # List of names allowed to shadow builtins
181
+ allowed-redefined-builtins=
182
+
183
+ # List of strings which can identify a callback function by name. A callback
184
+ # name must start or end with one of those strings.
185
+ callbacks=cb_,
186
+ _cb
187
+
188
+ # A regular expression matching the name of dummy variables (i.e. expected to
189
+ # not be used).
190
+ dummy-variables-rgx=_+$|(_[a-zA-Z0-9_]*[a-zA-Z0-9]+?$)|dummy|^ignored_|^unused_
191
+
192
+ # Argument names that match this expression will be ignored. Default to name
193
+ # with leading underscore.
194
+ ignored-argument-names=_.*|^ignored_|^unused_
195
+
196
+ # Tells whether we should check for unused import in __init__ files.
197
+ init-import=no
198
+
199
+ # List of qualified module names which can have objects that can redefine
200
+ # builtins.
201
+ redefining-builtins-modules=six.moves,past.builtins,future.builtins,builtins,io
202
+
203
+
204
+ [SPELLING]
205
+
206
+ # Limits count of emitted suggestions for spelling mistakes.
207
+ max-spelling-suggestions=4
208
+
209
+ # Spelling dictionary name. Available dictionaries: none. To make it work,
210
+ # install the 'python-enchant' package.
211
+ spelling-dict=
212
+
213
+ # List of comma separated words that should be considered directives if they
214
+ # appear and the beginning of a comment and should not be checked.
215
+ spelling-ignore-comment-directives=fmt: on,fmt: off,noqa:,noqa,nosec,isort:skip,mypy:
216
+
217
+ # List of comma separated words that should not be checked.
218
+ spelling-ignore-words=
219
+
220
+ # A path to a file that contains the private dictionary; one word per line.
221
+ spelling-private-dict-file=
222
+
223
+ # Tells whether to store unknown words to the private dictionary (see the
224
+ # --spelling-private-dict-file option) instead of raising a message.
225
+ spelling-store-unknown-words=no
226
+
227
+
228
+ [STRING]
229
+
230
+ # This flag controls whether inconsistent-quotes generates a warning when the
231
+ # character used as a quote delimiter is used inconsistently within a module.
232
+ check-quote-consistency=no
233
+
234
+ # This flag controls whether the implicit-str-concat should generate a warning
235
+ # on implicit string concatenation in sequences defined over several lines.
236
+ check-str-concat-over-line-jumps=no
237
+
238
+
239
+ [BASIC]
240
+
241
+ # Naming style matching correct argument names.
242
+ argument-naming-style=snake_case
243
+
244
+ # Regular expression matching correct argument names. Overrides argument-
245
+ # naming-style.
246
+ #argument-rgx=
247
+
248
+ # Naming style matching correct attribute names.
249
+ attr-naming-style=snake_case
250
+
251
+ # Regular expression matching correct attribute names. Overrides attr-naming-
252
+ # style.
253
+ #attr-rgx=
254
+
255
+ # Bad variable names which should always be refused, separated by a comma.
256
+ bad-names=foo,
257
+ bar,
258
+ baz,
259
+ toto,
260
+ tutu,
261
+ tata
262
+
263
+ # Bad variable names regexes, separated by a comma. If names match any regex,
264
+ # they will always be refused
265
+ bad-names-rgxs=
266
+
267
+ # Naming style matching correct class attribute names.
268
+ class-attribute-naming-style=any
269
+
270
+ # Regular expression matching correct class attribute names. Overrides class-
271
+ # attribute-naming-style.
272
+ #class-attribute-rgx=
273
+
274
+ # Naming style matching correct class constant names.
275
+ class-const-naming-style=UPPER_CASE
276
+
277
+ # Regular expression matching correct class constant names. Overrides class-
278
+ # const-naming-style.
279
+ #class-const-rgx=
280
+
281
+ # Naming style matching correct class names.
282
+ class-naming-style=PascalCase
283
+
284
+ # Regular expression matching correct class names. Overrides class-naming-
285
+ # style.
286
+ #class-rgx=
287
+
288
+ # Naming style matching correct constant names.
289
+ const-naming-style=UPPER_CASE
290
+
291
+ # Regular expression matching correct constant names. Overrides const-naming-
292
+ # style.
293
+ #const-rgx=
294
+
295
+ # Minimum line length for functions/classes that require docstrings, shorter
296
+ # ones are exempt.
297
+ docstring-min-length=-1
298
+
299
+ # Naming style matching correct function names.
300
+ function-naming-style=snake_case
301
+
302
+ # Regular expression matching correct function names. Overrides function-
303
+ # naming-style.
304
+ #function-rgx=
305
+
306
+ # Good variable names which should always be accepted, separated by a comma.
307
+ good-names=i,
308
+ j,
309
+ k,
310
+ ex,
311
+ Run,
312
+ _
313
+
314
+ # Good variable names regexes, separated by a comma. If names match any regex,
315
+ # they will always be accepted
316
+ good-names-rgxs=
317
+
318
+ # Include a hint for the correct naming format with invalid-name.
319
+ include-naming-hint=no
320
+
321
+ # Naming style matching correct inline iteration names.
322
+ inlinevar-naming-style=any
323
+
324
+ # Regular expression matching correct inline iteration names. Overrides
325
+ # inlinevar-naming-style.
326
+ #inlinevar-rgx=
327
+
328
+ # Naming style matching correct method names.
329
+ method-naming-style=snake_case
330
+
331
+ # Regular expression matching correct method names. Overrides method-naming-
332
+ # style.
333
+ #method-rgx=
334
+
335
+ # Naming style matching correct module names.
336
+ module-naming-style=snake_case
337
+
338
+ # Regular expression matching correct module names. Overrides module-naming-
339
+ # style.
340
+ #module-rgx=
341
+
342
+ # Colon-delimited sets of names that determine each other's naming style when
343
+ # the name regexes allow several styles.
344
+ name-group=
345
+
346
+ # Regular expression which should only match function or class names that do
347
+ # not require a docstring.
348
+ no-docstring-rgx=^_
349
+
350
+ # List of decorators that produce properties, such as abc.abstractproperty. Add
351
+ # to this list to register other decorators that produce valid properties.
352
+ # These decorators are taken in consideration only for invalid-name.
353
+ property-classes=abc.abstractproperty
354
+
355
+ # Naming style matching correct variable names.
356
+ variable-naming-style=snake_case
357
+
358
+ # Regular expression matching correct variable names. Overrides variable-
359
+ # naming-style.
360
+ #variable-rgx=
361
+
362
+
363
+ [MISCELLANEOUS]
364
+
365
+ # List of note tags to take in consideration, separated by a comma.
366
+ notes=FIXME,
367
+ XXX,
368
+ TODO
369
+
370
+ # Regular expression of note tags to take in consideration.
371
+ #notes-rgx=
372
+
373
+
374
+ [SIMILARITIES]
375
+
376
+ # Comments are removed from the similarity computation
377
+ ignore-comments=yes
378
+
379
+ # Docstrings are removed from the similarity computation
380
+ ignore-docstrings=yes
381
+
382
+ # Imports are removed from the similarity computation
383
+ ignore-imports=no
384
+
385
+ # Signatures are removed from the similarity computation
386
+ ignore-signatures=no
387
+
388
+ # Minimum lines number of a similarity.
389
+ min-similarity-lines=4
390
+
391
+
392
+ [LOGGING]
393
+
394
+ # The type of string formatting that logging methods do. `old` means using %
395
+ # formatting, `new` is for `{}` formatting.
396
+ logging-format-style=old
397
+
398
+ # Logging modules to check that the string format arguments are in logging
399
+ # function parameter format.
400
+ logging-modules=logging
401
+
402
+
403
+ [TYPECHECK]
404
+
405
+ # List of decorators that produce context managers, such as
406
+ # contextlib.contextmanager. Add to this list to register other decorators that
407
+ # produce valid context managers.
408
+ contextmanager-decorators=contextlib.contextmanager
409
+
410
+ # List of members which are set dynamically and missed by pylint inference
411
+ # system, and so shouldn't trigger E1101 when accessed. Python regular
412
+ # expressions are accepted.
413
+ generated-members=
414
+
415
+ # Tells whether missing members accessed in mixin class should be ignored. A
416
+ # mixin class is detected if its name ends with "mixin" (case insensitive).
417
+ ignore-mixin-members=yes
418
+
419
+ # Tells whether to warn about missing members when the owner of the attribute
420
+ # is inferred to be None.
421
+ ignore-none=yes
422
+
423
+ # This flag controls whether pylint should warn about no-member and similar
424
+ # checks whenever an opaque object is returned when inferring. The inference
425
+ # can return multiple potential results while evaluating a Python object, but
426
+ # some branches might not be evaluated, which results in partial inference. In
427
+ # that case, it might be useful to still emit no-member and other checks for
428
+ # the rest of the inferred objects.
429
+ ignore-on-opaque-inference=yes
430
+
431
+ # List of class names for which member attributes should not be checked (useful
432
+ # for classes with dynamically set attributes). This supports the use of
433
+ # qualified names.
434
+ ignored-classes=optparse.Values,thread._local,_thread._local
435
+
436
+ # List of module names for which member attributes should not be checked
437
+ # (useful for modules/projects where namespaces are manipulated during runtime
438
+ # and thus existing member attributes cannot be deduced by static analysis). It
439
+ # supports qualified module names, as well as Unix pattern matching.
440
+ ignored-modules=
441
+
442
+ # Show a hint with possible names when a member name was not found. The aspect
443
+ # of finding the hint is based on edit distance.
444
+ missing-member-hint=yes
445
+
446
+ # The minimum edit distance a name should have in order to be considered a
447
+ # similar match for a missing member name.
448
+ missing-member-hint-distance=1
449
+
450
+ # The total number of similar names that should be taken in consideration when
451
+ # showing a hint for a missing member.
452
+ missing-member-max-choices=1
453
+
454
+ # List of decorators that change the signature of a decorated function.
455
+ signature-mutators=
456
+
457
+
458
+ [DESIGN]
459
+
460
+ # List of qualified class names to ignore when counting class parents (see
461
+ # R0901)
462
+ ignored-parents=
463
+
464
+ # Maximum number of arguments for function / method.
465
+ max-args=5
466
+
467
+ # Maximum number of attributes for a class (see R0902).
468
+ max-attributes=7
469
+
470
+ # Maximum number of boolean expressions in an if statement (see R0916).
471
+ max-bool-expr=5
472
+
473
+ # Maximum number of branch for function / method body.
474
+ max-branches=12
475
+
476
+ # Maximum number of locals for function / method body.
477
+ max-locals=15
478
+
479
+ # Maximum number of parents for a class (see R0901).
480
+ max-parents=7
481
+
482
+ # Maximum number of public methods for a class (see R0904).
483
+ max-public-methods=20
484
+
485
+ # Maximum number of return / yield for function / method body.
486
+ max-returns=6
487
+
488
+ # Maximum number of statements in function / method body.
489
+ max-statements=50
490
+
491
+ # Minimum number of public methods for a class (see R0903).
492
+ min-public-methods=2
493
+
494
+
495
+ [CLASSES]
496
+
497
+ # Warn about protected attribute access inside special methods
498
+ check-protected-access-in-special-methods=no
499
+
500
+ # List of method names used to declare (i.e. assign) instance attributes.
501
+ defining-attr-methods=__init__,
502
+ __new__,
503
+ setUp,
504
+ __post_init__
505
+
506
+ # List of member names, which should be excluded from the protected access
507
+ # warning.
508
+ exclude-protected=_asdict,
509
+ _fields,
510
+ _replace,
511
+ _source,
512
+ _make
513
+
514
+ # List of valid names for the first argument in a class method.
515
+ valid-classmethod-first-arg=cls
516
+
517
+ # List of valid names for the first argument in a metaclass class method.
518
+ valid-metaclass-classmethod-first-arg=cls
519
+
520
+
521
+ [IMPORTS]
522
+
523
+ # List of modules that can be imported at any level, not just the top level
524
+ # one.
525
+ allow-any-import-level=
526
+
527
+ # Allow wildcard imports from modules that define __all__.
528
+ allow-wildcard-with-all=no
529
+
530
+ # Analyse import fallback blocks. This can be used to support both Python 2 and
531
+ # 3 compatible code, which means that the block might have code that exists
532
+ # only in one or another interpreter, leading to false positives when analysed.
533
+ analyse-fallback-blocks=no
534
+
535
+ # Deprecated modules which should not be used, separated by a comma.
536
+ deprecated-modules=
537
+
538
+ # Output a graph (.gv or any supported image format) of external dependencies
539
+ # to the given file (report RP0402 must not be disabled).
540
+ ext-import-graph=
541
+
542
+ # Output a graph (.gv or any supported image format) of all (i.e. internal and
543
+ # external) dependencies to the given file (report RP0402 must not be
544
+ # disabled).
545
+ import-graph=
546
+
547
+ # Output a graph (.gv or any supported image format) of internal dependencies
548
+ # to the given file (report RP0402 must not be disabled).
549
+ int-import-graph=
550
+
551
+ # Force import order to recognize a module as part of the standard
552
+ # compatibility libraries.
553
+ known-standard-library=
554
+
555
+ # Force import order to recognize a module as part of a third party library.
556
+ known-third-party=enchant
557
+
558
+ # Couples of modules and preferred modules, separated by a comma.
559
+ preferred-modules=
560
+
561
+
562
+ [EXCEPTIONS]
563
+
564
+ # Exceptions that will emit a warning when being caught. Defaults to
565
+ # "BaseException, Exception".
566
+ overgeneral-exceptions=BaseException,
567
+ Exception
@@ -0,0 +1 @@
1
+ 3.10
@@ -0,0 +1,35 @@
1
+ # Read the Docs configuration file for Sphinx projects
2
+ # See https://docs.readthedocs.io/en/stable/config-file/v2.html for details
3
+
4
+ # Required
5
+ version: 2
6
+
7
+ # Set the OS, Python version and other tools you might need
8
+ build:
9
+ os: ubuntu-22.04
10
+ tools:
11
+ python: "3.12"
12
+ # You can also specify other tool versions:
13
+ # nodejs: "20"
14
+ # rust: "1.70"
15
+ # golang: "1.20"
16
+
17
+ # Build documentation in the "docs/" directory with Sphinx
18
+ sphinx:
19
+ configuration: doc/conf.py
20
+ # You can configure Sphinx to use a different builder, for instance use the dirhtml builder for simpler URLs
21
+ # builder: "dirhtml"
22
+ # Fail on all warnings to avoid broken references
23
+ # fail_on_warning: true
24
+
25
+ # Optionally build your docs in additional formats such as PDF and ePub
26
+ formats:
27
+ - pdf
28
+ # - epub
29
+
30
+ # Optional but recommended, declare the Python requirements required
31
+ # to build your documentation
32
+ # See https://docs.readthedocs.io/en/stable/guides/reproducible-builds.html
33
+ python:
34
+ install:
35
+ - requirements: requirements/doc-requirements.txt
fc_mcp-0.8.12/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright 2021-2026 NXP
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.