diff --git a/.ruff.toml b/.ruff.toml index c1df5a5..f3334ea 100644 --- a/.ruff.toml +++ b/.ruff.toml @@ -57,6 +57,7 @@ select = [ "SIM401", # Use get from dict with default instead of an if block "T100", # Trace found: {name} used "T20", # flake8-print + "TID251", # Banned imports "TRY004", # Prefer TypeError exception for invalid type "TRY200", # Use raise from to specify exception cause "TRY302", # Remove exception handler; error is immediately re-raised @@ -88,6 +89,15 @@ ignore = [ ] +[flake8-import-conventions.extend-aliases] +voluptuous = "vol" +"homeassistant.helpers.area_registry" = "ar" +"homeassistant.helpers.config_validation" = "cv" +"homeassistant.helpers.device_registry" = "dr" +"homeassistant.helpers.entity_registry" = "er" +"homeassistant.helpers.issue_registry" = "ir" +"homeassistant.util.dt" = "dt_util" + [isort] force-sort-within-sections = true known-first-party = ["homeassistant"]