-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathpyproject.toml
More file actions
53 lines (49 loc) · 1.07 KB
/
pyproject.toml
File metadata and controls
53 lines (49 loc) · 1.07 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
[tool.bandit]
exclude_dirs = ['test']
skips = [
'B104', # we intendedly bind to `0.0.0.0` in productive environments only
'B105', # we do not hardcode passwords
'B202', # false-positive: we do pass a filter to tar.extractall
'B301', # we do not use pickle for untrusted inputs
'B311', # we know when not to use pseudo-random number generators
'B403', # we do not use pickle for untrusted inputs
'B404', # we know how to call subprocesses
'B413', # false-positive: we do not use pyCrypto, but pycryptodome
'B603', # we know how to call subprocesses
]
[tool.ruff]
line-length = 101 # be consistent with cc-utils
[tool.ruff.format]
quote-style = 'single'
indent-style = 'space'
docstring-code-format = true
line-ending = 'lf'
skip-magic-trailing-comma = false # allow one parameter per line
[tool.ruff.lint]
preview = true
select = [
'E101',
'E117',
'E201',
'E202',
'E203',
'E225',
'E251',
'E3',
'E4',
'E5',
'E701',
'E703',
'E711',
'E713',
'E714',
'E721',
'E741',
'E9',
'W1',
'W2',
'W3',
'W6',
'F',
]
ignore = ['F722', 'F821']