-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathpyproject.toml
More file actions
66 lines (57 loc) · 1.82 KB
/
Copy pathpyproject.toml
File metadata and controls
66 lines (57 loc) · 1.82 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
[project]
name = "strace-macos"
version = "0.1.0"
description = "System call tracer for macOS using LLDB"
requires-python = ">=3.9"
dependencies = []
[project.scripts]
strace = "strace_macos.__main__:main"
[build-system]
requires = ["setuptools>=61.0", "wheel"]
build-backend = "setuptools.build_meta"
[tool.setuptools.packages.find]
where = ["."]
exclude = ["tests*"]
[tool.ruff]
line-length = 100
target-version = "py39"
[tool.ruff.lint]
select = ["ALL"]
ignore = [
"E501", # line too long (handled by formatter)
"D", # pydocstyle (documentation)
"ANN", # flake8-annotations
"COM812", # missing-trailing-comma (conflicts with formatter)
"ISC001", # single-line-implicit-string-concatenation (conflicts with formatter)
"S607", # partial executable path (xcrun is standard)
"S604", # shell injection (we control the inputs)
"PLR2004", # magic values (syscall numbers are naturally magic)
"T201", # print statements (used for debugging)
"TD002", # missing author in TODO
"TD003", # missing issue link in TODO
"FIX002", # line contains TODO
]
[tool.ruff.lint.pylint]
max-returns = 8 # Allow more returns for complex decoders
[tool.ruff.lint.per-file-ignores]
"tests/**/*.py" = [
"S101", # use of assert (standard in tests)
"S603", # subprocess call (controlled test inputs)
"PLR2004", # magic value comparison (test values are naturally magic)
]
[tool.mypy]
python_version = "3.9"
warn_return_any = true
warn_unused_configs = true
disallow_untyped_defs = true
disallow_incomplete_defs = true
check_untyped_defs = true
disallow_untyped_calls = true
no_implicit_optional = true
warn_redundant_casts = true
warn_unused_ignores = true
strict_equality = true
exclude = ["setup.py", "result/"]
[[tool.mypy.overrides]]
module = "lldb"
ignore_missing_imports = true