-
Notifications
You must be signed in to change notification settings - Fork 86
/
pyproject.toml
128 lines (111 loc) · 2.55 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
[build-system]
requires = ["setuptools", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "meilisearch"
description = "The python client for Meilisearch API."
license = { text = "MIT" }
requires-python = ">=3.9"
authors = [
{ name = "Clémentine", email = "clementine@meilisearch.com" },
]
keywords = [
"search",
"python",
"meilisearch",
]
classifiers = [
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
]
dependencies = [
"requests",
"camel-converter[pydantic]",
]
dynamic = ['version']
[tool.setuptools.dynamic]
version = {attr = "meilisearch.version.__version__"}
[tool.setuptools.packages.find]
include = ["meilisearch*"]
exclude = ["docs*", "tests*"]
[tool.setuptools.package-data]
meilisearch = ["py.typed"]
[project.urls]
Meilisearch_Documentation = "https://www.meilisearch.com/docs"
Documentation = "https://meilisearch.github.io/meilisearch-python/"
Homepage = "https://github.com/meilisearch/meilisearch-python"
[tool.black]
line-length = 100
target-version = ['py38']
include = '\.pyi?$'
extend-exclude = '''
/(
\.egg
| \.git
| \.hg
| \.mypy_cache
| \.nox
| \.tox
| \.venv
| \venv
| _build
| buck-out
| build
| dist
| setup.py
)/
'''
[tool.isort]
profile = "black"
line_length = 100
src_paths = ["meilisearch", "tests"]
[tool.mypy]
disallow_untyped_defs = true
[[tool.mypy.overrides]]
module = ["tests.*"]
disallow_untyped_defs = false
[tool.pylint]
[tool.pylint.MASTER]
load-plugins = [
'pylint.extensions.bad_builtin',
]
[tool.pylint.'DEPRECATED_BUILTINS']
bad-functions=[
"map",
"filter",
"input"
]
[tool.pylint.'BASIC']
const-rgx = "(([A-Z_][A-Z0-9_]*)|(__.*__))$"
attr-rgx = "[a-z_][a-z0-9_]{2,}$"
module-rgx = "(([a-z_][a-z0-9_]*)|([A-Z][a-zA-Z0-9]+))$"
method-rgx = "[a-z_][a-z0-9_]{2,}$"
[tool.pylint.'DESIGN']
max-args = 10
max-public-methods = 25
[tool.pylint.'FORMAT']
max-module-lines=2000
[tool.pylint.'MESSAGES CONTROL']
disable=[
"attribute-defined-outside-init",
"duplicate-code",
"missing-docstring",
"too-few-public-methods",
"line-too-long",
"too-many-positional-arguments",
]
enable=[
"use-symbolic-message-instead",
"fixme",
]
[tool.pylint.'REPORTS']
reports=false
[tool.pytest.ini_options]
minversion = "6.0"
addopts = "--cov=meilisearch --cov-report term-missing"