Skip to content

Commit

Permalink
Merge pull request #32 from astrandb/Ruff_1
Browse files Browse the repository at this point in the history
Update .ruff.toml
  • Loading branch information
astrandb authored Aug 21, 2023
2 parents 2218583 + 2951c71 commit 31b554e
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .ruff.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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"]
Expand Down

0 comments on commit 31b554e

Please sign in to comment.