File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
skore-hub-project/src/skore_hub_project/authentication Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 44from os import environ
55from typing import Final
66
7- ENVARNAME : Final [str ] = "SKORE_HUB_API_KEY"
7+ ENV_VAR_NAME : Final [str ] = "SKORE_HUB_API_KEY"
88
99
1010def 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
Original file line number Diff line number Diff line change 44from typing import Final
55
66DEFAULT : 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 )
You can’t perform that action at this time.
0 commit comments