Skip to content

Commit c09e06f

Browse files
committed
chore(ruff): add noqa directives to false-positive lints
1 parent 061964c commit c09e06f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

examples/get_tenant_token.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
print("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

onekey_client/client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
from .queries import load_query
2020

2121
CLIENT_ID = "ONEKEY Python SDK"
22-
TOKEN_NAMESPACE = "https://www.onekey.com/"
22+
TOKEN_NAMESPACE = "https://www.onekey.com/" # noqa: S105 (hardcoded credential)
2323

2424

2525
def _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()

0 commit comments

Comments
 (0)