-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
1168 lines (904 loc) · 21.2 KB
/
pyproject.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
[tool.poetry]
name = "Vigenere-API"
version = "2.0.0"
description = """\
The project provides an API to use cipher, decipher and decrypt method with the Vigenere algorithm.\
The Caesar algorithm is provided for the cipher method and decipher method.\
"""
authors = ["Axel DAVID <[email protected]>"]
readme = "README.md"
license = "GPL-3.0-or-later"
packages = [{ include = "vigenere_api", from = "src" }]
homepage = "https://etulab.univ-amu.fr/d19006523/vigenere-api"
repository = "https://etulab.univ-amu.fr/d19006523/vigenere-api"
keywords = ["vigenere", "caesar", "API", "Python"]
include = ["CHANGELOG.md", "INSTALL.md"]
[tool.poetry.dependencies]
python = "^3.9"
blacksheep = "^1"
uvicorn = { extras = ["standard"], version = "^0" }
pydantic = "^1"
strenum = "^0"
[tool.poetry.group.formatter.dependencies]
black = "^24"
isort = "^5"
[tool.poetry.group.linter.dependencies]
bandit = { extras = ["toml"], version = "^1" }
pycodestyle = "^2"
pydocstyle = { extras = ["toml"], version = "^6" }
pylint = "^2"
pylint-secure-coding-standard = "^1"
pylint-pydantic = "^0"
pylint-enums = "^0"
ruff = "^0"
interrogate = "^1"
deptry = "^0"
mypy = { extras = ["reports"], version = "^1" }
vulture = "^2"
safety = "^2.4.0b1"
# Dependencies requests fixed to 2.31 and upper because safety does not fix the required version
# Version lower than 2.31 has two CVE problem
requests = "^2.32"
dodgy = "^0"
yamllint = "^1"
[tool.poetry.group.test.dependencies]
coverage = { extras = ["toml"], version = "^7" }
pytest = "^7"
pytest-asyncio = "^0"
pytest-cov = "^4"
pytest-raises = "^0"
pytest-integration = "^0"
pytest-timer = "^0"
[tool.poetry.urls]
"Bug Tracker" = "https://etulab.univ-amu.fr/d19006523/vigenere-api/issues"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.interrogate]
ignore-init-method = false
ignore-init-module = false
ignore-magic = false
ignore-semiprivate = false
ignore-private = false
ignore-property-decorators = false
ignore-module = false
ignore-nested-functions = false
ignore-nested-classes = false
ignore-setters = false
fail-under = 95
exclude = ["build", "**/.pyi"]
verbose = 0
quiet = false
color = true
omit-covered-files = false
[tool.vulture]
exclude = []
sort_by_size = true
ignore_decorators = [
"@get",
"@post",
"@docs",
"@validtor"
]
ignore_names = [
"cls",
"version",
"class_name",
"on_docs_generated",
"validate_*",
"debug",
"show_error_details",
"tags",
]
min_confidence = 80
[tool.ruff]
target-version = "py39"
select = [
"A",
"ANN",
"ARG",
"B",
"BLE",
"C",
"COM",
"C4",
"C90",
"D",
"DTZ",
"E",
"EM",
"ERA",
"EXE",
"F",
"FBT",
"G",
"I",
"ICN",
"INP",
"INT",
"ISC",
"N",
"NPY",
"PGH",
"PIE",
"PL",
"PLE",
"PLR",
"PLW",
"PT",
"PTH",
"PYI",
"Q",
"RET",
"RSE",
"RUF",
"S",
"SIM",
"SLF",
"TCH",
"TID",
"TRY",
"T10",
"T20",
"UP",
"W",
"YTT",
]
extend-select = []
external = []
allowed-confusables = []
builtins = []
cache-dir = ".ruff_cache"
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
extend-exclude = [
".bzr",
".direnv",
".eggs",
".git",
".hg",
".mypy_cache",
".nox",
".pants.d",
".pytype",
".ruff_cache",
".svn",
".tox",
".venv",
"__pypackages__",
"_build",
"buck-out",
"build",
"dist",
"node_modules",
"venv",
"*.pyi",
]
force-exclude = true
respect-gitignore = true
extend-ignore = [
# Isort sort imports in a different way
"I001",
# Disable typing for self and cls
"ANN101", # flake8 Disable typing of self
"ANN102", # flake8 Disable typing for cls
"ANN401", # flake8 Disable warning for use of type Any
# Disable violation for explicit string concatenation
"ISC003",
# Pylint warning : no line between the docstring and function
"D202", # pydocstyle No line between the docstring and start of function
# Numpy convention from pydocstyle site https://www.pydocstyle.org/en/stable/error_codes.html#default-conventions
"D203", # pydocstyle 1 line before the class docstring
"D212", # pydocstyle Multi-line summary should start the first line
"D213", # pydocstyle Multi-line summary should start the second line
"D402", # pydocstyle First line should not be the function's signature
"D413", # pydocstyle Missing blank line after the last section
"D415", # pydocstyle First line should end with a period
"D416", # pydocstyle Section name should end with a colon
"D417", # pydocstyle Missing argument description in the docstring
# Disable upgrade to python3.10
"UP007",
]
per-file-ignores = { }
fix = false
fix-only = false
show-fixes = true
unfixable = []
format = "grouped"
ignore-init-module-imports = true
line-length = 88
show-source = true
namespace-packages = []
src = ["src"]
typing-modules = []
task-tags = ["TODO", "FIXME"]
[tool.ruff.flake8-annotations]
allow-star-arg-any = false
ignore-fully-untyped = false
mypy-init-return = false
suppress-dummy-args = false
suppress-none-returning = false
[tool.ruff.flake8-bandit]
check-typed-exception = true
hardcoded-tmp-directory-extend = []
[tool.ruff.flake8-bugbear]
extend-immutable-calls = []
[tool.ruff.flake8-builtins]
builtins-ignorelist = []
[tool.ruff.flake8-comprehensions]
allow-dict-calls-with-keyword-arguments = false
[tool.ruff.flake8-errmsg]
max-string-length = 20
[tool.ruff.flake8-implicit-str-concat]
allow-multiline = false
[tool.ruff.flake8-import-conventions]
extend-aliases = { }
[tool.ruff.flake8-pytest-style]
fixture-parentheses = true
mark-parentheses = true
parametrize-names-type = "tuple"
parametrize-values-row-type = "tuple"
parametrize-values-type = "list"
raises-extend-require-match-for = []
[tool.ruff.flake8-quotes]
avoid-escape = true
docstring-quotes = "double"
inline-quotes = "double"
multiline-quotes = "double"
[tool.ruff.flake8-tidy-imports]
ban-relative-imports = "parents"
[tool.ruff.flake8-type-checking]
exempt-modules = ["typing", "typing_extensions", "pydantic"]
strict = true
[tool.ruff.flake8-unused-arguments]
ignore-variadic-names = false
[tool.ruff.isort]
classes = []
constants = []
variables = []
combine-as-imports = true
force-single-line = false
force-sort-within-sections = false
force-to-top = []
force-wrap-aliases = false
forced-separate = []
extra-standard-library = []
known-first-party = []
known-local-folder = []
known-third-party = []
lines-after-imports = 2
lines-between-types = 0
no-lines-before = []
order-by-type = true
relative-imports-order = "furthest-to-closest"
required-imports = []
single-line-exclusions = []
split-on-trailing-comma = true
[tool.ruff.mccabe]
max-complexity = 10
[tool.ruff.pep8-naming]
classmethod-decorators = ["classmethod", "pydantic.validator", "validator"]
staticmethod-decorators = []
[tool.ruff.pycodestyle]
ignore-overlong-task-comments = false
max-doc-length = 88
[tool.ruff.pydocstyle]
convention = "numpy"
ignore-decorators = []
property-decorators = []
[tool.ruff.pylint]
allow-magic-value-types = []
max-args = 6
max-branches = 12
max-returns = 4
max-statements = 50
[tool.ruff.pyupgrade]
keep-runtime-typing = false
[tool.pylint.main]
init-hook = 'import sys; sys.path.append(".")'
jobs = 0
py-version = [3, 9]
analyse-fallback-blocks = false
clear-cache-post-run = false
confidence = []
disable = []
fail-under = 10
limit-inference-results = 100
ignore-patterns = []
output-format = "colorized"
persistent = true
recursive = false
reports = false
score = true
suggestion-mode = true
source-roots = ["src"]
unsafe-load-any-extension = false
extension-pkg-allow-list = [
"pydantic"
]
load-plugins = [
"pylint.extensions.bad_builtin",
"pylint.extensions.broad_try_clause",
"pylint.extensions.check_elif",
"pylint.extensions.code_style",
"pylint.extensions.comparison_placement",
"pylint.extensions.confusing_elif",
"pylint.extensions.consider_refactoring_into_while_condition",
"pylint.extensions.consider_ternary_expression",
"pylint.extensions.dict_init_mutate",
"pylint.extensions.docparams",
"pylint.extensions.dunder",
"pylint.extensions.empty_comment",
"pylint.extensions.emptystring",
"pylint.extensions.eq_without_hash",
"pylint.extensions.for_any_all",
"pylint.extensions.magic_value",
"pylint.extensions.mccabe",
"pylint.extensions.no_self_use",
"pylint.extensions.overlapping_exceptions",
"pylint.extensions.private_import",
"pylint.extensions.redefined_loop_name",
"pylint.extensions.redefined_variable_type",
"pylint.extensions.set_membership",
"pylint.extensions.typing",
"pylint.extensions.while_used",
"pylint_pydantic",
"pylint_enums",
"pylint_secure_coding_standard",
]
[tool.pylint.basic]
argument-naming-style = "snake_case"
argument-rgx = "^_{0,2}[a-z0-9_]*$"
attr-naming-style = "snake_case"
attr-rgx = "^_{0,2}[a-z0-9_]*$"
bad-names = ["foo", "bar", "baz", "toto", "tutu", "tata"]
good-names = ["i", "j", "k", "_", "__"]
class-attribute-naming-style = "snake_case"
class-attribute-rgx = "^_{0,2}[a-z0-9_]*$"
class-const-naming-style = "UPPER_CASE"
class-const-rgx = "^_{0,2}[A-Z0-9_]*$"
class-naming-style = "PascalCase"
class-rgx = "^[A-Z][a-zA-Z]*$"
method-naming-style = "snake_case"
method-rgx = "^_{0,2}[a-z0-9_]*$"
const-naming-style = "UPPER_CASE"
const-rgx = "^_{0,2}[A-Z0-9_]*$"
variable-naming-style = "snake_case"
variable-rgx = "^_{0,2}[a-z0-9_]*$"
docstring-min-length = 1
function-naming-style = "snake_case"
include-naming-hint = true
inlinevar-naming-style = "any"
#inlinevar-rgx = ""
module-naming-style = "snake_case"
module-rgx = "^_{0,2}[a-z][a-z0-9_]*$"
no-docstring-rgx = ""
property-classes = []
[tool.pylint.classes]
check-protected-access-in-special-methods = true
defining-attr-methods = [
"__init__",
"__new__",
]
exclude-protected = []
valid-classmethod-first-arg = ["cls"]
valid-metaclass-classmethod-first-arg = ["mcs"]
[tool.pylint.design]
exclude-too-few-public-methods = []
ignored-parents = []
max-bool-expr = 5
max-branches = 12
max-complexity = 10
max-parents = 7
max-args = 6
max-locals = 15
max-returns = 4
max-statements = 50
max-attributes = 7
max-public-methods = 20
min-public-methods = 2
[tool.pylint.exceptions]
overgeneral-exceptions = ["builtins.BaseException", "builtins.Exception"]
[tool.pylint.format]
expected-line-ending-format = "LF"
ignore-long-lines = "^\\s*(# )?<?https?://\\S+>?$"
indent-after-paren = 4
indent-string = " "
max-line-length = 88
max-module-lines = 300
single-line-class-stmt = false
single-line-if-stmt = false
[tool.pylint.imports]
allow-any-import-level = []
allow-reexport-from-package = false
allow-wildcard-with-all = false
deprecated-modules = []
known-standard-library = []
known-third-party = []
preferred-modules = []
[tool.pylint.logging]
logging-format-style = "new"
logging-modules = ["logging"]
[tool.pylint.method_args]
timeout-methods = [
"requests.api.delete",
"requests.api.get",
"requests.api.head",
"requests.api.options",
"requests.api.patch",
"requests.api.post",
"requests.api.put",
"requests.api.request"
]
[tool.pylint.miscellaneous]
notes = ["FIXME", "TODO"]
[tool.pylint.refactoring]
max-nested-blocks = 5
never-returning-functions = ["sys.exit", "argparse.parse_error"]
[tool.pylint.similarities]
ignore-comments = true
ignore-docstrings = true
ignore-imports = true
ignore-signatures = true
min-similarity-lines = 4
[tool.pylint.spelling]
max-spelling-suggestions = 4
spelling-dict = ""
spelling-ignore-comment-directives = "fmt: on,fmt: off,noqa:,noqa,nosec,isort:skip,mypy:"
spelling-ignore-words = ""
spelling-private-dict-file = ""
spelling-store-unknown-words = false
[tool.pylint.string]
check-quote-consistency = true
check-str-concat-over-line-jumps = true
[tool.pylint.typecheck]
contextmanager-decorators = ["contextlib.contextmanager"]
generated-members = []
ignore-mixin-members = true
ignore-none = true
ignore-on-opaque-inference = true
ignored-checks-for-mixins = [
"no-member",
"not-async-context-manager",
"not-context-manager",
"attribute-defined-outside-init"
]
ignored-classes = [
"optparse.Values",
"thread._local",
"_thread._local",
"argparse.Namespace"
]
missing-member-hint = true
missing-member-hint-distance = 1
missing-member-max-choices = 1
mixin-class-rgx = "^.*[Mm]ixin$"
signature-mutators = []
[tool.pylint.variables]
additional-builtins = []
allow-global-unused-variables = true
allowed-redefined-builtins = []
callbacks = ["cb_", "_cb"]
dummy-variables-rgx = "_+$|(_[a-zA-Z0-9_]*[a-zA-Z0-9]+?$)|dummy|^ignored_|^unused_"
ignored-argument-names = "_.*|^ignored_|^unused_"
init-import = true
redefining-builtins-modules = [
"six.moves",
"past.builtins",
"future.builtins",
"builtins",
"io"
]
[tool.pylint.broad_try_clause]
max-try-statements = 1
[tool.pylint.code_style]
max-line-length-suggestions = 88
[tool.pylint.deprecated_builtins]
bad-functions = ["print", "map", "filter"]
[tool.pylint.dunder]
good-dunder-names = []
[tool.pylint.magic-value]
valid-magic-values = [
"0", "-1", "1", "100", "2", "3", "4", "5",
"",
"__main__"
]
[tool.pylint.parameter_documentation]
accept-no-param-doc = false
accept-no-raise-doc = false
accept-no-return-doc = false
accept-no-yields-doc = false
default-docstring-type = "numpy"
[tool.pylint.typing]
runtime-typing = true
[tool.pylint.plugins]
# Secure Coding Standard
os-open-mode = true
os-mkdir-mode = true
os-mkfifo-mode = true
os-mknod-mode = true
[tool.mypy]
python_version = "3.9"
namespace_packages = true
explicit_package_bases = false
plugins = [
"pydantic.mypy",
]
ignore_missing_imports = false
follow_imports = "normal"
follow_imports_for_stubs = true
no_site_packages = false
no_silence_site_packages = false
disallow_any_unimported = true
disallow_any_expr = false
disallow_any_decorated = false
disallow_any_explicit = false
disallow_any_generics = true
disallow_subclassing_any = true
disallow_untyped_calls = true
disallow_untyped_defs = true
disallow_incomplete_defs = true
check_untyped_defs = true
disallow_untyped_decorators = true
implicit_optional = false
strict_optional = true
warn_redundant_casts = true
warn_unused_ignores = true
warn_no_return = true
warn_return_any = true
warn_unreachable = true
ignore_errors = false
allow_untyped_globals = false
allow_redefinition = false
local_partial_types = false
implicit_reexport = false
strict_concatenate = true
strict_equality = true
strict = true
show_error_context = true
show_column_numbers = true
hide_error_codes = false
pretty = false
color_output = true
error_summary = true
show_absolute_path = true
incremental = true
cache_dir = ".mypy_cache"
sqlite_cache = true
cache_fine_grained = false
skip_version_check = false
skip_cache_mtime_checks = false
pdb = false
show_traceback = true
raise_exceptions = false
warn_incomplete_stub = true
[tool.pydantic-mypy]
init_forbid_extra = true
init_typed = true
warn_required_dynamic_aliases = true
warn_untyped_fields = true
[tool.isort]
profile = "black"
py_version = "39"
extend_skip = []
extend_skip_glob = []
skip_gitignore = true
line_ending = "\n"
no_sections = false
known_third_party = []
known_first_party = []
known_local_folder = []
extra_standard_library = []
forced_separate = []
length_sort = false
length_sort_straight = false
length_sort_sections = []
reverse_relative = false
force_single_line = false
single_line_exclusions = []
balanced_wrapping = false
order_by_type = true
atomic = true
lines_before_imports = 1
lines_after_imports = 2
lines_between_sections = 1
lines_between_types = 0
combine_as_imports = true
combine_star = true
from_first = false
verbose = false
quiet = false
force_adds = false
force_alphabetical_sort_within_sections = true
force_alphabetical_sort = false
force_sort_within_sections = false
lexicographical = false
group_by_package = true
ignore_whitespace = false
no_lines_before = []
no_inline_sort = false
ignore_comments = false
case_sensitive = false
virtual_env = ".venv"
honor_noqa = true
src_paths = "src"
old_finders = false
remove_redundant_aliases = true
float_to_top = false
filter_files = false
color_output = true
treat_comments_as_code = []
treat_all_comments_as_code = false
constants = []
classes = []
variables = []
dedup_headings = false
only_sections = false
only_modified = true
combine_straight_imports = false
auto_identify_namespace_packages = true
namespace_packages = []
follow_links = true
indented_import_headings = true
honor_case_in_force_sorted_sections = true
sort_relative_in_force_sorted_sections = false
overwrite_in_place = false
reverse_sort = false
star_first = true
sort_order = "natural"
[tool.black]
quiet = false
verbose = false
line-length = 88
target-version = ["py39"]
color = true
[tool.pydocstyle]
convention = "numpy"
add_select = []
match = "^.*.py$"
#match_dir = ""
ignore_decorators = []
ignore_self_only_init = true
[tool.bandit]
targets = ["src", "tests"]
skips = []
tests = [
# Divers tests checks
"B101",
"B102",
"B103",
"B104",
"B105",
"B106",
"B107",
"B108",
"B110",
"B112",
"B113",
# Bad configuration of frameworks checks
"B201",
"B202",
# Blacklist of function calls checks
"B301",
"B302",
"B303",
"B304",
"B305",
"B306",
"B307",
"B308",
"B309",
"B310",
"B311",
"B312",
"B313",
"B314",
"B315",
"B316",
"B317",
"B318",
"B319",
"B320",
"B321",
"B322",
"B323",
"B324",
"B325",
# Blacklist importations checks
"B401",
"B402",
"B403",
"B404",
"B405",
"B406",
"B407",
"B408",
"B409",
"B410",
"B411",
"B412",
"B413",
"B414",
"B415",
# Cryptographic checks
"B501",
"B502",
"B503",
"B504",
"B505",
"B506",
"B507",
"B508",
"B509",
# Injection checks
"B601",
"B602",
"B603",
"B604",
"B605",
"B606",
"B607",
"B608",
"B609",
"B610",
"B611",
"B612",
# XSS checks
"B701",
"B702",
"B703",
]
blacklist = []
[tool.bandit.assert_used]
skips = ["*_test.py", "test_*.py"]
[tool.bandit.hardcoded_tmp_directory]
tmp_dirs = ["/tmp", "/var/tmp", "/dev/shm"]
[tool.bandit.try_except_pass]
check_typed_exception = true
[tool.bandit.try_except_continue]
check_typed_exception = true
[tool.bandit.ssl_with_bad_version]
bad_protocol_versions = [
"PROTOCOL_SSLv2",
"SSLv2_METHID",
"SSLv23_METHOD",
"PROTOCOL_SSLv3",
"PROTOCOL_TLSv1",
"SSLv3_METHOD",
"TLSv1_METHOD",
]
[tool.bandit.shell_injection]
wrappers = []
subprocess = [
"subprocess.Popen",
"subprocess.call",
"subprocess.check_call",
"subprocess.check_output",
"execute_with_timeout",
]
shell = [
"os.system",
"os.popen",