Skip to content

Commit bef3a7a

Browse files
committed
ci
1 parent 6671bd1 commit bef3a7a

File tree

9 files changed

+53
-159
lines changed

9 files changed

+53
-159
lines changed

office365/intune/devices/detail.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ def __init__(
1414
is_compliant=None,
1515
is_managed=None,
1616
operating_system=None,
17-
trust_type=None
17+
trust_type=None,
1818
):
1919
"""
2020
:param str browser: Indicates the browser information of the used for signing in.

office365/intune/devices/device.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def approximate_last_signin_datetime(self):
4343

4444
@property
4545
def compliance_expiration_datetime(self):
46-
""" The timestamp when the device is no longer deemed compliant. The timestamp type represents date and
46+
"""The timestamp when the device is no longer deemed compliant. The timestamp type represents date and
4747
time information using ISO 8601 format and is always in UTC time.
4848
For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Read-only."""
4949
return self.properties.get("complianceExpirationDateTime", datetime.min)

office365/runtime/client_request.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ def execute_request_direct(self, request):
5353
auth=request.auth,
5454
verify=request.verify,
5555
proxies=request.proxies,
56-
timeout=request.timeout
56+
timeout=request.timeout,
5757
)
5858
else:
5959
response = requests.post(
@@ -63,7 +63,7 @@ def execute_request_direct(self, request):
6363
auth=request.auth,
6464
verify=request.verify,
6565
proxies=request.proxies,
66-
timeout=request.timeout
66+
timeout=request.timeout,
6767
)
6868
elif request.method == HttpMethod.Patch:
6969
response = requests.patch(
@@ -73,7 +73,7 @@ def execute_request_direct(self, request):
7373
auth=request.auth,
7474
verify=request.verify,
7575
proxies=request.proxies,
76-
timeout=request.timeout
76+
timeout=request.timeout,
7777
)
7878
elif request.method == HttpMethod.Delete:
7979
response = requests.delete(
@@ -82,7 +82,7 @@ def execute_request_direct(self, request):
8282
auth=request.auth,
8383
verify=request.verify,
8484
proxies=request.proxies,
85-
timeout=request.timeout
85+
timeout=request.timeout,
8686
)
8787
elif request.method == HttpMethod.Put:
8888
response = requests.put(
@@ -92,7 +92,7 @@ def execute_request_direct(self, request):
9292
auth=request.auth,
9393
verify=request.verify,
9494
proxies=request.proxies,
95-
timeout=request.timeout
95+
timeout=request.timeout,
9696
)
9797
else:
9898
response = requests.get(
@@ -102,7 +102,7 @@ def execute_request_direct(self, request):
102102
verify=request.verify,
103103
stream=request.stream,
104104
proxies=request.proxies,
105-
timeout=request.timeout
105+
timeout=request.timeout,
106106
)
107107
response.raise_for_status()
108108
return response

office365/runtime/odata/query_options.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
class QueryOptions(object):
2-
"""
3-
"""
2+
""" """
43

54
def __init__(
65
self,

office365/sharepoint/search/request.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ def __init__(
3737
ui_language=None,
3838
hit_highlighted_properties=None,
3939
hit_highlighted_multivalue_property_limit=None,
40-
**kwargs
40+
**kwargs,
4141
):
4242
"""
4343
:param str query_text: The query text of the search query. If this element is not present or a value is not

office365/sharepoint/search/service.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ def query(
101101
trim_duplicates=None,
102102
enable_query_rules=None,
103103
enable_sorting=None,
104-
**kwargs
104+
**kwargs,
105105
):
106106
"""The operation is used to retrieve search results by using the HTTP protocol with the GET method.
107107
@@ -162,7 +162,7 @@ def post_query(
162162
select_properties=None,
163163
trim_duplicates=None,
164164
row_limit=None,
165-
**kwargs
165+
**kwargs,
166166
):
167167
# type: (str, List[str], bool, int, Any) -> ClientResult[SearchResult]
168168
"""The operation is used to retrieve search results through the use of the HTTP protocol
@@ -181,7 +181,7 @@ def post_query(
181181
select_properties=select_properties,
182182
trim_duplicates=trim_duplicates,
183183
row_limit=row_limit,
184-
**kwargs
184+
**kwargs,
185185
)
186186
payload = {"request": request}
187187
qry = ServiceOperationQuery(self, "postquery", None, payload, None, return_type)

office365/teams/channels/collection.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ def add(self, display_name, description=None, membership_type=None, **kwargs):
2121
displayName=display_name,
2222
description=description,
2323
membershipType=membership_type,
24-
**kwargs
24+
**kwargs,
2525
)
2626

2727
def get_all_messages(self):

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ maintainers = [
1414
authors = [
1515
{ name = "Vladimir Kovalenko", email = "vvgrem@gmail.com" },
1616
]
17-
requires-python = ">=3.8"
17+
requires-python = ">=3.8.0"
1818

1919
classifiers = [
2020
"Development Status :: 4 - Beta",
@@ -57,7 +57,7 @@ urls.repository = "https://github.com/vgrem/office365-rest-python-client"
5757
dev = [
5858
"adal~=1.2.4",
5959
"astunparse~=1.6.3",
60-
"black",
60+
"black==24.4.2",
6161
"configparser~=5.0.2",
6262
"faker~=4.1.2",
6363
"flake8",

0 commit comments

Comments
 (0)