File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 1616
1717print ("Tenants:" , ", " .join ([tenant .name for tenant in tenants ]))
1818
19- if len (sys .argv ) > 2 :
19+ if len (sys .argv ) > 2 : # noqa: PLR2004 (magic constant)
2020 # Filter tenants that matches the provided pattern
2121 tenants = filter (lambda tenant : sys .argv [2 ] in tenant .name , tenants )
2222
Original file line number Diff line number Diff line change 1919from .queries import load_query
2020
2121CLIENT_ID = "ONEKEY Python SDK"
22- TOKEN_NAMESPACE = "https://www.onekey.com/"
22+ TOKEN_NAMESPACE = "https://www.onekey.com/" # noqa: S105 (hardcoded credential)
2323
2424
2525def _login_required (func ):
@@ -67,7 +67,7 @@ def _setup_httpx_client(
6767 disable_tls_verify : bool | None = False ,
6868 ):
6969 if disable_tls_verify :
70- return httpx .Client (base_url = api_url , verify = False )
70+ return httpx .Client (base_url = api_url , verify = False ) # noqa: S501 (TLS certificate validation disabled)
7171
7272 if ca_bundle is not None :
7373 ca = ca_bundle .expanduser ()
You can’t perform that action at this time.
0 commit comments