We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bdedfac commit ba786c8Copy full SHA for ba786c8
flake.nix
@@ -33,11 +33,9 @@
33
pre-commit = git-hooks.lib.${system}.run {
34
src = ./.;
35
hooks = {
36
- isort.enable = true;
37
ruff.enable = true;
38
ruff-format = {
39
enable = true;
40
- entry = "${pkgs.ruff}/bin/ruff format";
41
pass_filenames = false;
42
};
43
pyproject.toml
@@ -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
-]
+[tool.ruff.lint]
+select = ["I"]
8
+[tool.ruff.lint.isort]
+combine-as-imports = true
+force-sort-within-sections = true
+known-first-party = [
+ "homeassistant",
9
+]
10
+split-on-trailing-comma = false
0 commit comments