-
-
Notifications
You must be signed in to change notification settings - Fork 89
Expand file tree
/
Copy pathpyproject.toml
More file actions
68 lines (59 loc) · 1.73 KB
/
pyproject.toml
File metadata and controls
68 lines (59 loc) · 1.73 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
[project]
name = "secureblue"
requires-python = ">= 3.10"
maintainers = [{name = "RoyalOughtness"}]
description = "secureblue is a a security-focused desktop and server Linux operating system."
readme = "docs/README.md"
license-files = ["LICENSES/*.txt"]
[project.urls]
Repository = "https://github.com/secureblue/secureblue"
Issues = "https://github.com/secureblue/secureblue/issues"
[tool.mypy]
strict = true
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = "audit_secureblue"
disallow_untyped_defs = false
[tool.ruff]
line-length = 100
[tool.ruff.lint]
select = [
"ANN", # flake8-annotations
"S", # flake8-bandit
"B", # flake8-bugbear
"A", # flake8-builtins
"C4", # flake8-comprehensions
"FIX", # flake8-fixme
"ICN", # flake8-import-conventions
"PIE", # flake8-pie
"Q", # flake8-quotes
"RSE", # flake8-raise
"RET", # flake8-return
"SLF", # flake8-self
"SIM", # flake8-simplify
"TC", # flake8-type-checking
"ARG", # flake8-unused-arguments
"I", # isort
"C90", # mccabe
"N", # pep8-naming
"E", # pycodestyle error
"W", # pycodestyle warning
"F", # pyflakes
"PL", # pylint
"UP", # pyupgrade
"FURB", # refurb
"RUF", # Ruff-specific rules
]
ignore = [
"ANN204", # missing-return-type-special-method
"ANN401", # any-type
"S603", # subprocess-without-shell-equals-true
]
mccabe.max-complexity = 8
pycodestyle.max-line-length = 110
pycodestyle.max-doc-length = 100
[tool.ruff.lint.per-file-ignores]
# Don't require audit checks' function signatures to have type hints.
"files/system/usr/libexec/secureblue/audit_secureblue.py" = ["ANN"]
# Allow partial executable paths in subprocess invocations in this script.
"tools/update_po.py" = ["S607"]