mirror of
https://github.com/RichieCahill/dotfiles.git
synced 2026-04-15 04:28:18 -04:00
27 lines
521 B
TOML
27 lines
521 B
TOML
# One CLI to format the code tree - https://github.com/numtide/treefmt
|
|
|
|
[global]
|
|
# Glob patterns of files to exclude
|
|
excludes = [".git/"]
|
|
|
|
|
|
[formatter.nixfmt]
|
|
# Formatter to run
|
|
command = "nixfmt"
|
|
# Command-line arguments for the command
|
|
#options = []
|
|
# Glob pattern of files to include
|
|
includes = ["*.nix"]
|
|
|
|
[formatter.ruff-format]
|
|
command = "ruff"
|
|
options = ["format"]
|
|
includes = ["python/**/*.py"]
|
|
priority = 0
|
|
|
|
[formatter.ruff]
|
|
command = "ruff"
|
|
options = ["check", "--fix"]
|
|
includes = ["python/**/*.py"]
|
|
priority = 1
|