-
-
Notifications
You must be signed in to change notification settings - Fork 371
Expand file tree
/
Copy pathpyproject.toml
More file actions
142 lines (131 loc) · 4.13 KB
/
pyproject.toml
File metadata and controls
142 lines (131 loc) · 4.13 KB
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
[build-system]
build-backend = "uv_build"
requires = [ "uv-build>=0.9,<0.10" ]
[project]
name = "office365-rest-python-client"
version = "2.6.2"
description = "Microsoft 365 & Microsoft Graph Library for Python"
readme = "README.md"
license = { file = "LICENSE" }
maintainers = [
{ name = "Domenico Di Nicola", email = "dom.dinicola@gmail.com" },
]
authors = [
{ name = "Vladimir Kovalenko", email = "vvgrem@gmail.com" },
]
requires-python = ">=3.8.0"
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.8",
"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",
"Programming Language :: Python :: 3.14",
"Topic :: Internet :: WWW/HTTP",
"Topic :: Software Development :: Libraries",
]
dependencies = [
"msal>=1.28",
"pytz>=2021.1",
"requests>=2.32.4",
"typing-extensions>=4",
# The codebase uses "Self" and "Required" available in the typing module
# since Python 3.11. Therefore, typing_extensions is required as long
# as office365-rest-python-client supports Python versions < 3.11.
# On Python versions >= 3.11, typing_extensions re-exports these names
# from the standard library typing module.
]
optional-dependencies.examples = [
"faker",
]
optional-dependencies.ntlm = [
"requests-ntlm",
]
urls.repository = "https://github.com/vgrem/office365-rest-python-client"
[dependency-groups]
dev = [
"adal~=1.2.4",
"astunparse~=1.6.3",
"black==24.4.2",
"configparser~=5.0.2",
"faker~=4.1.2",
"flake8",
"isort",
"pylint",
"pyproject-fmt",
"pytest",
"ruff",
]
[tool.uv.build-backend]
module-name = "office365"
module-root = ""
[tool.ruff]
line-length = 121
format.line-ending = "lf"
# pyflakes, pycodestyle, isort
lint.select = [ "E", "F", "I001", "W" ]
lint.per-file-ignores."examples/**/*.py" = [ "F401" ]
lint.per-file-ignores."office365/**/*.py" = [ "F401" ]
lint.per-file-ignores."tests/**/*.py" = [ "F401" ]
[tool.pylint]
max-line-length = 121
disable = [
"C0103",
"C0111",
"C0112", # empty-docstring
"C0114", # missing-module-docstring
"C0201", # consider-iterating-dictionary (Python 2)
"C0206", # consider-using-dict-items (Python 2)
"C0209", # consider-using f-string
"C0302", # too-many-lines
"C0303",
"C0415", # import-outside-toplevel
"E0307", # invalid-str-returned
"E0611", # no-name-in-module (!)
"E1102", # not-callable
"R0205", # useless-object-inheritance (Python 2)
"R0401", # cyclic-import (!)
"R0801", # duplicate-code
"R0902", # too-many-instance-attributes
"R0903", # too-few-public-methods
"R0903", # too-few-public-methods
"R0904", # too-many-public-methods
"R0912", # too-many-branches
"R0913", # too-many-arguments
"R0914", # too-many-locals
"R1705", # no-else-return
"R1710", # inconsistent-return-statements (!)
"R1711", # useless-return
"R1714", # consider-using-in
"R1720", # no-else-raise
"R1721", # unnecessary-comprehension
"R1725", # super-with-arguments
"R1732", #consider-using-with
"W0105", # pointless-string-statement
"W0106", # expression-not-assigned
"W0107", # unnecessary-pass
"W0201", # attribute-defined-outside-init
"W0212", # protected-access
"W0221", # arguments-differ
"W0237", # arguments-renamed
"W0246", # useless-parent-delegation
"W0404", # reimported
"W0611", # unused-imports # typing
"W0613", # unused-argument
"W0621", # redefine-outer-name
"W0707", # raise-missing-from
"W1113", # keyword-arg-before-vararg
"W3101", # missing-timeout
"R0917", # too-many-positional-arguments
] # all codes: http://pylint-messages.wikidot.com/all-codes
[tool.pylint.FORMAT]
max-line-length = 121
ignore-long-lines = '^\s*# (<?https?://\S+>?|type: .+)$'
[tool.pylint.MASTER]
ignore-patterns = 'office365\todo\tasks\**'