-
-
Notifications
You must be signed in to change notification settings - Fork 93
Expand file tree
/
Copy pathpyproject.toml
More file actions
45 lines (41 loc) · 1.15 KB
/
Copy pathpyproject.toml
File metadata and controls
45 lines (41 loc) · 1.15 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
# Public Talon 0.4 uses Python 3.11
[project]
name = "cursorless"
version = "0.1.0"
requires-python = "==3.11.*"
[tool.ruff]
target-version = "py311"
extend-exclude = ["vendor", "resources/playground"]
[tool.ruff.lint]
select = [
"E", # pycodestyle
"F", # Pyflakes
"UP", # pyupgrade
"B", # flake8-bugbear
"SIM", # flake8-simplify
"I", # isort
"C4", # Catch incorrect use of comprehensions, dict, list, etc
"ICN", # Use common import conventions
"RET", # Good return practices
"FURB", # Suggest more idiomatic Python patterns
"FLY", # Checks for str.join calls that can be replaced with f-strings.
]
ignore = [
"E501", # Line too long
"SIM105", # Alow try-except-pass instead of contextlib.suppress({exception})
"UP007", # Union[X, Y] -> X | Y not supported in Talon 0.4 actions
"UP045", # Optional[X] -> X | None not supported in Talon 0.4 actions
"UP035", # Deprecated import
]
[tool.pyright]
pythonVersion = "3.11"
reportSelfClsParameterName = false
reportMissingModuleSource = false
reportMissingImports = false
exclude = [
"**/node_modules",
"**/__pycache__",
"**/.*",
"cursorless-talon/src/vendor",
"resources/playground",
]