-
Notifications
You must be signed in to change notification settings - Fork 1.9k
/
pyproject.toml
107 lines (94 loc) · 2.89 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
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
[build-system]
requires = ["setuptools>=42", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "taipy"
description = "A 360° open-source platform from Python pilots to production-ready web apps."
readme = "package_desc.md"
requires-python = ">=3.9"
license = {text = "Apache License 2.0"}
authors = [{name = "Avaiga", email = "[email protected]"}]
keywords = ["taipy"]
classifiers = [
"Intended Audience :: Developers",
"License :: OSI Approved :: Apache Software License",
"Natural Language :: English",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
]
dynamic = ["version", "dependencies"]
[project.optional-dependencies]
ngrok = ["pyngrok>=5.1,<6.0"]
image = [
"python-magic>=0.4.24,<0.5",
"python-magic-bin>=0.4.14,<0.5",
]
rdp = ["rdp>=0.8"]
arrow = ["pyarrow>=16.0.0,<19.0"]
mssql = ["pyodbc>=4"]
[project.scripts]
taipy = "taipy._entrypoint:_entrypoint"
[project.urls]
Homepage = "https://www.taipy.io"
Documentation = "https://docs.taipy.io"
Source = "https://github.com/Avaiga/taipy"
Download = "https://pypi.org/project/taipy/#files"
Tracker = "https://github.com/Avaiga/taipy/issues"
Security = "https://github.com/Avaiga/taipy?tab=security-ov-file#readme"
[tool.ruff]
exclude = [
".git",
"__pycache__",
"setup.py",
"build",
"dist",
"releases",
".venv",
".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 = []
# 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/common/config/stubs/pyi_header.py" = ["F401", "F403"] # unused import
"taipy/templates/*" = ["F401", "F403", "T201"] # unused import, `print` found
"taipy/gui/utils/types.py" = ["B024"] # abstract base class with no abstract methods
[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/|tools/|doc/gui/examples/.*/builder.py)"
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'