Skip to content

Commit b692611

Browse files
committed
Linter/formatter issues were fixed, black bumped to 24.3.0
1 parent ab469b2 commit b692611

7 files changed

+21
-19
lines changed

examples/get-connection-tags.py

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
This example updates connection tags and fetch connection tags.
33
44
"""
5+
56
import sys
67

78
import config

examples/get-connection-trail.py

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
This example fetches a trail file and prints stdin events seen in the trail.
33
44
"""
5+
56
import base64
67
import json
78
import sys

examples/get-roles-mapping-report.py

+3-5
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,7 @@
3434
# Default search order how to report user names in the output file.
3535
# NOTE: Not all user records have "principal" field defined necessarily,
3636
# hence the script will check samaccountname and DN fields as a backup
37-
username_attributes_to_check = ['principal',
38-
'samaccountname',
39-
'distinguished_name']
37+
username_attributes_to_check = ["principal", "samaccountname", "distinguished_name"]
4038

4139

4240
def get_roles():
@@ -55,8 +53,8 @@ def get_roles():
5553

5654
def get_username_info(data):
5755
"""
58-
Get usernames: check (configurable) list of fields to find usernames
59-
Return: list of found usernames
56+
Get usernames: check (configurable) list of fields to find usernames
57+
Return: list of found usernames
6058
"""
6159

6260
app_members = []

examples/search-connections-trails.py

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
This example fetches a trail file and prints stdin events seen in the trail.
33
44
"""
5+
56
import base64
67
import getopt
78
import json

privx_api/authorizer.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@ def get_authorizer_cert(
2929
"""
3030
response_status, data = self._http_get(
3131
UrlEnum.AUTHORIZER.AUTHORIZER_CERT,
32-
query_params={"access_group_id": access_group_id}
33-
if access_group_id
34-
else None,
32+
query_params=(
33+
{"access_group_id": access_group_id} if access_group_id else None
34+
),
3535
)
3636
return PrivXAPIResponse(response_status, HTTPStatus.OK, data)
3737

requirements.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
black==22.3.0
1+
black==24.3.0
22
flake8-polyfill==1.0.2
33
flake8==5.0.4
44
isort==5.8.0

setup.py

+11-10
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,18 @@
11
"""Version information for pip."""
2+
23
from setuptools import setup
34

45
setup(
5-
name='privx_api',
6-
version='26.0.0',
7-
packages=['privx_api'],
8-
license='Apache Licence 2.0',
9-
url='https://github.com/SSHcom/privx-sdk-for-python',
6+
name="privx_api",
7+
version="26.0.0",
8+
packages=["privx_api"],
9+
license="Apache Licence 2.0",
10+
url="https://github.com/SSHcom/privx-sdk-for-python",
1011
classifiers=[
11-
'Intended Audience :: Developers',
12-
'Intended Audience :: System Administrators',
13-
'Operating System :: OS Independent',
14-
'Programming Language :: Python',
15-
'Topic :: Software Development :: Libraries :: Python Modules'
12+
"Intended Audience :: Developers",
13+
"Intended Audience :: System Administrators",
14+
"Operating System :: OS Independent",
15+
"Programming Language :: Python",
16+
"Topic :: Software Development :: Libraries :: Python Modules",
1617
],
1718
)

0 commit comments

Comments
 (0)