ruff-config-generator 2.1.0__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 (43) hide show
  1. ruff_config_generator-2.1.0/.config/.coveragerc +5 -0
  2. ruff_config_generator-2.1.0/.config/.editorconfig +17 -0
  3. ruff_config_generator-2.1.0/.config/.flake8 +25 -0
  4. ruff_config_generator-2.1.0/.config/mypy.ini +497 -0
  5. ruff_config_generator-2.1.0/.config/pytest.ini +15 -0
  6. ruff_config_generator-2.1.0/.config/ruff.toml +1458 -0
  7. ruff_config_generator-2.1.0/.coveragerc +1 -0
  8. ruff_config_generator-2.1.0/.editorconfig +1 -0
  9. ruff_config_generator-2.1.0/.flake8 +1 -0
  10. ruff_config_generator-2.1.0/.gitattributes +1 -0
  11. ruff_config_generator-2.1.0/.github/workflows/execute.yml +63 -0
  12. ruff_config_generator-2.1.0/.github/workflows/pr-checker.yml +43 -0
  13. ruff_config_generator-2.1.0/.github/workflows/release.yml +59 -0
  14. ruff_config_generator-2.1.0/.gitignore +131 -0
  15. ruff_config_generator-2.1.0/CHANGELOG.md +45 -0
  16. ruff_config_generator-2.1.0/LICENSE +201 -0
  17. ruff_config_generator-2.1.0/NOTICE +1 -0
  18. ruff_config_generator-2.1.0/PKG-INFO +41 -0
  19. ruff_config_generator-2.1.0/README-DEV.MD +155 -0
  20. ruff_config_generator-2.1.0/README.md +21 -0
  21. ruff_config_generator-2.1.0/krunch_pl_config.toml +84 -0
  22. ruff_config_generator-2.1.0/mypy.ini +1 -0
  23. ruff_config_generator-2.1.0/pyproject.toml +54 -0
  24. ruff_config_generator-2.1.0/pytest.ini +1 -0
  25. ruff_config_generator-2.1.0/ruff.toml +1 -0
  26. ruff_config_generator-2.1.0/src/ruff_config_generator/__init__.py +0 -0
  27. ruff_config_generator-2.1.0/src/ruff_config_generator/__main__.py +42 -0
  28. ruff_config_generator-2.1.0/src/ruff_config_generator/app_config.py +75 -0
  29. ruff_config_generator-2.1.0/src/ruff_config_generator/default_config.toml +9 -0
  30. ruff_config_generator-2.1.0/src/ruff_config_generator/downloader.py +63 -0
  31. ruff_config_generator-2.1.0/src/ruff_config_generator/generator.py +363 -0
  32. ruff_config_generator-2.1.0/src/ruff_config_generator/py.typed +0 -0
  33. ruff_config_generator-2.1.0/tests/__init__.py +0 -0
  34. ruff_config_generator-2.1.0/tests/ruff_config_generator/__init__.py +0 -0
  35. ruff_config_generator-2.1.0/tests/ruff_config_generator/test_downloader.py +123 -0
  36. ruff_config_generator-2.1.0/tests/ruff_config_generator/test_generator.py +661 -0
  37. ruff_config_generator-2.1.0/uv.lock +753 -0
  38. ruff_config_generator-2.1.0/version.txt +1 -0
  39. ruff_config_generator-2.1.0/workdir/adjusted.toml +1458 -0
  40. ruff_config_generator-2.1.0/workdir/default.toml +1417 -0
  41. ruff_config_generator-2.1.0/workdir/rules.html +8522 -0
  42. ruff_config_generator-2.1.0/workdir/settings.html +8570 -0
  43. ruff_config_generator-2.1.0/workdir/version.txt +1 -0
