-
Notifications
You must be signed in to change notification settings - Fork 38
Expand file tree
/
Copy pathpyproject.toml
More file actions
134 lines (118 loc) · 2.05 KB
/
pyproject.toml
File metadata and controls
134 lines (118 loc) · 2.05 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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
# Copyright (c) 2024 RapidStream Design Automation, Inc. and contributors.
# All rights reserved. The contributor(s) of this file has/have agreed to the
# RapidStream Contributor License Agreement.
################
# Formatting #
###############
[tool.codespell]
# 'Implmentation' is intended here as it is a typo by Xilinx and we have conform lol
ignore-words-list = "din,dout,edn,inout,pres,implmentation,cips,ket"
[tool.docformatter]
style = "google"
black = true
[tool.mypy]
check_untyped_defs = true
disallow_any_generics = true
disallow_incomplete_defs = true
disallow_subclassing_any = true
disallow_untyped_calls = true
disallow_untyped_decorators = true
disallow_untyped_defs = true
ignore_missing_imports = true
no_implicit_reexport = true
strict = true
strict_concatenate = true
strict_equality = true
strict_optional = true
warn_no_return = true
warn_redundant_casts = true
warn_unused_ignores = false
warn_return_any = true
warn_unreachable = true
[tool.ruff]
target-version = "py313"
[tool.ruff.lint]
preview = true
select = [
"A",
"AIR",
"ANN",
"ARG",
"ASYNC",
"BLE",
"C",
"COM",
"D",
"E",
"EM",
"ERA",
"EXE",
"F",
"FA",
"FLY",
# "FURB", # should be enabled in pathlib refactoring
"G",
"I",
"ICN",
"INP",
"INT",
"ISC",
"LOG",
"N",
"NPY",
"PD",
"PERF",
"PGH",
"PIE",
"PL",
"PT",
# "PTH", # should be enabled in pathlib refactoring
"PYI",
"Q",
"R",
"RET",
"RSE",
"RUF",
"SIM",
"SLF",
"SLOT",
"T",
"T",
"TCH",
"TID",
"TID",
"UP",
"W",
"YTT",
]
ignore = [
"COM812",
"COM819",
"D1", # allow missing docstrings
"E111",
"E114",
"E117",
"ISC001",
"ISC001",
"ISC002",
"Q000",
"Q001",
"Q002",
"Q003",
"UP046", # Nuitka doesn't support PEP 695, https://github.com/Nuitka/Nuitka/issues/3423
"W191",
]
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.ruff.format]
docstring-code-format = true
[tool.pyright]
exclude = [
# Please keep sorted
"**/.*",
"**/__pycache__",
"**/node_modules",
"bazel-*",
"build",
"external",
]