feat(tools): humanize tap coordinates; default off in tests
This commit is contained in:
+4
-1
@@ -28,7 +28,10 @@ class HumanizeConfig:
|
||||
|
||||
|
||||
def load_humanize_config(env: Mapping[str, str] | None = None) -> HumanizeConfig:
|
||||
values = env or os.environ
|
||||
if env is None:
|
||||
values: Mapping[str, str] = os.environ
|
||||
else:
|
||||
values = env
|
||||
return HumanizeConfig(
|
||||
enabled=_parse_bool(values.get(ENABLED_ENV), default=True),
|
||||
tap_radius_px=_parse_float(values.get(TAP_RADIUS_ENV), DEFAULT_TAP_RADIUS_PX),
|
||||
|
||||
Reference in New Issue
Block a user