@@ -0,0 +1,5 @@
1
+ [report]
2
+ exclude_lines =
3
+ pragma: no cover
4
+ if TYPE_CHECKING:
5
+ return NotImplemented
@@ -0,0 +1,17 @@
1
+ root = true
2
+
3
+ [*]
4
+ spelling_language = "en-US"
5
+ trim_trailing_whitespace = true
6
+ insert_final_newline = true
7
+ charset = utf-8
8
+ end_of_line = lf
9
+ indent_style = space
10
+ indent_size = 4
11
+
12
+ [*.{json,yaml,yml,xml}]
13
+ indent_size = 2
14
+
15
+ [*.{md}]
16
+ indent_size = 4
17
+ trim_trailing_whitespace = false
@@ -0,0 +1,25 @@
1
+ [flake8]
2
+ count = True
3
+ extend-exclude =
4
+ .*/
5
+ tests/
6
+
7
+ ### Rules choice
8
+ # DOC: We use flake8 just to run pydoclint, ruff takes care about the rest
9
+ select=DOC
10
+ # DOC5xx: Violations about “raise” and “assert” statements
11
+ # DOC6xx: Violations about class attributes
12
+ # DOC203: Return type(s) in the docstring not consistent with the return annotation
13
+ # DOC404: The types in the docstring’s Yields section and the return annotation in the signature are not consistent
14
+ ignore=DOC5,DOC6,DOC203,DOC404
15
+
16
+ ### pydoclint options
17
+ style = sphinx
18
+ arg-type-hints-in-docstring = False
19
+ skip-checking-short-docstrings = False
20
+ skip-checking-raises = True
21
+ check-return-types = False
22
+ check-yield-types = False
23
+ check-class-attributes = False
24
+ check-style-mismatch = True
25
+ omit-stars-when-documenting-varargs = True
@@ -0,0 +1,497 @@
1
+ ### Configuration created for mypy==2.3.0
2
+
3
+ [mypy]
4
+
5
+ ### Import discovery
6
+ # Specifies the paths to use, after trying the paths from MYPYPATH environment
7
+ # variable. Useful if you’d like to keep stubs in your repo, along with the config file.
8
+ # Multiple paths are always separated with a : or , regardless of the platform.
9
+ # User home directory and environment variables will be expanded.
10
+ # Relative paths are treated relative to the working directory of the mypy command,
11
+ # not the config file.
12
+ # Use the MYPY_CONFIG_FILE_DIR environment variable to refer to paths relative to
13
+ # the config file (e.g. mypy_path = $MYPY_CONFIG_FILE_DIR/src).
14
+ # This option may only be set in the global section ([mypy]).
15
+ # Note: On Windows, use UNC paths to avoid using : (e.g. \\127.0.0.1\X$\MyDir where X is the drive letter).
16
+ #mypy_path =
17
+
18
+ # A comma-separated list of paths which should be checked by mypy if none are given on the command
19
+ # line. Supports recursive file globbing using glob, where * (e.g. *.py) matches
20
+ # files in the current directory and **/ (e.g. **/*.py) matches files in any directories below
21
+ # the current one. User home directory and environment variables will be expanded.
22
+ # This option may only be set in the global section ([mypy]).
23
+ files = .
24
+
25
+ # A comma-separated list of packages which should be checked by mypy if none are given on the command
26
+ # line. Mypy will not recursively type check any submodules of the provided
27
+ # module.
28
+ # This option may only be set in the global section ([mypy]).
29
+ #modules =
30
+
31
+ # A comma-separated list of packages which should be checked by mypy if none are given on the command
32
+ # line. Mypy will recursively type check any submodules of the provided
33
+ # package. This flag is identical to modules apart from this
34
+ # behavior.
35
+ # This option may only be set in the global section ([mypy]).
36
+ #packages =
37
+
38
+ # A regular expression that matches file names, directory names and paths
39
+ # which mypy should ignore while recursively discovering files to check.
40
+ # Use forward slashes (/) as directory separators on all platforms.
41
+ # Crafting a single regular expression that excludes multiple files while remaining
42
+ # human-readable can be a challenge. The above example demonstrates one approach.
43
+ # (?x) enables the VERBOSE flag for the subsequent regular expression, which
44
+ # ignores most whitespace and supports comments.
45
+ # The above is equivalent to: (^one\.py$|two\.pyi$|^three\.).
46
+ # For more details, see --exclude.
47
+ # This option may only be set in the global section ([mypy]).
48
+ #exclude =
49
+
50
+ # This flag will add everything that matches .gitignore file(s) to exclude.
51
+ # This option may only be set in the global section ([mypy]).
52
+ exclude_gitignore = False
53
+
54
+ # Enables PEP 420 style namespace packages. See the
55
+ # corresponding flag --no-namespace-packages
56
+ # for more information.
57
+ # This option may only be set in the global section ([mypy]).
58
+ namespace_packages = True
59
+
60
+ # This flag tells mypy that top-level packages will be based in either the
61
+ # current directory, or a member of the MYPYPATH environment variable or
62
+ # mypy_path config option. This option is only useful in
63
+ # the absence of __init__.py. See Mapping file
64
+ # paths to modules for details.
65
+ # This option may only be set in the global section ([mypy]).
66
+ explicit_package_bases = False
67
+
68
+ # Suppresses error messages about imports that cannot be resolved.
69
+ # If this option is used in a per-module section, the module name should
70
+ # match the name of the imported module, not the module containing the
71
+ # import statement.
72
+ ignore_missing_imports = False
73
+
74
+ # Makes mypy analyze imports from installed packages even if missing a
75
+ # py.typed marker or stubs.
76
+ # If this option is used in a per-module section, the module name should
77
+ # match the name of the imported module, not the module containing the
78
+ # import statement.
79
+ follow_untyped_imports = False
80
+
81
+ # Directs what to do with imports when the imported module is found
82
+ # as a .py file and not part of the files, modules and packages
83
+ # provided on the command line.
84
+ # The four possible values are normal, silent, skip and
85
+ # error. For explanations see the discussion for the
86
+ # --follow-imports command line flag.
87
+ # Using this option in a per-module section (potentially with a wildcard,
88
+ # as described at the top of this page) is a good way to prevent mypy from
89
+ # checking portions of your code.
90
+ # If this option is used in a per-module section, the module name should
91
+ # match the name of the imported module, not the module containing the
92
+ # import statement.
93
+ follow_imports = normal
94
+
95
+ # Determines whether to respect the follow_imports setting even for
96
+ # stub (.pyi) files.
97
+ # Used in conjunction with follow_imports=skip, this can be used
98
+ # to suppress the import of a module from typeshed, replacing it
99
+ # with Any.
100
+ # Used in conjunction with follow_imports=error, this can be used
101
+ # to make any use of a particular typeshed module an error.
102
+ follow_imports_for_stubs = False
103
+
104
+ # Specifies the path to the Python executable to inspect to collect
105
+ # a list of available PEP 561 packages. User
106
+ # home directory and environment variables will be expanded. Defaults to
107
+ # the executable used to run mypy.
108
+ # This option may only be set in the global section ([mypy]).
109
+ #python_executable =
110
+
111
+ # Disables using type information in installed packages (see PEP 561).
112
+ # This will also disable searching for a usable Python executable. This acts
113
+ # the same as --no-site-packages command
114
+ # line flag.
115
+ no_site_packages = False
116
+
117
+ # Enables reporting error messages generated within installed packages (see
118
+ # PEP 561 for more details on distributing type information). Those error
119
+ # messages are suppressed by default, since you are usually not able to
120
+ # control errors in 3rd party code.
121
+ # This option may only be set in the global section ([mypy]).
122
+ no_silence_site_packages = False
123
+
124
+
125
+ ### Platform configuration
126
+ # Specifies the Python version used to parse and check the target
127
+ # program. The string should be in the format MAJOR.MINOR –
128
+ # for example 3.10. The default is the version of the Python
129
+ # interpreter used to run mypy.
130
+ # This option may only be set in the global section ([mypy]).
131
+ #python_version =
132
+
133
+ # Specifies the OS platform for the target program, for example
134
+ # darwin or win32 (meaning OS X or Windows, respectively).
135
+ # The default is the current platform as revealed by Python’s
136
+ # sys.platform variable.
137
+ # This option may only be set in the global section ([mypy]).
138
+ #platform =
139
+
140
+ # Specifies a list of variables that mypy will treat as
141
+ # compile-time constants that are always true.
142
+ #always_true =
143
+
144
+ # Specifies a list of variables that mypy will treat as
145
+ # compile-time constants that are always false.
146
+ #always_false =
147
+
148
+
149
+ ### Disallow dynamic typing
150
+ # Disallows usage of types that come from unfollowed imports (anything imported from
151
+ # an unfollowed import is automatically given a type of Any).
152
+ disallow_any_unimported = False
153
+
154
+ # Disallows all expressions in the module that have type Any.
155
+ disallow_any_expr = False
156
+
157
+ # Disallows functions that have Any in their signature after decorator transformation.
158
+ disallow_any_decorated = False
159
+
160
+ # Disallows explicit Any in type positions such as type annotations and generic
161
+ # type parameters.
162
+ disallow_any_explicit = False
163
+
164
+ # Disallows usage of generic types that do not specify explicit type parameters.
165
+ disallow_any_generics = True
166
+
167
+ # Disallows subclassing a value of type Any.
168
+ disallow_subclassing_any = True
169
+
170
+
171
+ ### Untyped definitions and calls
172
+ # Disallows calling functions without type annotations from functions with type
173
+ # annotations. Note that when used in per-module options, it enables/disables
174
+ # this check inside the module(s) specified, not for functions that come
175
+ # from that module(s), for example config like this:
176
+ # will disable this check inside some.library, not for your code that
177
+ # imports some.library. If you want to selectively disable this check for
178
+ # all your code that imports some.library you should instead use
179
+ # untyped_calls_exclude, for example:
180
+ disallow_untyped_calls = True
181
+
182
+ # Selectively excludes functions and methods defined in specific packages,
183
+ # modules, and classes from action of disallow_untyped_calls.
184
+ # This also applies to all submodules of packages (i.e. everything inside
185
+ # a given prefix). Note, this option does not support per-file configuration,
186
+ # the exclusions list is defined globally for all your code.
187
+ #untyped_calls_exclude =
188
+
189
+ # Disallows defining functions without type annotations or with incomplete type
190
+ # annotations (a superset of disallow_incomplete_defs).
191
+ # For example, it would report an error for def f(a, b) and def f(a: int, b).
192
+ disallow_untyped_defs = True
193
+
194
+ # Disallows defining functions with incomplete type annotations, while still
195
+ # allowing entirely unannotated definitions.
196
+ # For example, it would report an error for def f(a: int, b) but not def f(a, b).
197
+ disallow_incomplete_defs = True
198
+
199
+ # Type-checks the interior of functions without type annotations.
200
+ check_untyped_defs = True
201
+
202
+ # Reports an error whenever a function with type annotations is decorated with a
203
+ # decorator without annotations.
204
+ disallow_untyped_decorators = True
205
+
206
+
207
+ ### None and Optional handling
208
+ # Causes mypy to treat parameters with a None
209
+ # default value as having an implicit optional type (T | None).
210
+ # Note: This was True by default in mypy versions 0.980 and earlier.
211
+ implicit_optional = False
212
+
213
+ # Effectively disables checking of optional
214
+ # types and None values. With this option, mypy doesn’t
215
+ # generally check the use of None values – it is treated
216
+ # as compatible with every type.
217
+ strict_optional = True
218
+
219
+
220
+ ### Configuring warnings
221
+ # Warns about casting an expression to its inferred type.
222
+ # This option may only be set in the global section ([mypy]).
223
+ warn_redundant_casts = True
224
+
225
+ # Warns about unneeded # type: ignore comments.
226
+ warn_unused_ignores = True
227
+
228
+ # Shows errors for missing return statements on some execution paths.
229
+ warn_no_return = True
230
+
231
+ # Shows a warning when returning a value with type Any from a function
232
+ # declared with a non- Any return type.
233
+ warn_return_any = True
234
+
235
+ # Shows a warning when encountering any code inferred to be unreachable or
236
+ # redundant after performing type analysis.
237
+ warn_unreachable = True
238
+
239
+ # Selectively excludes functions and methods defined in specific packages,
240
+ # modules, and classes from the deprecated error code.
241
+ # This also applies to all submodules of packages (i.e. everything inside
242
+ # a given prefix). Note, this option does not support per-file configuration,
243
+ # the exclusions list is defined globally for all your code.
244
+ #deprecated_calls_exclude =
245
+
246
+
247
+ ### Suppressing errors
248
+ # Ignores all non-fatal errors.
249
+ ignore_errors = False
250
+
251
+
252
+ ### Miscellaneous strictness flags
253
+ # Causes mypy to suppress errors caused by not being able to fully
254
+ # infer the types of global and class variables.
255
+ allow_untyped_globals = False
256
+
257
+ # By default, mypy won’t allow a variable to be redefined with an
258
+ # unrelated type. This flag enables the redefinition of unannotated
259
+ # variables with an arbitrary type. This also requires
260
+ # local_partial_types, which is enabled by default starting
261
+ # from mypy 2.0. Example:
262
+ # This also enables an unannotated variable to have different types in different
263
+ # code locations:
264
+ # Function arguments are special, changing their type within function body
265
+ # is allowed even if they are annotated, but that annotation is used to infer
266
+ # types of r.h.s. of all subsequent assignments. Such middle-ground semantics
267
+ # provides good balance for majority of common use cases. For example:
268
+ # Note: We are planning to turn this flag on by default in a future mypy
269
+ # release.
270
+ allow_redefinition = False
271
+
272
+ # Deprecated alias for allow_redefinition.
273
+ allow_redefinition_new = False
274
+
275
+ # Allows variables to be redefined with an arbitrary type, as long as the redefinition
276
+ # is in the same block and nesting level as the original definition.
277
+ # Example where this can be useful:
278
+ # The variable must be used before it can be redefined:
279
+ allow_redefinition_old = False
280
+
281
+ # This prevents inferring a variable type from an empty container (such as a list or
282
+ # a dictionary) created at module top level or class body and updated in
283
+ # a function. This must be enabled when using the mypy daemon.
284
+ local_partial_types = True
285
+
286
+ # Allows disabling one or multiple error codes globally.
287
+ #disable_error_code =
288
+
289
+ # Allows enabling one or multiple error codes globally.
290
+ # Note: This option will override disabled error codes from the disable_error_code option.
291
+ #enable_error_code =
292
+
293
+ # This flag enables additional checks that are technically correct but may be impractical.
294
+ # See mypy --extra-checks for more info.
295
+ extra_checks = True
296
+
297
+ # By default, imported values to a module are treated as exported and mypy allows
298
+ # other modules to import them. When false, mypy will not re-export unless
299
+ # the item is imported using from-as or is included in __all__. Note that mypy
300
+ # treats stub files as if this is always disabled. For example:
301
+ implicit_reexport = False
302
+
303
+ # Prohibit equality checks, identity checks, and container checks between
304
+ # non-overlapping types (except None).
305
+ strict_equality = True
306
+
307
+ # Include None in strict equality checks (requires strict_equality
308
+ # to be activated).
309
+ strict_equality_for_none = False
310
+
311
+ # If disabled, mypy treats bytearray and memoryview as subtypes of bytes.
312
+ # This has been enabled by default since mypy 2.0.
313
+ strict_bytes = True
314
+
315
+ # Enable all optional error checking flags. You can see the list of
316
+ # flags enabled by strict mode in the full mypy --help
317
+ # output.
318
+ # Note: the exact list of flags enabled by strict may
319
+ # change over time.
320
+ strict = True
321
+
322
+
323
+ ### Configuring error messages
324
+ # Prefixes each error with the relevant context.
325
+ show_error_context = False
326
+
327
+ # Shows column numbers in error messages.
328
+ show_column_numbers = False
329
+
330
+ # Shows documentation link to corresponding error code.
331
+ show_error_code_links = False
332
+
333
+ # Hides error codes in error messages. See Error codes for more information.
334
+ hide_error_codes = False
335
+
336
+ # Use visually nicer output in error messages: use soft word wrap,
337
+ # show source code snippets, and show error location markers.
338
+ pretty = False
339
+
340
+ # Shows error messages with color enabled.
341
+ color_output = True
342
+
343
+ # Shows a short summary line after error messages.
344
+ error_summary = True
345
+
346
+ # Show absolute paths to files.
347
+ show_absolute_path = False
348
+
349
+
350
+ ### Incremental mode
351
+ # Enables incremental mode.
352
+ incremental = True
353
+
354
+ # Specifies the location where mypy stores incremental cache info.
355
+ # User home directory and environment variables will be expanded.
356
+ # This setting will be overridden by the MYPY_CACHE_DIR environment
357
+ # variable.
358
+ # Note that the cache is only read when incremental mode is enabled
359
+ # but is always written to, unless the value is set to /dev/null
360
+ # (UNIX) or nul (Windows).
361
+ cache_dir = .mypy_cache
362
+
363
+ # Use an SQLite database to store the cache.
364
+ sqlite_cache = True
365
+
366
+ # Include fine-grained dependency information in the cache for the mypy daemon.
367
+ cache_fine_grained = False
368
+
369
+ # Makes mypy use incremental cache data even if it was generated by a
370
+ # different version of mypy. (By default, mypy will perform a version
371
+ # check and regenerate the cache if it was written by older versions of mypy.)
372
+ skip_version_check = False
373
+
374
+ # Skip cache internal consistency checks based on mtime.
375
+ skip_cache_mtime_checks = False
376
+
377
+
378
+ ### Parallel type-checking configuration
379
+ # Use specific number of parallel worker processes for type-checking, see
380
+ # parallel type-checking for more details.
381
+ # This setting will be overridden by the MYPY_NUM_WORKERS environment
382
+ # variable.
383
+ num_workers = 0
384
+
385
+
386
+ ### Advanced options
387
+ # A comma-separated list of mypy plugins. See Extending mypy using plugins.
388
+ #plugins =
389
+
390
+ # Invokes pdb on fatal error.
391
+ pdb = False
392
+
393
+ # Shows traceback on fatal error.
394
+ show_traceback = False
395
+
396
+ # Raise exception on fatal error.
397
+ raise_exceptions = False
398
+
399
+ # Specifies a custom module to use as a substitute for the typing module.
400
+ #custom_typing_module =
401
+
402
+ # This specifies the directory where mypy looks for standard library typeshed
403
+ # stubs, instead of the typeshed that ships with mypy. This is
404
+ # primarily intended to make it easier to test typeshed changes before
405
+ # submitting them upstream, but also allows you to use a forked version of
406
+ # typeshed.
407
+ # User home directory and environment variables will be expanded.
408
+ # Note that this doesn’t affect third-party library stubs. To test third-party stubs,
409
+ # for example try MYPYPATH=stubs/six mypy ....
410
+ #custom_typeshed_dir =
411
+
412
+ # Warns about missing type annotations in typeshed. This is only relevant
413
+ # in combination with disallow_untyped_defs or disallow_incomplete_defs.
414
+ warn_incomplete_stub = True
415
+
416
+ # This enables fast Rust-based parser that parses directly to mypy AST.
417
+ # It will become the default parser in one of the next mypy releases.
418
+ native_parser = False
419
+
420
+
421
+ ### Report generation
422
+ # Causes mypy to generate a text file report documenting how many
423
+ # expressions of type Any are present within your codebase.
424
+ #any_exprs_report =
425
+
426
+ # Causes mypy to generate a Cobertura XML type checking coverage report.
427
+ # To generate this report, you must either manually install the lxml
428
+ # library or specify mypy installation with the setuptools extra
429
+ # mypy[reports].
430
+ #cobertura_xml_report =
431
+
432
+ # Causes mypy to generate an HTML type checking coverage report.
433
+ # To generate this report, you must either manually install the lxml
434
+ # library or specify mypy installation with the setuptools extra
435
+ # mypy[reports].
436
+ #html_report / xslt_html_report =
437
+
438
+ # Causes mypy to generate a text file report documenting the functions
439
+ # and lines that are typed and untyped within your codebase.
440
+ #linecount_report =
441
+
442
+ # Causes mypy to generate a JSON file that maps each source file’s
443
+ # absolute filename to a list of line numbers that belong to typed
444
+ # functions in that file.
445
+ #linecoverage_report =
446
+
447
+ # Causes mypy to generate a flat text file report with per-module
448
+ # statistics of how many lines are typechecked etc.
449
+ #lineprecision_report =
450
+
451
+ # Causes mypy to generate a text file type checking coverage report.
452
+ # To generate this report, you must either manually install the lxml
453
+ # library or specify mypy installation with the setuptools extra
454
+ # mypy[reports].
455
+ #txt_report / xslt_txt_report =
456
+
457
+ # Causes mypy to generate an XML type checking coverage report.
458
+ # To generate this report, you must either manually install the lxml
459
+ # library or specify mypy installation with the setuptools extra
460
+ # mypy[reports].
461
+ #xml_report =
462
+
463
+
464
+ ### Miscellaneous
465
+ # Causes mypy to generate a JUnit XML test result document with
466
+ # type checking results. This can make it easier to integrate mypy
467
+ # with continuous integration (CI) tools.
468
+ #junit_xml =
469
+
470
+ # If junit_xml is set, specifies format.
471
+ # global (default): single test with all errors;
472
+ # per_file: one test entry per file with failures.
473
+ junit_format = global
474
+
475
+ # Makes script x become module x instead of __main__. This is
476
+ # useful when checking multiple scripts in a single run.
477
+ scripts_are_modules = False
478
+
479
+ # Warns about per-module sections in the config file that do not
480
+ # match any files processed when invoking mypy.
481
+ # (This requires turning off incremental mode using incremental = False.)
482
+ warn_unused_configs = True
483
+
484
+ # Controls how much debug output will be generated. Higher numbers are more verbose.
485
+ verbosity = 0
486
+
487
+
488
+ # This section should only define values that are different than in global section
489
+ [mypy-tests.*]
490
+ disallow_untyped_defs = False
491
+ disallow_incomplete_defs = False
492
+
493
+
494
+ # Conftests should be checked in the same manner as production code, so they revert `tests.*` overwrites
495
+ [mypy-tests.*.conftest]
496
+ disallow_untyped_defs = True
497
+ disallow_incomplete_defs = True
@@ -0,0 +1,15 @@
1
+ [pytest]
2
+ logot_capturer = logot.loguru.LoguruCapturer
3
+
4
+ testpaths =
5
+ tests
6
+
7
+ addopts =
8
+ --cov src
9
+ --cov-report html:coverage-report
10
+ --cov-report term:skip-covered
11
+ --cov-fail-under=0
12
+ --no-cov-on-fail
13
+ -Werror
14
+ -Wignore::ImportWarning
15
+ --strict-markers