-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
62 lines (55 loc) · 1.56 KB
/
Copy pathpyproject.toml
File metadata and controls
62 lines (55 loc) · 1.56 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
[tool.mypy]
ignore_missing_imports = true
no_implicit_optional = true
plugins = [
]
show_error_codes = true
warn_unreachable = true
disable_error_code = "annotation-unchecked"
[tool.pyright]
extraPaths = ["plugins/python/python", "scripts"]
[tool.ruff]
target-version = "py312"
line-length = 99
[tool.ruff.lint]
select = [
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"D", # pydocstyle
"E", # pycodestyle errors
"F", # pyflakes
"I", # isort
"W", # pycodestyle warnings
]
ignore = []
extend-ignore = [
"E731", # do not assign a lambda expression, use a def
"E203", # whitespace before ':'
]
[tool.ruff.lint.isort]
# Scripts are treated as first-party so that `import clang_tidy_check_summary`
# and similar local imports are grouped correctly relative to third-party ones
# (e.g. pytest), avoiding false I001 violations in scripts/test/.
known-first-party = [
"check_codeql_alerts",
"clang_tidy_check_summary",
"clang_tidy_diff_issues",
"clang_tidy_fixes_to_problems",
"codeql_reset_dismissed_alerts",
"create_coverage_symlinks",
"export_llvm_lcov",
"fix_header_guards",
"normalize_coverage_lcov",
"normalize_coverage_xml",
"sarif_alerts",
]
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.ruff.format]
quote-style = "double"
[tool.coverage.run]
# Exclude the test helpers from coverage measurement. pytest-cov resolves
# this glob relative to the measurement source root (scripts/), so the pattern
# works whether pytest is invoked from the repo root or a build directory that
# sets --cov=scripts.
omit = ["scripts/test/*"]