Skip to content

Commit f61edf4

Browse files
committed
rename ENVARNAME to ENV_VAR_NAME
1 parent 1fc5143 commit f61edf4

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

skore-hub-project/src/skore_hub_project/authentication/apikey.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@
44
from os import environ
55
from typing import Final
66

7-
ENVARNAME: Final[str] = "SKORE_HUB_API_KEY"
7+
ENV_VAR_NAME: Final[str] = "SKORE_HUB_API_KEY"
88

99

1010
def APIKey() -> Callable[[], dict[str, str]]:
1111
"""API key used for ``skore hub`` authentication, as HTTP header parameters."""
12-
header = {"X-API-Key": environ[ENVARNAME]}
12+
header = {"X-API-Key": environ[ENV_VAR_NAME]}
1313
return lambda: header

skore-hub-project/src/skore_hub_project/authentication/uri.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@
44
from typing import Final
55

66
DEFAULT: Final[str] = "https://api.skore.probabl.ai"
7-
ENVARNAME: Final[str] = "SKORE_HUB_URI"
8-
URI: Final[str] = environ.get(ENVARNAME, DEFAULT)
7+
ENV_VAR_NAME: Final[str] = "SKORE_HUB_URI"
8+
URI: Final[str] = environ.get(ENV_VAR_NAME, DEFAULT)

0 commit comments

Comments
 (0)