bec-widgets 0.52.0__py3-none-any.whl → 0.53.0__py3-none-any.whl

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 (85) hide show
  1. .git_hooks/pre-commit +3 -0
  2. .gitignore +177 -0
  3. .gitlab/issue_templates/bug_report_template.md +17 -0
  4. .gitlab/issue_templates/documentation_update_template.md +27 -0
  5. .gitlab/issue_templates/feature_request_template.md +40 -0
  6. .gitlab/merge_request_templates/default.md +28 -0
  7. .gitlab-ci.yml +225 -0
  8. .pylintrc +581 -0
  9. .readthedocs.yaml +25 -0
  10. CHANGELOG.md +176 -0
  11. PKG-INFO +33 -0
  12. bec_widgets-0.52.0.dist-info/METADATA → README.md +6 -42
  13. bec_widgets/cli/client.py +132 -17
  14. bec_widgets/cli/client_utils.py +1 -0
  15. bec_widgets/cli/generate_cli.py +1 -0
  16. bec_widgets/cli/rpc_register.py +4 -0
  17. bec_widgets/cli/rpc_wigdet_handler.py +2 -3
  18. bec_widgets/examples/modular_app/modular.ui +92 -0
  19. bec_widgets/examples/modular_app/modular_app.py +197 -0
  20. bec_widgets/examples/motor_movement/motor_control_compilations.py +1 -1
  21. bec_widgets/examples/motor_movement/motor_example.py +3 -12
  22. bec_widgets/utils/bec_connector.py +7 -0
  23. bec_widgets/utils/bec_dispatcher.py +1 -3
  24. bec_widgets/utils/bec_table.py +1 -0
  25. bec_widgets/utils/container_utils.py +3 -0
  26. bec_widgets/utils/crosshair.py +1 -0
  27. bec_widgets/utils/entry_validator.py +2 -0
  28. bec_widgets/utils/layout_manager.py +4 -0
  29. bec_widgets/utils/widget_io.py +5 -0
  30. bec_widgets/utils/yaml_dialog.py +2 -0
  31. bec_widgets/validation/monitor_config_validator.py +2 -1
  32. bec_widgets/widgets/dock/dock_area.py +6 -4
  33. bec_widgets/widgets/figure/figure.py +15 -15
  34. bec_widgets/widgets/monitor/config_dialog.py +3 -19
  35. bec_widgets/widgets/monitor/example_configs/config_device.yaml +60 -0
  36. bec_widgets/widgets/monitor/example_configs/config_scans.yaml +92 -0
  37. bec_widgets/widgets/motor_map/motor_map.py +3 -14
  38. bec_widgets/widgets/plots/image.py +41 -0
  39. bec_widgets/widgets/plots/motor_map.py +16 -9
  40. bec_widgets/widgets/plots/plot_base.py +10 -0
  41. bec_widgets/widgets/plots/waveform.py +31 -0
  42. bec_widgets/widgets/scan_control/scan_control.py +11 -5
  43. bec_widgets/widgets/toolbar/toolbar.py +1 -0
  44. bec_widgets-0.53.0.dist-info/METADATA +33 -0
  45. bec_widgets-0.53.0.dist-info/RECORD +156 -0
  46. {bec_widgets-0.52.0.dist-info → bec_widgets-0.53.0.dist-info}/WHEEL +1 -2
  47. bec_widgets-0.53.0.dist-info/licenses/LICENSE +29 -0
  48. docs/Makefile +20 -0
  49. docs/_templates/custom-class-template.rst +34 -0
  50. docs/_templates/custom-module-template.rst +66 -0
  51. docs/conf.py +81 -0
  52. docs/developer/developer.md +26 -0
  53. docs/developer/reference.md +10 -0
  54. docs/index.md +39 -0
  55. docs/introduction/introduction.md +18 -0
  56. docs/make.bat +35 -0
  57. docs/requirements.txt +10 -0
  58. docs/user/apps/modular_app.md +6 -0
  59. docs/user/apps/motor_app.md +34 -0
  60. docs/user/apps/motor_app_10fps.gif +0 -0
  61. docs/user/apps/plot_app.md +6 -0
  62. docs/user/apps.md +39 -0
  63. docs/user/customisation.md +13 -0
  64. docs/user/installation.md +46 -0
  65. docs/user/user.md +38 -0
  66. docs/user/widgets/motor.gif +0 -0
  67. docs/user/widgets/scatter_2D.gif +0 -0
  68. docs/user/widgets/w1D.gif +0 -0
  69. docs/user/widgets.md +41 -0
  70. pyproject.toml +94 -0
  71. tests/unit_tests/test_bec_dispatcher.py +3 -26
  72. tests/unit_tests/test_bec_figure.py +1 -5
  73. tests/unit_tests/test_bec_motor_map.py +1 -4
  74. tests/unit_tests/test_config_dialog.py +1 -5
  75. tests/unit_tests/test_configs/config_device.yaml +33 -0
  76. tests/unit_tests/test_configs/config_device_no_entry.yaml +27 -0
  77. tests/unit_tests/test_configs/config_scan.yaml +82 -0
  78. tests/unit_tests/test_motor_control.py +1 -1
  79. tests/unit_tests/test_motor_map.py +5 -20
  80. tests/unit_tests/test_stream_plot.py +2 -12
  81. bec_widgets/utils/ctrl_c.py +0 -39
  82. bec_widgets-0.52.0.dist-info/RECORD +0 -115
  83. bec_widgets-0.52.0.dist-info/top_level.txt +0 -2
  84. /bec_widgets-0.52.0.dist-info/LICENSE → /LICENSE +0 -0
  85. /bec_widgets/{simulations/__init__.py → examples/modular_app/___init__.py} +0 -0
