-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(formatting): replace treefmt-nix with treefmt for formatting
- Removed treefmt-nix dependency and all related configurations. - Added a new treefmt.toml file for formatting with nixfmt and ruff. - Updated .gitignore to ignore result files and .direnv. - Removed treefmt.nix and adjusted flake.nix accordingly. - Updated development shell to include nixfmt-rfc-style.
- Loading branch information
1 parent
bbf5f85
commit eaede2f
Showing
6 changed files
with
27 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
use flake |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
result* | ||
.direnv |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
[global] | ||
excludes = ["autogen"] | ||
|
||
[formatter.nixfmt] | ||
command = "nixfmt" | ||
includes = ["*.nix"] | ||
|
||
[formatter.ruff-check] | ||
command = "ruff" | ||
options = ["check", "--fix"] | ||
includes = ["*.py", "*.pyi"] | ||
|
||
[formatter.ruff-format] | ||
command = "ruff" | ||
options = ["format"] | ||
includes = ["*.py", "*.pyi"] | ||
|
||
[formatter.ruff-organize-imports] | ||
command = "ruff" | ||
options = ["check", "--select", "I", "--fix"] | ||
includes = ["*.py", "*.pyi"] |