forked from Avaiga/taipy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
68 lines (60 loc) · 1.81 KB
/
pyproject.toml
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
[tool.ruff]
exclude = [
".git",
"__pycache__",
"setup.py",
"build",
"dist",
"releases",
".venv",
".tox",
".mypy_cache",
".pytest_cache",
".vscode",
".github",
]
line-length = 120
indent-width = 4
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"F", # pyflakes errors
"W", # pycodestyle warnings
"C", # mccabe complexity checker
"B", # bugbear best practices checker
"T", # mypy type errors
"B", # flake8-bugbear best practices checker
"I001", # isort import order
]
ignore = [ # TODO: to be removed
"C401", # Unnecessary generator (rewrite as a `set` comprehension)
"C405", # Unnecessary list literal - rewrite as a literal
"C408", # Unnecessary dict call - rewrite as a literal
"C409", # Unnecessary list passed to tuple() - rewrite as a tuple literal
"C416", # Unnecessary `set` comprehension (rewrite using `set()`)
]
# Allow fix for all enabled rules (when `--fix`) is provided.
fixable = ["ALL"]
unfixable = []
[tool.ruff.lint.per-file-ignores]
"__init__.py" = ["F401", "F403"] # unused import
"_init.py" = ["F401", "F403"] # unused import
"taipy/config/stubs/pyi_header.py" = ["F401", "F403"] # unused import
"taipy/templates/*" = ["F401", "F403", "T201"] # unused import, `print` found
[tool.ruff.lint.mccabe]
max-complexity = 18
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.mypy]
ignore_missing_imports = true
implicit_optional = true
namespace_packages = false
exclude = "(taipy/templates/|generate_pyi.py|tools)"
follow_imports = "skip"
[tool.pyright]
[tool.codespell]
skip = '.git,*.pdf,*.svg,go.sum,package-lock.json,*.css'
check-hidden = true
ignore-regex = '^\s*"image/\S+": ".*|\b(inPort|anId|IST|Opps|Rouge|notifAction)\b'
# some unfortunate names for variables
ignore-words-list = 'ags,selt'