@devkong/cli-nx 0.0.67-alpha.3 → 0.0.67-alpha.30

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 (65) hide show
  1. package/package.json +1 -1
  2. package/src/generators/preset/files/kotlin/.dockerignore +6 -0
  3. package/src/generators/preset/files/kotlin/.editorconfig +24 -0
  4. package/src/generators/preset/files/kotlin/.vscode/extensions.json +18 -0
  5. package/src/generators/preset/files/kotlin/.vscode/launch.json +16 -0
  6. package/src/generators/preset/files/kotlin/.vscode/settings.json +7 -0
  7. package/src/generators/preset/files/kotlin/.vscode/tasks.json +81 -0
  8. package/src/generators/preset/files/kotlin/Dockerfile +58 -0
  9. package/src/generators/preset/files/kotlin/README.md +172 -0
  10. package/src/generators/preset/files/kotlin/build.gradle.kts.template +64 -0
  11. package/src/generators/preset/files/kotlin/gradle/wrapper/gradle-wrapper.jar +0 -0
  12. package/src/generators/preset/files/kotlin/gradle/wrapper/gradle-wrapper.properties +6 -0
  13. package/src/generators/preset/files/kotlin/gradle.properties +25 -0
  14. package/src/generators/preset/files/kotlin/gradlew +245 -0
  15. package/src/generators/preset/files/kotlin/gradlew.bat +92 -0
  16. package/src/generators/preset/files/kotlin/kong.json.template +6 -0
  17. package/src/generators/preset/files/kotlin/project.json.template +29 -0
  18. package/src/generators/preset/files/kotlin/settings.gradle.kts +14 -0
  19. package/src/generators/preset/files/kotlin/src/main/kotlin/io/kong/extension/InputData.kt +26 -0
  20. package/src/generators/preset/files/kotlin/src/main/kotlin/io/kong/extension/Main.kt +83 -0
  21. package/src/generators/preset/files/kotlin/src/main/kotlin/io/kong/extension/OutputData.kt +15 -0
  22. package/src/generators/preset/files/kotlin/src/main/kotlin/io/kong/extension/RegisterFrontend.kt +28 -0
  23. package/src/generators/preset/files/kotlin/src/main/resources/META-INF/resources/index.html +362 -0
  24. package/src/generators/preset/files/kotlin/src/main/resources/application.properties.template +3 -0
  25. package/src/generators/preset/files/kotlin/src/main/resources/reflect-config.json.template +1 -0
  26. package/src/generators/preset/files/kotlin/src/test/kotlin/io/kong/extension/Test.kt +58 -0
  27. package/src/generators/preset/files/python/.dockerignore +5 -0
  28. package/src/generators/preset/files/python/.editorconfig +16 -0
  29. package/src/generators/preset/files/python/.gitattributes +25 -0
  30. package/src/generators/preset/files/python/.gitignore.template +69 -0
  31. package/src/generators/preset/files/python/.idea/inspectionProfiles/Project_Default.xml +7 -0
  32. package/src/generators/preset/files/python/.idea/inspectionProfiles/profiles_settings.xml +6 -0
  33. package/src/generators/preset/files/python/.idea/kong-cli-python-template.iml +10 -0
  34. package/src/generators/preset/files/python/.pylintrc +543 -0
  35. package/src/generators/preset/files/python/.vscode/extensions.json +14 -0
  36. package/src/generators/preset/files/python/.vscode/launch.json +19 -0
  37. package/src/generators/preset/files/python/.vscode/settings.json +65 -0
  38. package/src/generators/preset/files/python/Dockerfile +30 -0
  39. package/src/generators/preset/files/python/README.md +262 -0
  40. package/src/generators/preset/files/python/kong.json.template +6 -0
  41. package/src/generators/preset/files/python/project.json.template +8 -0
  42. package/src/generators/preset/files/python/pyproject.toml +3 -0
  43. package/src/generators/preset/files/python/requirements-dev.txt +10 -0
  44. package/src/generators/preset/files/python/requirements.txt +5 -0
  45. package/src/generators/preset/files/python/src/__init__.py +0 -0
  46. package/src/generators/preset/files/python/src/frontend.py +3 -0
  47. package/src/generators/preset/files/python/src/input_data.py +13 -0
  48. package/src/generators/preset/files/python/src/main.py +28 -0
  49. package/src/generators/preset/files/python/src/main_test.py +19 -0
  50. package/src/generators/preset/files/python/src/output_data.py +15 -0
  51. package/src/generators/preset/files/python-with-s3/src/frontend.py +6 -0
  52. package/src/generators/preset/files/python-with-s3/src/input_data.py +17 -0
  53. package/src/generators/preset/files/python-with-s3/src/main.py +45 -0
  54. package/src/generators/preset/files/python-with-s3/src/main_test.py +36 -0
  55. package/src/generators/preset/files/python-with-s3/src/output_data.py +8 -0
  56. package/src/generators/preset/files/python-with-s3/src/s3.py +27 -0
  57. package/src/generators/preset/files/python-with-secret/src/frontend.py +17 -0
  58. package/src/generators/preset/files/python-with-secret/src/input_data.py +40 -0
  59. package/src/generators/preset/files/python-with-secret/src/main.py +51 -0
  60. package/src/generators/preset/files/python-with-secret/src/main_test.py +39 -0
  61. package/src/generators/preset/files/python-with-secret/src/output_data.py +16 -0
  62. package/src/generators/preset/generator.js +10 -0
  63. package/src/generators/preset/generator.js.map +1 -1
  64. package/src/generators/preset/schema.d.ts +6 -1
  65. package/src/generators/preset/schema.json +32 -2
