-
Notifications
You must be signed in to change notification settings - Fork 29
Expand file tree
/
Copy pathpyproject.toml
More file actions
94 lines (85 loc) · 1.82 KB
/
pyproject.toml
File metadata and controls
94 lines (85 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
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
[tool.black]
line-length = 88 # The black default is a good compromise.
skip-string-normalization = 1
target-version = ['py36', 'py37', 'py38', 'py39', 'py310']
include = '\.py$'
extend-exclude = '''
/(
\.toml
|\.sh
|\.git
|\.md
|\.txt
|\.yml
|\.ui
|\.mel
)/
'''
[tool.ruff]
# Same as Black.
line-length = 88
# Assume Python 3.7+, because that's the minimum supported version by
# Ruff.
target-version = "py37"
# Exclude a variety of commonly ignored directories.
exclude = [
".bzr",
".direnv",
".eggs",
".git",
".git-rewrite",
".hg",
".ipynb_checkpoints",
".mypy_cache",
".nox",
".pants.d",
".pyenv",
".pytest_cache",
".pytype",
".ruff_cache",
".svn",
".tox",
".venv",
".vscode",
"__pypackages__",
"_build",
"buck-out",
"build",
"dist",
"node_modules",
"site-packages",
"venv",
# Custom directories for mmSolver.
"mltools",
"delaunator.py"
]
[tool.ruff.lint]
# Enable Pyflakes (`F`) and a subset of the pycodestyle (`E`) codes by default.
# Unlike Flake8, Ruff doesn't enable pycodestyle warnings (`W`) or
# McCabe complexity (`C901`) by default.
select = [
"E4",
"E7",
"E9",
"F",
# "B" # "Bugbear" lints. Enable at a later date.
]
ignore = [
"E402", # Avoid line-length complaints.
"E501", # Avoid module import complaints.
"F401", # Unused module.
"F841" # Local variable `start_frame` is assigned to but never used
]
[tool.ruff.lint.mccabe]
# Unlike Flake8, default to a complexity level of 10.
max-complexity = 10
[tool.ruff.format]
# Leave quote characters as the are.
quote-style = "preserve"
[tool.pyright]
include = ["python"]
exclude = ["**/__pycache__"]
pythonVersion = "3.6"
reportMissingImports = true
reportMissingModuleSource = true
reportTypeCommentUsage = false