Skip to content

Commit ba786c8

Browse files
committed
flake.nix: migrate to ruff check isort rules
1 parent bdedfac commit ba786c8

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

flake.nix

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,9 @@
3333
pre-commit = git-hooks.lib.${system}.run {
3434
src = ./.;
3535
hooks = {
36-
isort.enable = true;
3736
ruff.enable = true;
3837
ruff-format = {
3938
enable = true;
40-
entry = "${pkgs.ruff}/bin/ruff format";
4139
pass_filenames = false;
4240
};
4341
};

pyproject.toml

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
1-
[tool.isort]
2-
profile = "black"
3-
force_sort_within_sections = true
4-
combine_as_imports = true
5-
known_first_party = [
6-
"homeassistant"
7-
]
1+
[tool.ruff.lint]
2+
select = ["I"]
83

4+
[tool.ruff.lint.isort]
5+
combine-as-imports = true
6+
force-sort-within-sections = true
7+
known-first-party = [
8+
"homeassistant",
9+
]
10+
split-on-trailing-comma = false

0 commit comments

Comments
 (0)