-
Notifications
You must be signed in to change notification settings - Fork 11
/
pyproject.toml
58 lines (55 loc) · 1.02 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
[project]
name = "securedrop-builder"
version = "0.1.0"
requires-python = ">=3.9"
[tool.ruff]
line-length = 100
[tool.ruff.lint]
select = [
# pycodestyle errors
"E",
# pyflakes
"F",
# isort
"I",
# flake8-gettext
"INT",
# flake8-pie
"PIE",
# pylint
"PL",
# flake8-pytest-style
"PT",
# flake8-pyi
"PYI",
# flake8-return
"RET",
# flake8-bandit
"S",
# flake8-simplify
"SIM",
# pyupgrade
"UP",
# pycodestyle warnings
"W",
# Unused noqa directive
"RUF100",
]
ignore = [
# Find contextlib.suppress() is harder to read
"SIM105",
# Find ternary statements harder to read
"SIM108",
# Flags any subprocess use
"S603",
]
[tool.ruff.lint.per-file-ignores]
# Asserts in tests are fine
"**/tests/*" = [
# use of `assert`
"S101",
# insecure temporary file/directory
"S108",
# code needs to be reorganized into modules - see https://github.com/freedomofpress/securedrop-builder/issues/465
"E402"
]