-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathpyproject.toml
114 lines (100 loc) · 2.5 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
[build-system]
requires = [
"setuptools>=70",
"setuptools-scm>=8",
"wheel",
]
build-backend = "setuptools.build_meta"
[tools.setuptools]
packages = ["odoo_connect"]
[tool.setuptools_scm]
local_scheme = "no-local-version"
[project]
name = "odoo-connect"
dynamic = ["version"]
description = "Simple RPC client for Odoo"
readme = "README.md"
keywords = ["odoo", "rpc"]
license = {file = "LICENSE"}
requires-python = ">=3.9"
classifiers = [
# https://pypi.org/pypi?%3Aaction=list_classifiers
"Development Status :: 4 - Beta",
"License :: OSI Approved :: GNU Lesser General Public License v3 (LGPLv3)",
"Programming Language :: Python :: 3",
"Framework :: Odoo",
]
dependencies = [
"requests",
]
[project.optional-dependencies]
pinned = [
"requests==2.32.3",
"charset-normalizer==3.3.2",
"idna==3.7",
]
dev = [
"mypy~=1.11",
"ruff==0.5.6",
"types-requests~=2.31.0",
"ipython>=8",
]
test = [
"pytest==8.3.2",
"pytest-httpserver==1.0.12",
]
[project.urls]
Homepage = "https://github.com/kmagusiak/odoo-connect"
[[project.authors]]
name = "Krzysztof Magusiak"
email = "[email protected]"
[tool.black]
line-length = 100
skip-string-normalization = 1
[tool.isort]
profile = "black"
line_length = 100
[tool.mypy]
ignore_missing_imports = true
[tool.ruff]
line-length = 100
target-version = "py39"
[tool.ruff.format]
quote-style="preserve"
[tool.ruff.lint]
# https://beta.ruff.rs/docs/rules/
select = [
"C4", # flake8 comprehensions
#"C9", # mccabe
"COM", # flake8 commas
#"D", # pydocstyle, pydoclint
"E", # pycodestyle
"EXE", # flake8-executable
"F", # pyflakes
"I", # isort
"LOG", # flake8 logging
"N", # naming
"PLE", # pylint errors
"RET", # flake8 return
"RUF", # ruff specific
"SIM", # flake8 simplify
"TID", # flake8 tidy imports
"UP", # pyupdate
"W", # pycodestyle
# specific rules
"FIX003" # comments with XXX should become TODO or FIXME
]
ignore = [
"COM812", # trailing commas (because we use the ruff formatter)
"D102", # mission doc in public method, function
"D205", # blank line required between summary and description
"D400", # first line should end with a period
"E731", # don't assign lambda
"SIM108", # simplify ITE by operator
"SIM300", # yoda condition
"UP038", # isinstance must use union operator on types
]
[tool.ruff.lint.mccabe]
max-complexity = 10
[tool.ruff.lint.per-file-ignores]
"__init__.py" = ["F401"]