-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
156 lines (140 loc) · 3.43 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
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
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
[tool.poetry]
authors = ["Kevin Kirsche <kev.kirsche@gmail.com>"]
description = "Unofficial backend utilities for using Material-UI's X-Data-Grid component"
# TODO: finish support for this
# documentation = "https://mui-data-grid.readthedocs.io/en/latest/"
include = ["src/mui/py.typed", "LICENSE"]
license = "MIT"
name = "mui-data-grid"
packages = [{ include = "mui", from = "src" }]
readme = "README.md"
repository = "https://github.com/kkirsche/mui-data-grid"
version = "0.15.0"
[tool.poetry.dependencies]
python = ">=3.9,<4"
pydantic = ">=2.3.0,<3"
typing-extensions = ">=4.7.1,<5"
# https://docs.python.org/3/library/sysconfig.html#sysconfig.get_platform
tzdata = { version = ">=2024.2", platform = "win32" }
# [tool.poetry.extras]
# flask = ["flask@>=2,<3"]
# sqlalchemy = ["sqlalchemy@>=1.4,<2"]
[tool.poetry.group.github-actions.dependencies]
codespell = "^2.4.1"
hypothesis = "^6.125.2"
interrogate = "^1.7.0"
mypy = "^1.15.0"
pytest = "^8.3.4"
ruff = "^0.9.4"
[tool.poetry.group.flask.dependencies]
flask = ">=3.0.3,<4"
[tool.poetry.group.sqlalchemy.dependencies]
sqlalchemy = ">=1.4,<2"
sqlalchemy2-stubs = ">=0.0.2a35"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.mypy]
exclude = ['^compat\.py$']
follow_imports = "normal"
local_partial_types = true
plugins = ["pydantic.mypy", "sqlalchemy.ext.mypy.plugin"]
python_version = "3.9"
strict = true
warn_return_any = true
warn_unused_configs = true
[[tool.mypy.overrides]]
ignore_missing_imports = true
module = [
"tests.mui.v5.grid.sort.test_model",
"tests.mui.v5.grid.sort.test_item",
]
[tool.pydantic-mypy]
init_forbid_extra = true
init_typed = true
warn_required_dynamic_aliases = true
warn_untyped_fields = true
[tool.pytest.ini_options]
addopts = "-ra --strict-markers --strict-config -p no:pastebin -p no:nose"
minversion = "8.3"
empty_parameter_set_mark = "fail_at_collect"
testpaths = ["tests"]
[tool.interrogate]
color = true
exclude = ["tests"]
fail-under = 95
ignore-init-method = false
ignore-init-module = true
ignore-magic = false
ignore-module = false
ignore-nested-classes = false
ignore-nested-functions = false
ignore-private = false
ignore-property-decorators = false
ignore-semiprivate = false
ignore-setters = false
quiet = false
verbose = 1
[tool.pyright]
exclude = ["**/__pycache__", "**/.git"]
include = ["src"]
pythonPlatform = "All"
pythonVersion = "3.9"
typeCheckingMode = "strict"
[tool.ruff]
extend-exclude = ["tests"]
line-length = 88
target-version = "py39"
fix = true
preview = true
[tool.ruff.lint]
# https://beta.ruff.rs/docs/settings/#select
# https://beta.ruff.rs/docs/rules/ defines what the select codes mean
select = [
"ASYNC",
"ARG",
"B",
"C4",
"C90",
"DTZ",
"E",
"F",
"FIX",
"FLY",
"G",
"I",
"ICN",
"PERF",
"PGH",
"PIE",
"PL",
"PT",
"PTH",
"PYI",
"Q",
"RSE",
"RUF",
"S",
"SIM",
"SLF",
"SLOT",
"TD",
"TID",
"TRY",
"UP",
"W",
"YTT",
]
extend-ignore = [
"PLR0911", # Too many return statements
"PLR0912", # Too many branches - waiting to use match
"PLR0913", # Too many arguments to function call (n > 5)
"TRY003", # Avoid specifying long messages outside the exception class
"ISC001", # Ruff warns that this is not compatible with the formatter
]
[tool.ruff.lint.mccabe]
max-complexity = 15
[tool.ruff.format]
# Use Unix-style line endings.
line-ending = "lf"
docstring-code-format = true