@@ -0,0 +1,543 @@
1
+ [MAIN]
2
+
3
+ # List of plugins (as comma separated values of python modules names) to load,
4
+ # usually to register additional checkers.
5
+ load-plugins=
6
+ pylint.extensions.check_elif,
7
+ pylint.extensions.bad_builtin,
8
+ pylint.extensions.docparams,
9
+ pylint.extensions.for_any_all,
10
+ pylint.extensions.set_membership,
11
+ pylint.extensions.code_style,
12
+ pylint.extensions.overlapping_exceptions,
13
+ pylint.extensions.typing,
14
+ pylint.extensions.redefined_variable_type,
15
+ pylint.extensions.comparison_placement,
16
+ pylint_pydantic,
17
+
18
+
19
+ # Use multiple processes to speed up Pylint. Specifying 0 will auto-detect the
20
+ # number of processors available to use.
21
+ jobs=1
22
+
23
+ # Allow loading of arbitrary C extensions. Extensions are imported into the
24
+ # active Python interpreter and may run arbitrary code.
25
+ unsafe-load-any-extension=no
26
+
27
+ # A comma-separated list of package or module names from where C extensions may
28
+ # be loaded. Extensions are loading into the active Python interpreter and may
29
+ # run arbitrary code
30
+ extension-pkg-allow-list=pydantic,dependency_injector
31
+
32
+ # Minimum supported python version
33
+ py-version = 3.10.5
34
+
35
+ # Control the amount of potential inferred values when inferring a single
36
+ # object. This can help the performance when dealing with large functions or
37
+ # complex, nested conditions.
38
+ limit-inference-results=100
39
+
40
+ # Specify a score threshold under which the program will exit with error.
41
+ fail-under=10.0
42
+
43
+ # Return non-zero exit code if any of these messages/categories are detected,
44
+ # even if score is above --fail-under value. Syntax same as enable. Messages
45
+ # specified are enabled, while categories only check already-enabled messages.
46
+ fail-on=
47
+
48
+
49
+ [MESSAGES CONTROL]
50
+
51
+ # Only show warnings with the listed confidence levels. Leave empty to show
52
+ # all. Valid levels: HIGH, INFERENCE, INFERENCE_FAILURE, UNDEFINED
53
+ # confidence=
54
+
55
+ # Enable the message, report, category or checker with the given id(s). You can
56
+ # either give multiple identifier separated by comma (,) or put this option
57
+ # multiple time (only on the command line, not in the configuration file where
58
+ # it should appear only once). See also the "--disable" option for examples.
59
+ enable=
60
+ use-symbolic-message-instead,
61
+ useless-suppression,
62
+
63
+ # Disable the message, report, category or checker with the given id(s). You
64
+ # can either give multiple identifiers separated by comma (,) or put this
65
+ # option multiple times (only on the command line, not in the configuration
66
+ # file where it should appear only once).You can also use "--disable=all" to
67
+ # disable everything first and then re-enable specific checks. For example, if
68
+ # you want to run only the similarities checker, you can use "--disable=all
69
+ # --enable=similarities". If you want to run only the classes checker, but have
70
+ # no Warning level messages displayed, use"--disable=all --enable=classes
71
+ # --disable=W"
72
+
73
+ disable=
74
+ attribute-defined-outside-init,
75
+ invalid-name,
76
+ missing-docstring,
77
+ protected-access,
78
+ too-few-public-methods,
79
+ # handled by black
80
+ format,
81
+ # We anticipate #3512 where it will become optional
82
+ fixme,
83
+ not-context-manager,
84
+ relative-beyond-top-level,
85
+
86
+
87
+ [REPORTS]
88
+
89
+ # Set the output format. Available formats are text, parseable, colorized, msvs
90
+ # (visual studio) and html. You can also give a reporter class, eg
91
+ # mypackage.mymodule.MyReporterClass.
92
+ output-format=text
93
+
94
+ # Tells whether to display a full report or only the messages
95
+ reports=no
96
+
97
+ # Python expression which should return a note less than 10 (10 is the highest
98
+ # note). You have access to the variables "fatal", "error", "warning", "refactor", "convention"
99
+ # and "info", which contain the number of messages in each category, as
100
+ # well as "statement", which is the total number of statements analyzed. This
101
+ # score is used by the global evaluation report (RP0004).
102
+ evaluation=max(0, 0 if fatal else 10.0 - ((float(5 * error + warning + refactor + convention) / statement) * 10))
103
+
104
+ # Template used to display messages. This is a python new-style format string
105
+ # used to format the message information. See doc for all details
106
+ #msg-template=
107
+
108
+ # Activate the evaluation score.
109
+ score=yes
110
+
111
+
112
+ [LOGGING]
113
+
114
+ # Logging modules to check that the string format arguments are in logging
115
+ # function parameter format
116
+ logging-modules=logging
117
+
118
+ # The type of string formatting that logging methods do. `old` means using %
119
+ # formatting, `new` is for `{}` formatting.
120
+ logging-format-style=new
121
+
122
+
123
+ [MISCELLANEOUS]
124
+
125
+ # List of note tags to take in consideration, separated by a comma.
126
+ notes=FIXME,XXX,TODO
127
+
128
+ # Regular expression of note tags to take in consideration.
129
+ #notes-rgx=
130
+
131
+
132
+ [SIMILARITIES]
133
+
134
+ # Minimum lines number of a similarity.
135
+ min-similarity-lines=6
136
+
137
+ # Ignore comments when computing similarities.
138
+ ignore-comments=yes
139
+
140
+ # Ignore docstrings when computing similarities.
141
+ ignore-docstrings=yes
142
+
143
+ # Ignore imports when computing similarities.
144
+ ignore-imports=yes
145
+
146
+ # Signatures are removed from the similarity computation
147
+ ignore-signatures=yes
148
+
149
+
150
+ [VARIABLES]
151
+
152
+ # Tells whether we should check for unused import in __init__ files.
153
+ init-import=no
154
+
155
+ # A regular expression matching the name of dummy variables (i.e. expectedly
156
+ # not used).
157
+ dummy-variables-rgx=_$|dummy
158
+
159
+ # List of additional names supposed to be defined in builtins. Remember that
160
+ # you should avoid defining new builtins when possible.
161
+ additional-builtins=
162
+
163
+ # List of strings which can identify a callback function by name. A callback
164
+ # name must start or end with one of those strings.
165
+ callbacks=cb_,_cb
166
+
167
+ # Tells whether unused global variables should be treated as a violation.
168
+ allow-global-unused-variables=yes
169
+
170
+ # List of names allowed to shadow builtins
171
+ allowed-redefined-builtins=
172
+
173
+ # Argument names that match this expression will be ignored. Default to name
174
+ # with leading underscore.
175
+ ignored-argument-names=_.*
176
+
177
+ # List of qualified module names which can have objects that can redefine
178
+ # builtins.
179
+ redefining-builtins-modules=six.moves,past.builtins,future.builtins,builtins,io
180
+
181
+
182
+ [FORMAT]
183
+ disable=logging-fstring-interpolation
184
+
185
+ # Maximum number of characters on a single line.
186
+ max-line-length=100
187
+
188
+ # Regexp for a line that is allowed to be longer than the limit.
189
+ ignore-long-lines=^\s*(# )?<?https?://\S+>?$
190
+
191
+ # Allow the body of an if to be on the same line as the test if there is no
192
+ # else.
193
+ single-line-if-stmt=no
194
+
195
+ # Allow the body of a class to be on the same line as the declaration if body
196
+ # contains single statement.
197
+ single-line-class-stmt=no
198
+
199
+ # Maximum number of lines in a module
200
+ max-module-lines=2000
201
+
202
+ # String used as indentation unit. This is usually " " (4 spaces) or "\t" (1
203
+ # tab).
204
+ indent-string=" "
205
+
206
+ # Number of spaces of indent required inside a hanging or continued line.
207
+ indent-after-paren=4
208
+
209
+ # Expected format of line ending, e.g. empty (any line ending), LF or CRLF.
210
+ expected-line-ending-format=
211
+
212
+
213
+ [BASIC]
214
+
215
+ # Good variable names which should always be accepted, separated by a comma
216
+ good-names=i,j,k,ex,Run,_
217
+
218
+ # Good variable names regexes, separated by a comma. If names match any regex,
219
+ # they will always be accepted
220
+ good-names-rgxs=
221
+
222
+ # Bad variable names which should always be refused, separated by a comma
223
+ bad-names=foo,bar,baz,toto,tutu,tata
224
+
225
+ # Bad variable names regexes, separated by a comma. If names match any regex,
226
+ # they will always be refused
227
+ bad-names-rgxs=
228
+
229
+ # Colon-delimited sets of names that determine each other's naming style when
230
+ # the name regexes allow several styles.
231
+ name-group=
232
+
233
+ # Include a hint for the correct naming format with invalid-name
234
+ include-naming-hint=no
235
+
236
+ # Naming style matching correct function names.
237
+ function-naming-style=snake_case
238
+
239
+ # Regular expression matching correct function names
240
+ function-rgx=[a-z_][a-z0-9_]{2,30}$
241
+
242
+ # Naming style matching correct variable names.
243
+ variable-naming-style=snake_case
244
+
245
+ # Regular expression matching correct variable names
246
+ variable-rgx=[a-z_][a-z0-9_]{2,30}$
247
+
248
+ # Naming style matching correct constant names.
249
+ const-naming-style=UPPER_CASE
250
+
251
+ # Regular expression matching correct constant names
252
+ const-rgx=(([A-Z_][A-Z0-9_]*)|(__.*__))$
253
+
254
+ # Naming style matching correct attribute names.
255
+ attr-naming-style=snake_case
256
+
257
+ # Regular expression matching correct attribute names
258
+ attr-rgx=[a-z_][a-z0-9_]{2,}$
259
+
260
+ # Naming style matching correct argument names.
261
+ argument-naming-style=snake_case
262
+
263
+ # Regular expression matching correct argument names
264
+ argument-rgx=[a-z_][a-z0-9_]{2,30}$
265
+
266
+ # Naming style matching correct class attribute names.
267
+ class-attribute-naming-style=any
268
+
269
+ # Regular expression matching correct class attribute names
270
+ class-attribute-rgx=([A-Za-z_][A-Za-z0-9_]{2,30}|(__.*__))$
271
+
272
+ # Naming style matching correct class constant names.
273
+ class-const-naming-style=UPPER_CASE
274
+
275
+ # Regular expression matching correct class constant names. Overrides class-
276
+ # const-naming-style.
277
+ #class-const-rgx=
278
+
279
+ # Naming style matching correct inline iteration names.
280
+ inlinevar-naming-style=any
281
+
282
+ # Regular expression matching correct inline iteration names
283
+ inlinevar-rgx=[A-Za-z_][A-Za-z0-9_]*$
284
+
285
+ # Naming style matching correct class names.
286
+ class-naming-style=PascalCase
287
+
288
+ # Regular expression matching correct class names
289
+ class-rgx=[A-Z_][a-zA-Z0-9]+$
290
+
291
+
292
+ # Naming style matching correct module names.
293
+ module-naming-style=snake_case
294
+
295
+ # Regular expression matching correct module names
296
+ module-rgx=(([a-z_][a-z0-9_]*)|([A-Z][a-zA-Z0-9]+))$
297
+
298
+
299
+ # Naming style matching correct method names.
300
+ method-naming-style=snake_case
301
+
302
+ # Regular expression matching correct method names
303
+ method-rgx=[a-z_][a-z0-9_]{2,}$
304
+
305
+ # Regular expression which can overwrite the naming style set by typevar-naming-style.
306
+ #typevar-rgx=
307
+
308
+ # Regular expression which should only match function or class names that do
309
+ # not require a docstring. Use ^(?!__init__$)_ to also check __init__.
310
+ no-docstring-rgx=__.*__
311
+
312
+ # Minimum line length for functions/classes that require docstrings, shorter
313
+ # ones are exempt.
314
+ docstring-min-length=-1
315
+
316
+ # List of decorators that define properties, such as abc.abstractproperty.
317
+ property-classes=abc.abstractproperty
318
+
319
+
320
+ [TYPECHECK]
321
+
322
+ # Regex pattern to define which classes are considered mixins if ignore-mixin-
323
+ # members is set to "yes"
324
+ mixin-class-rgx=.*MixIn
325
+
326
+ # List of module names for which member attributes should not be checked
327
+ # (useful for modules/projects where namespaces are manipulated during runtime
328
+ # and thus existing member attributes cannot be deduced by static analysis). It
329
+ # supports qualified module names, as well as Unix pattern matching.
330
+ ignored-modules=
331
+
332
+ # List of class names for which member attributes should not be checked (useful
333
+ # for classes with dynamically set attributes). This supports the use of
334
+ # qualified names.
335
+ ignored-classes=SQLObject, optparse.Values, thread._local, _thread._local
336
+
337
+ # List of members which are set dynamically and missed by pylint inference
338
+ # system, and so shouldn't trigger E1101 when accessed. Python regular
339
+ # expressions are accepted.
340
+ generated-members=REQUEST,acl_users,aq_parent,argparse.Namespace
341
+
342
+ # List of decorators that create context managers from functions, such as
343
+ # contextlib.contextmanager.
344
+ contextmanager-decorators=contextlib.contextmanager
345
+
346
+ # Tells whether to warn about missing members when the owner of the attribute
347
+ # is inferred to be None.
348
+ ignore-none=yes
349
+
350
+ # This flag controls whether pylint should warn about no-member and similar
351
+ # checks whenever an opaque object is returned when inferring. The inference
352
+ # can return multiple potential results while evaluating a Python object, but
353
+ # some branches might not be evaluated, which results in partial inference. In
354
+ # that case, it might be useful to still emit no-member and other checks for
355
+ # the rest of the inferred objects.
356
+ ignore-on-opaque-inference=yes
357
+
358
+ # Show a hint with possible names when a member name was not found. The aspect
359
+ # of finding the hint is based on edit distance.
360
+ missing-member-hint=yes
361
+
362
+ # The minimum edit distance a name should have in order to be considered a
363
+ # similar match for a missing member name.
364
+ missing-member-hint-distance=1
365
+
366
+ # The total number of similar names that should be taken in consideration when
367
+ # showing a hint for a missing member.
368
+ missing-member-max-choices=1
369
+
370
+ [SPELLING]
371
+
372
+ # Spelling dictionary name. Available dictionaries: none. To make it working
373
+ # install python-enchant package.
374
+ spelling-dict=
375
+
376
+ # List of comma separated words that should not be checked.
377
+ spelling-ignore-words=
378
+
379
+ # List of comma separated words that should be considered directives if they
380
+ # appear and the beginning of a comment and should not be checked.
381
+ spelling-ignore-comment-directives=fmt: on,fmt: off,noqa:,noqa,nosec,isort:skip,mypy:,pragma:,# noinspection
382
+
383
+ # A path to a file that contains private dictionary; one word per line.
384
+ spelling-private-dict-file=.pyenchant_pylint_custom_dict.txt
385
+
386
+ # Tells whether to store unknown words to indicated private dictionary in
387
+ # --spelling-private-dict-file option instead of raising a message.
388
+ spelling-store-unknown-words=no
389
+
390
+ # Limits count of emitted suggestions for spelling mistakes.
391
+ max-spelling-suggestions=2
392
+
393
+
394
+ [DESIGN]
395
+
396
+ # Maximum number of arguments for function / method
397
+ max-args=10
398
+
399
+ # Maximum number of locals for function / method body
400
+ max-locals=25
401
+
402
+ # Maximum number of return / yield for function / method body
403
+ max-returns=11
404
+
405
+ # Maximum number of branch for function / method body
406
+ max-branches=27
407
+
408
+ # Maximum number of statements in function / method body
409
+ max-statements=100
410
+
411
+ # Maximum number of parents for a class (see R0901).
412
+ max-parents=7
413
+
414
+ # List of qualified class names to ignore when counting class parents (see R0901).
415
+ ignored-parents=
416
+
417
+ # Maximum number of attributes for a class (see R0902).
418
+ max-attributes=11
419
+
420
+ # Minimum number of public methods for a class (see R0903).
421
+ min-public-methods=2
422
+
423
+ # Maximum number of public methods for a class (see R0904).
424
+ max-public-methods=25
425
+
426
+ # Maximum number of boolean expressions in an if statement (see R0916).
427
+ max-bool-expr=5
428
+
429
+ # List of regular expressions of class ancestor names to
430
+ # ignore when counting public methods (see R0903).
431
+ exclude-too-few-public-methods=
432
+
433
+ [CLASSES]
434
+
435
+ # List of method names used to declare (i.e. assign) instance attributes.
436
+ defining-attr-methods=__init__,__new__,setUp,__post_init__
437
+
438
+ # List of valid names for the first argument in a class method.
439
+ valid-classmethod-first-arg=cls
440
+
441
+ # List of valid names for the first argument in a metaclass class method.
442
+ valid-metaclass-classmethod-first-arg=mcs
443
+
444
+ # List of member names, which should be excluded from the protected access
445
+ # warning.
446
+ exclude-protected=_asdict,_fields,_replace,_source,_make
447
+
448
+ # Warn about protected attribute access inside special methods
449
+ check-protected-access-in-special-methods=no
450
+
451
+ [IMPORTS]
452
+
453
+ # List of modules that can be imported at any level, not just the top level
454
+ # one.
455
+ allow-any-import-level=
456
+
457
+ # Allow wildcard imports from modules that define __all__.
458
+ allow-wildcard-with-all=no
459
+
460
+ # Analyse import fallback blocks. This can be used to support both Python 2 and
461
+ # 3 compatible code, which means that the block might have code that exists
462
+ # only in one or another interpreter, leading to false positives when analysed.
463
+ analyse-fallback-blocks=no
464
+
465
+ # Deprecated modules which should not be used, separated by a comma
466
+ deprecated-modules=regsub,TERMIOS,Bastion,rexec
467
+
468
+ # Create a graph of every (i.e. internal and external) dependencies in the
469
+ # given file (report RP0402 must not be disabled)
470
+ import-graph=
471
+
472
+ # Create a graph of external dependencies in the given file (report RP0402 must
473
+ # not be disabled)
474
+ ext-import-graph=
475
+
476
+ # Create a graph of internal dependencies in the given file (report RP0402 must
477
+ # not be disabled)
478
+ int-import-graph=
479
+
480
+ # Force import order to recognize a module as part of the standard
481
+ # compatibility libraries.
482
+ known-standard-library=
483
+
484
+ # Force import order to recognize a module as part of a third party library.
485
+ known-third-party=enchant
486
+
487
+ # Couples of modules and preferred modules, separated by a comma.
488
+ preferred-modules=
489
+
490
+
491
+ [EXCEPTIONS]
492
+
493
+ # Exceptions that will emit a warning when being caught. Defaults to
494
+ # "Exception"
495
+ overgeneral-exceptions=Exception
496
+
497
+
498
+ [TYPING]
499
+
500
+ # Set to ``no`` if the app / library does **NOT** need to support runtime
501
+ # introspection of type annotations. If you use type annotations
502
+ # **exclusively** for type checking of an application, you're probably fine.
503
+ # For libraries, evaluate if some users what to access the type hints at
504
+ # runtime first, e.g., through ``typing.get_type_hints``. Applies to Python
505
+ # versions 3.7 - 3.9
506
+ runtime-typing = no
507
+
508
+
509
+ [DEPRECATED_BUILTINS]
510
+
511
+ # List of builtins function names that should not be used, separated by a comma
512
+ bad-functions=map,input
513
+
514
+
515
+ [REFACTORING]
516
+
517
+ # Maximum number of nested blocks for function / method body
518
+ max-nested-blocks=5
519
+
520
+ # Complete name of functions that never returns. When checking for
521
+ # inconsistent-return-statements if a never returning function is called then
522
+ # it will be considered as an explicit return statement and no message will be
523
+ # printed.
524
+ never-returning-functions=sys.exit,argparse.parse_error
525
+
526
+
527
+ [STRING]
528
+
529
+ # This flag controls whether inconsistent-quotes generates a warning when the
530
+ # character used as a quote delimiter is used inconsistently within a module.
531
+ check-quote-consistency=no
532
+
533
+ # This flag controls whether the implicit-str-concat should generate a warning
534
+ # on implicit string concatenation in sequences defined over several lines.
535
+ check-str-concat-over-line-jumps=no
536
+
537
+
538
+ [CODE_STYLE]
539
+
540
+ # Max line length for which to sill emit suggestions. Used to prevent optional
541
+ # suggestions which would get split by a code formatter (e.g., black). Will
542
+ # default to the setting for ``max-line-length``.
543
+ #max-line-length-suggestions=
@@ -0,0 +1,14 @@
1
+ {
2
+ "recommendations": [
3
+ "dbaeumer.vscode-eslint",
4
+ "esbenp.prettier-vscode",
5
+ "ms-python.black-formatter",
6
+ "ms-python.isort",
7
+ "ms-python.pylint",
8
+ "ms-python.python",
9
+ "ms-python.vscode-pylance",
10
+ "nrwl.angular-console",
11
+ "streetsidesoftware.code-spell-checker",
12
+ "stylelint.vscode-stylelint"
13
+ ]
14
+ }
@@ -0,0 +1,19 @@
1
+ {
2
+ "version": "0.2.0",
3
+ "configurations": [
4
+ {
5
+ "name": "test",
6
+ "type": "debugpy",
7
+ "request": "launch",
8
+ "module": "pytest",
9
+ "cwd": "${workspaceFolder}/src",
10
+ "windows": {
11
+ "python": "${workspaceFolder}\\.venv\\Scripts\\python.exe"
12
+ },
13
+ "linux": {
14
+ "python": "${workspaceFolder}/.venv/bin/python"
15
+ },
16
+ "justMyCode": true
17
+ }
18
+ ]
19
+ }
@@ -0,0 +1,65 @@
1
+ {
2
+ "files.eol": "\n",
3
+ "python.languageServer": "Pylance",
4
+ "python.defaultInterpreterPath": "${workspaceFolder}/.venv/bin/python",
5
+ "python.analysis.extraPaths": ["src"],
6
+ "pylint.args": ["--init-hook", "import sys; sys.path.insert(0, 'src')"],
7
+ "[python]": {
8
+ "editor.defaultFormatter": "ms-python.black-formatter",
9
+ "editor.formatOnSave": true,
10
+ "editor.codeActionsOnSave": {
11
+ "source.organizeImports": "explicit"
12
+ }
13
+ },
14
+ "isort.args": ["--profile", "black"],
15
+ "json.schemas": [
16
+ {
17
+ "fileMatch": ["**/kong.json"],
18
+ "url": "https://kong.dev.app-dts.net/kong-cli-schema.json"
19
+ }
20
+ ],
21
+ "cSpell.words": [
22
+ "abstractproperty",
23
+ "Analyse",
24
+ "analysed",
25
+ "argparse",
26
+ "asdict",
27
+ "asyncio",
28
+ "classmethod",
29
+ "condecimal",
30
+ "conint",
31
+ "contextlib",
32
+ "contextmanager",
33
+ "devkong",
34
+ "docparams",
35
+ "docstrings",
36
+ "elif",
37
+ "fstring",
38
+ "inlinevar",
39
+ "isort",
40
+ "libpeerconnection",
41
+ "metaclass",
42
+ "msvs",
43
+ "mymodule",
44
+ "mypackage",
45
+ "mypy",
46
+ "noqa",
47
+ "nosec",
48
+ "optparse",
49
+ "overgeneral",
50
+ "parseable",
51
+ "protoeditor",
52
+ "pycache",
53
+ "pyenchant",
54
+ "pylint",
55
+ "pytest",
56
+ "regsub",
57
+ "rexec",
58
+ "rgxs",
59
+ "TERMIOS",
60
+ "testem",
61
+ "typevar",
62
+ "unittests",
63
+ "venv"
64
+ ]
65
+ }
@@ -0,0 +1,30 @@
1
+ # syntax=docker/dockerfile:1
2
+
3
+ # ==============================================
4
+ # Stage 1: Create runtime image
5
+ # ==============================================
6
+ FROM --platform=linux/amd64 python:3.13.1-slim-bookworm
7
+
8
+ ENV APP_DIR=/deployments/app \
9
+ PYTHONUNBUFFERED=1 \
10
+ PYTHONDONTWRITEBYTECODE=1
11
+
12
+ WORKDIR $APP_DIR
13
+
14
+ # Install dependencies first (for better caching)
15
+ COPY --chown=1001:root ./requirements-lock.txt ./requirements-lock.txt
16
+ RUN --mount=type=cache,target=/root/.cache/pip \
17
+ pip install --upgrade pip && \
18
+ pip install -r requirements-lock.txt
19
+
20
+ # Copy application sources
21
+ COPY --chown=1001:root ./src ./src
22
+
23
+ # Create a non-root user and switch to it for security
24
+ RUN useradd --uid 1001 --gid root --create-home app \
25
+ && chown 1001:root $APP_DIR \
26
+ && chmod "g+rwX" $APP_DIR
27
+
28
+ USER 1001
29
+
30
+ CMD ["python", "./src/main.py"]