-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
219 lines (197 loc) · 3.9 KB
/
pyproject.toml
File metadata and controls
219 lines (197 loc) · 3.9 KB
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
[tool.poetry]
name = 'Encrypter'
version = '0.0.4-alpha'
description = 'Secure offline password vault using modern cryptographically secure hashing and encryption algorithms'
license = 'AGPL-3.0-only'
readme = 'README.md'
authors = ['VoidTwo']
repository = 'https://github.com/VoidTwo/Encrypter'
packages = [{include = 'encrypter'}]
[tool.poetry.dependencies]
python = '3.11.*'
cryptography = '38.*' # https://github.com/pyca/cryptography
orjson = '3.*' # https://github.com/ijl/orjson
[tool.poetry.dev-dependencies]
bandit = {version = '*', extras = ['toml']}
black = '*'
flake8 = '*'
mypy = '*'
pip = '*'
setuptools = '*'
# Black will not be used for formatting code in this project.
# It is more of a guide for finding good formatting recommendations
# amongst the vast heavily-opinionated formatting guides.
[tool.black]
line_length = 120
target_version = ['py311']
pyi = false
ipynb = false
skip_string_normalization = true # Prefer single quotes
skip_magic_trailing_comma = false
diff = true
color = true
safe = true
exclude = '^/(?:\.git|\.idea|\.mypy_cache|\.venv|__pycache__)'
include = '\.py$'
workers = 2
quiet = false
verbose = true
[tool.mypy]
mypy_path = '$MYPY_CONFIG_FILE_DIR'
exclude = [
'.git',
'.idea',
'.mypy_cache',
'.venv',
'__pycache__'
]
files = [
'encrypter/*.py'
]
python_version = '3.11'
follow_imports = 'skip'
follow_imports_for_stubs = false
no_site_packages = true
no_silence_site_packages = false
disable_error_code = ['import']
# Disallow dynamic typing
disallow_any_unimported = false
disallow_any_expr = false
disallow_any_decorated = false
disallow_any_explicit = false
disallow_any_generics = false
disallow_subclassing_any = false
# Untyped definitions and calls
disallow_untyped_calls = true
disallow_untyped_defs = true
disallow_incomplete_defs = true
check_untyped_defs = true
disallow_untyped_decorators = false
# None and Optional handling
no_implicit_optional = true
strict_optional = true
# Configuring warnings
warn_redundant_casts = true
warn_unused_ignores = true
warn_no_return = true
warn_return_any = true
warn_unreachable = true
# Suppressing errors
ignore_errors = false
# Miscellaneous strictness flags
allow_untyped_globals = false
allow_redefinition = false
local_partial_types = true
implicit_reexport = false
strict_concatenate = false
strict_equality = false
strict = false
# Configuring error messages
show_error_context = true
show_column_numbers = true
show_error_codes = true
pretty = true
color_output = true
error_summary = true
show_absolute_path = false
# Incremental mode
incremental = true
sqlite_cache = false
cache_fine_grained = false
skip_version_check = false
skip_cache_mtime_checks = false
# Advanced options
pdb = false
show_traceback = true
raise_exceptions = true
warn_incomplete_stub = true
# Miscellaneous
scripts_are_modules = false
warn_unused_configs = false
verbosity = 0
[tool.bandit]
exclude_dirs = [
'.git',
'.idea',
'.mypy_cache',
'.venv',
'__pycache__'
]
targets = [
'encrypter/*.py'
]
tests = [
'B101',
'B102',
'B103',
'B104',
'B105',
'B106',
'B107',
'B108',
'B110',
'B112',
# 'B113', # Bandit v1.7.5
'B201',
# 'B202', # Bandit v1.7.5
'B301',
'B302',
'B303',
'B304',
'B305',
'B306',
'B307',
'B308',
'B310',
'B311',
'B312',
'B313',
'B314',
'B315',
'B316',
'B317',
'B318',
'B319',
'B320',
'B321',
'B323',
'B324',
'B401',
'B402',
'B403',
'B404',
'B405',
'B406',
'B407',
'B408',
'B409',
'B410',
'B411',
'B412',
'B413',
'B415',
'B501',
'B502',
'B503',
'B504',
'B505',
'B506',
'B507',
'B508',
'B509',
'B601',
'B602',
'B603',
'B604',
'B605',
'B606',
'B607',
'B608',
'B609',
'B610',
'B611',
# 'B612', # Bandit v1.7.5
'B701',
'B702',
'B703'
]