forked from ROCm/rocm-libraries
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.cmake-format.py
More file actions
28 lines (24 loc) · 755 Bytes
/
Copy path.cmake-format.py
File metadata and controls
28 lines (24 loc) · 755 Bytes
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
import platform
with section("parse"):
additional_commands = {
"rocm_create_package": {
"kwargs": {"NAME": 1, "DESCRIPTION": 1, "MAINTAINER": 1, "LDCONFIG_DIR": 1},
"flags": ["LDCONFIG", "HEADER_ONLY"],
}
}
with section("format"):
line_width = 100
tab_size = 4
dangle_parens = True
command_case = "lower"
enable_sort = True
max_subgroups_hwrap = 4
max_pargs_hwrap = 6
max_lines_hwrap = 2
with section("markup"):
first_comment_is_literal = True
with section("lint"):
# Disable line ending check (C0327) on Windows where CRLF is expected
disabled_codes = ["C0103", "C0301", "W0106"]
if platform.system() == "Windows":
disabled_codes.append("C0327")