.pylintrc ADDED
@@ -0,0 +1,581 @@
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=PyQt5, pyqtgraph
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=8.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 and can be in Posix or Windows format.
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=
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
+ # Minimum Python version to use for version dependent checks. Will default to
54
+ # the version used to run pylint.
55
+ py-version=3.10
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=missing-module-docstring,
82
+ missing-class-docstring,
83
+ import-error,
84
+ no-name-in-module,
85
+ raw-checker-failed,
86
+ bad-inline-option,
87
+ locally-disabled,
88
+ file-ignored,
89
+ suppressed-message,
90
+ deprecated-pragma,
91
+ use-symbolic-message-instead,
92
+ unused-wildcard-import,
93
+ logging-fstring-interpolation,
94
+ line-too-long,
95
+ too-many-instance-attributes,
96
+ wrong-import-order
97
+
98
+ # Enable the message, report, category or checker with the given id(s). You can
99
+ # either give multiple identifier separated by comma (,) or put this option
100
+ # multiple time (only on the command line, not in the configuration file where
101
+ # it should appear only once). See also the "--disable" option for examples.
102
+ enable=c-extension-no-member
103
+
104
+
105
+ [REPORTS]
106
+
107
+ # Python expression which should return a score less than or equal to 10. You
108
+ # have access to the variables 'error', 'warning', 'refactor', and 'convention'
109
+ # which contain the number of messages in each category, as well as 'statement'
110
+ # which is the total number of statements analyzed. This score is used by the
111
+ # global evaluation report (RP0004).
112
+ evaluation=10.0 - ((float(5 * error + warning + refactor + convention) / statement) * 10)
113
+
114
+ # Template used to display messages. This is a python new-style format string
115
+ # used to format the message information. See doc for all details.
116
+ #msg-template=
117
+
118
+ # Set the output format. Available formats are text, parseable, colorized, json
119
+ # and msvs (visual studio). You can also give a reporter class, e.g.
120
+ # mypackage.mymodule.MyReporterClass.
121
+ output-format=text
122
+
123
+ # Tells whether to display a full report or only the messages.
124
+ reports=no
125
+
126
+ # Activate the evaluation score.
127
+ score=yes
128
+
129
+
130
+ [REFACTORING]
131
+
132
+ # Maximum number of nested blocks for function / method body
133
+ max-nested-blocks=5
134
+
135
+ # Complete name of functions that never returns. When checking for
136
+ # inconsistent-return-statements if a never returning function is called then
137
+ # it will be considered as an explicit return statement and no message will be
138
+ # printed.
139
+ never-returning-functions=sys.exit,argparse.parse_error
140
+
141
+
142
+ [LOGGING]
143
+
144
+ # The type of string formatting that logging methods do. `old` means using %
145
+ # formatting, `new` is for `{}` formatting.
146
+ logging-format-style=old
147
+
148
+ # Logging modules to check that the string format arguments are in logging
149
+ # function parameter format.
150
+ logging-modules=logging
151
+
152
+
153
+ [SPELLING]
154
+
155
+ # Limits count of emitted suggestions for spelling mistakes.
156
+ max-spelling-suggestions=4
157
+
158
+ # Spelling dictionary name. Available dictionaries: none. To make it work,
159
+ # install the 'python-enchant' package.
160
+ spelling-dict=
161
+
162
+ # List of comma separated words that should be considered directives if they
163
+ # appear and the beginning of a comment and should not be checked.
164
+ spelling-ignore-comment-directives=fmt: on,fmt: off,noqa:,noqa,nosec,isort:skip,mypy:
165
+
166
+ # List of comma separated words that should not be checked.
167
+ spelling-ignore-words=
168
+
169
+ # A path to a file that contains the private dictionary; one word per line.
170
+ spelling-private-dict-file=
171
+
172
+ # Tells whether to store unknown words to the private dictionary (see the
173
+ # --spelling-private-dict-file option) instead of raising a message.
174
+ spelling-store-unknown-words=no
175
+
176
+
177
+ [MISCELLANEOUS]
178
+
179
+ # List of note tags to take in consideration, separated by a comma.
180
+ notes=FIXME,
181
+ XXX,
182
+ TODO
183
+
184
+ # Regular expression of note tags to take in consideration.
185
+ #notes-rgx=
186
+
187
+
188
+ [TYPECHECK]
189
+
190
+ # List of decorators that produce context managers, such as
191
+ # contextlib.contextmanager. Add to this list to register other decorators that
192
+ # produce valid context managers.
193
+ contextmanager-decorators=contextlib.contextmanager
194
+
195
+ # List of members which are set dynamically and missed by pylint inference
196
+ # system, and so shouldn't trigger E1101 when accessed. Python regular
197
+ # expressions are accepted.
198
+ generated-members=
199
+
200
+ # Tells whether missing members accessed in mixin class should be ignored. A
201
+ # class is considered mixin if its name matches the mixin-class-rgx option.
202
+ ignore-mixin-members=yes
203
+
204
+ # Tells whether to warn about missing members when the owner of the attribute
205
+ # is inferred to be None.
206
+ ignore-none=yes
207
+
208
+ # This flag controls whether pylint should warn about no-member and similar
209
+ # checks whenever an opaque object is returned when inferring. The inference
210
+ # can return multiple potential results while evaluating a Python object, but
211
+ # some branches might not be evaluated, which results in partial inference. In
212
+ # that case, it might be useful to still emit no-member and other checks for
213
+ # the rest of the inferred objects.
214
+ ignore-on-opaque-inference=yes
215
+
216
+ # List of class names for which member attributes should not be checked (useful
217
+ # for classes with dynamically set attributes). This supports the use of
218
+ # qualified names.
219
+ ignored-classes=optparse.Values,thread._local,_thread._local
220
+
221
+ # List of module names for which member attributes should not be checked
222
+ # (useful for modules/projects where namespaces are manipulated during runtime
223
+ # and thus existing member attributes cannot be deduced by static analysis). It
224
+ # supports qualified module names, as well as Unix pattern matching.
225
+ ignored-modules=
226
+
227
+ # Show a hint with possible names when a member name was not found. The aspect
228
+ # of finding the hint is based on edit distance.
229
+ missing-member-hint=yes
230
+
231
+ # The minimum edit distance a name should have in order to be considered a
232
+ # similar match for a missing member name.
233
+ missing-member-hint-distance=1
234
+
235
+ # The total number of similar names that should be taken in consideration when
236
+ # showing a hint for a missing member.
237
+ missing-member-max-choices=1
238
+
239
+ # Regex pattern to define which classes are considered mixins ignore-mixin-
240
+ # members is set to 'yes'
241
+ mixin-class-rgx=.*[Mm]ixin
242
+
243
+ # List of decorators that change the signature of a decorated function.
244
+ signature-mutators=
245
+
246
+
247
+ [VARIABLES]
248
+
249
+ # List of additional names supposed to be defined in builtins. Remember that
250
+ # you should avoid defining new builtins when possible.
251
+ additional-builtins=
252
+
253
+ # Tells whether unused global variables should be treated as a violation.
254
+ allow-global-unused-variables=yes
255
+
256
+ # List of names allowed to shadow builtins
257
+ allowed-redefined-builtins=
258
+
259
+ # List of strings which can identify a callback function by name. A callback
260
+ # name must start or end with one of those strings.
261
+ callbacks=cb_,
262
+ _cb
263
+
264
+ # A regular expression matching the name of dummy variables (i.e. expected to
265
+ # not be used).
266
+ dummy-variables-rgx=_+$|(_[a-zA-Z0-9_]*[a-zA-Z0-9]+?$)|dummy|^ignored_|^unused_
267
+
268
+ # Argument names that match this expression will be ignored. Default to name
269
+ # with leading underscore.
270
+ ignored-argument-names=_.*|^ignored_|^unused_
271
+
272
+ # Tells whether we should check for unused import in __init__ files.
273
+ init-import=no
274
+
275
+ # List of qualified module names which can have objects that can redefine
276
+ # builtins.
277
+ redefining-builtins-modules=six.moves,past.builtins,future.builtins,builtins,io
278
+
279
+
280
+ [FORMAT]
281
+
282
+ # Expected format of line ending, e.g. empty (any line ending), LF or CRLF.
283
+ expected-line-ending-format=
284
+
285
+ # Regexp for a line that is allowed to be longer than the limit.
286
+ ignore-long-lines=^\s*(# )?<?https?://\S+>?$
287
+
288
+ # Number of spaces of indent required inside a hanging or continued line.
289
+ indent-after-paren=4
290
+
291
+ # String used as indentation unit. This is usually " " (4 spaces) or "\t" (1
292
+ # tab).
293
+ indent-string=' '
294
+
295
+ # Maximum number of characters on a single line.
296
+ max-line-length=100
297
+
298
+ # Maximum number of lines in a module.
299
+ max-module-lines=1000
300
+
301
+ # Allow the body of a class to be on the same line as the declaration if body
302
+ # contains single statement.
303
+ single-line-class-stmt=no
304
+
305
+ # Allow the body of an if to be on the same line as the test if there is no
306
+ # else.
307
+ single-line-if-stmt=no
308
+
309
+
310
+ [SIMILARITIES]
311
+
312
+ # Comments are removed from the similarity computation
313
+ ignore-comments=yes
314
+
315
+ # Docstrings are removed from the similarity computation
316
+ ignore-docstrings=yes
317
+
318
+ # Imports are removed from the similarity computation
319
+ ignore-imports=no
320
+
321
+ # Signatures are removed from the similarity computation
322
+ ignore-signatures=no
323
+
324
+ # Minimum lines number of a similarity.
325
+ min-similarity-lines=4
326
+
327
+
328
+ [BASIC]
329
+
330
+ # Naming style matching correct argument names.
331
+ argument-naming-style=snake_case
332
+
333
+ # Regular expression matching correct argument names. Overrides argument-
334
+ # naming-style.
335
+ #argument-rgx=
336
+
337
+ # Naming style matching correct attribute names.
338
+ attr-naming-style=snake_case
339
+
340
+ # Regular expression matching correct attribute names. Overrides attr-naming-
341
+ # style.
342
+ #attr-rgx=
343
+
344
+ # Bad variable names which should always be refused, separated by a comma.
345
+ bad-names=foo,
346
+ bar,
347
+ baz,
348
+ toto,
349
+ tutu,
350
+ tata
351
+
352
+ # Bad variable names regexes, separated by a comma. If names match any regex,
353
+ # they will always be refused
354
+ bad-names-rgxs=
355
+
356
+ # Naming style matching correct class attribute names.
357
+ class-attribute-naming-style=any
358
+
359
+ # Regular expression matching correct class attribute names. Overrides class-
360
+ # attribute-naming-style.
361
+ #class-attribute-rgx=
362
+
363
+ # Naming style matching correct class constant names.
364
+ class-const-naming-style=UPPER_CASE
365
+
366
+ # Regular expression matching correct class constant names. Overrides class-
367
+ # const-naming-style.
368
+ #class-const-rgx=
369
+
370
+ # Naming style matching correct class names.
371
+ class-naming-style=PascalCase
372
+
373
+ # Regular expression matching correct class names. Overrides class-naming-
374
+ # style.
375
+ #class-rgx=
376
+
377
+ # Naming style matching correct constant names.
378
+ const-naming-style=UPPER_CASE
379
+
380
+ # Regular expression matching correct constant names. Overrides const-naming-
381
+ # style.
382
+ #const-rgx=
383
+
384
+ # Minimum line length for functions/classes that require docstrings, shorter
385
+ # ones are exempt.
386
+ docstring-min-length=-1
387
+
388
+ # Naming style matching correct function names.
389
+ function-naming-style=snake_case
390
+
391
+ # Regular expression matching correct function names. Overrides function-
392
+ # naming-style.
393
+ #function-rgx=
394
+
395
+ # Good variable names which should always be accepted, separated by a comma.
396
+ good-names=i,
397
+ ii,
398
+ jj,
399
+ kk,
400
+ dr,
401
+ j,
402
+ k,
403
+ ex,
404
+ Run,
405
+ cb,
406
+ _
407
+
408
+ # Good variable names regexes, separated by a comma. If names match any regex,
409
+ # they will always be accepted
410
+ good-names-rgxs=.*scanID.*,.*RID.*,.*pointID.*,.*ID.*,.*_2D.*,.*_1D.*
411
+
412
+ # Include a hint for the correct naming format with invalid-name.
413
+ include-naming-hint=no
414
+
415
+ # Naming style matching correct inline iteration names.
416
+ inlinevar-naming-style=any
417
+
418
+ # Regular expression matching correct inline iteration names. Overrides
419
+ # inlinevar-naming-style.
420
+ #inlinevar-rgx=
421
+
422
+ # Naming style matching correct method names.
423
+ method-naming-style=snake_case
424
+
425
+ # Regular expression matching correct method names. Overrides method-naming-
426
+ # style.
427
+ #method-rgx=
428
+
429
+ # Naming style matching correct module names.
430
+ module-naming-style=snake_case
431
+
432
+ # Regular expression matching correct module names. Overrides module-naming-
433
+ # style.
434
+ #module-rgx=
435
+
436
+ # Colon-delimited sets of names that determine each other's naming style when
437
+ # the name regexes allow several styles.
438
+ name-group=
439
+
440
+ # Regular expression which should only match function or class names that do
441
+ # not require a docstring.
442
+ no-docstring-rgx=^_
443
+
444
+ # List of decorators that produce properties, such as abc.abstractproperty. Add
445
+ # to this list to register other decorators that produce valid properties.
446
+ # These decorators are taken in consideration only for invalid-name.
447
+ property-classes=abc.abstractproperty
448
+
449
+ # Naming style matching correct variable names.
450
+ variable-naming-style=snake_case
451
+
452
+ # Regular expression matching correct variable names. Overrides variable-
453
+ # naming-style.
454
+ #variable-rgx=
455
+
456
+
457
+ [STRING]
458
+
459
+ # This flag controls whether inconsistent-quotes generates a warning when the
460
+ # character used as a quote delimiter is used inconsistently within a module.
461
+ check-quote-consistency=no
462
+
463
+ # This flag controls whether the implicit-str-concat should generate a warning
464
+ # on implicit string concatenation in sequences defined over several lines.
465
+ check-str-concat-over-line-jumps=no
466
+
467
+
468
+ [IMPORTS]
469
+
470
+ # List of modules that can be imported at any level, not just the top level
471
+ # one.
472
+ allow-any-import-level=
473
+
474
+ # Allow wildcard imports from modules that define __all__.
475
+ allow-wildcard-with-all=no
476
+
477
+ # Analyse import fallback blocks. This can be used to support both Python 2 and
478
+ # 3 compatible code, which means that the block might have code that exists
479
+ # only in one or another interpreter, leading to false positives when analysed.
480
+ analyse-fallback-blocks=no
481
+
482
+ # Deprecated modules which should not be used, separated by a comma.
483
+ deprecated-modules=
484
+
485
+ # Output a graph (.gv or any supported image format) of external dependencies
486
+ # to the given file (report RP0402 must not be disabled).
487
+ ext-import-graph=
488
+
489
+ # Output a graph (.gv or any supported image format) of all (i.e. internal and
490
+ # external) dependencies to the given file (report RP0402 must not be
491
+ # disabled).
492
+ import-graph=
493
+
494
+ # Output a graph (.gv or any supported image format) of internal dependencies
495
+ # to the given file (report RP0402 must not be disabled).
496
+ int-import-graph=
497
+
498
+ # Force import order to recognize a module as part of the standard
499
+ # compatibility libraries.
500
+ known-standard-library=
501
+
502
+ # Force import order to recognize a module as part of a third party library.
503
+ known-third-party=enchant
504
+
505
+ # Couples of modules and preferred modules, separated by a comma.
506
+ preferred-modules=
507
+
508
+
509
+ [CLASSES]
510
+
511
+ # Warn about protected attribute access inside special methods
512
+ check-protected-access-in-special-methods=no
513
+
514
+ # List of method names used to declare (i.e. assign) instance attributes.
515
+ defining-attr-methods=__init__,
516
+ __new__,
517
+ setUp,
518
+ __post_init__
519
+
520
+ # List of member names, which should be excluded from the protected access
521
+ # warning.
522
+ exclude-protected=_asdict,
523
+ _fields,
524
+ _replace,
525
+ _source,
526
+ _make
527
+
528
+ # List of valid names for the first argument in a class method.
529
+ valid-classmethod-first-arg=cls
530
+
531
+ # List of valid names for the first argument in a metaclass class method.
532
+ valid-metaclass-classmethod-first-arg=cls
533
+
534
+
535
+ [DESIGN]
536
+
537
+ # List of regular expressions of class ancestor names to ignore when counting
538
+ # public methods (see R0903)
539
+ exclude-too-few-public-methods=
540
+
541
+ # List of qualified class names to ignore when counting class parents (see
542
+ # R0901)
543
+ ignored-parents=
544
+
545
+ # Maximum number of arguments for function / method.
546
+ max-args=5
547
+
548
+ # Maximum number of attributes for a class (see R0902).
549
+ max-attributes=7
550
+
551
+ # Maximum number of boolean expressions in an if statement (see R0916).
552
+ max-bool-expr=5
553
+
554
+ # Maximum number of branch for function / method body.
555
+ max-branches=12
556
+
557
+ # Maximum number of locals for function / method body.
558
+ max-locals=15
559
+
560
+ # Maximum number of parents for a class (see R0901).
561
+ max-parents=7
562
+
563
+ # Maximum number of public methods for a class (see R0904).
564
+ max-public-methods=20
565
+
566
+ # Maximum number of return / yield for function / method body.
567
+ max-returns=6
568
+
569
+ # Maximum number of statements in function / method body.
570
+ max-statements=50
571
+
572
+ # Minimum number of public methods for a class (see R0903).
573
+ min-public-methods=2
574
+
575
+
576
+ [EXCEPTIONS]
577
+
578
+ # Exceptions that will emit a warning when being caught. Defaults to
579
+ # "BaseException, Exception".
580
+ overgeneral-exceptions=BaseException,
581
+ Exception
.readthedocs.yaml ADDED
@@ -0,0 +1,25 @@
1
+ # .readthedocs.yaml
2
+ # Read the Docs configuration file
3
+ # See https://docs.readthedocs.io/en/stable/config-file/v2.html for details
4
+
5
+ # Required
6
+ version: 2
7
+
8
+ # Set the version of Python and other tools you might need
9
+ build:
10
+ os: ubuntu-20.04
11
+ tools:
12
+ python: "3.10"
13
+
14
+ # Build documentation in the docs/ directory with Sphinx
15
+ sphinx:
16
+ configuration: docs/conf.py
17
+
18
+ # If using Sphinx, optionally build your docs in additional formats such as PDF
19
+ # formats:
20
+ # - pdf
21
+
22
+ # Optionally declare the Python requirements required to build your docs
23
+ python:
24
+ install:
25
+ - requirements: docs/requirements.txt