Skip to content

Commit

Permalink
lib/tooling-config: init from /
Browse files Browse the repository at this point in the history
  • Loading branch information
tomodachi94 authored Apr 26, 2024
1 parent 976bb16 commit d417cf4
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@ repl:
nix repl --expr 'builtins.getFlake "{{git_dir}}"'

format:
treefmt
treefmt --config-file ./lib/tooling-config/treefmt.toml --tree-root {{git_dir}}

lint:
selene --allow-warnings
selene --allow-warnings --config ./lib/tooling-config/selene.toml

check-flake-outputs:
#!/usr/bin/env sh
Expand All @@ -41,6 +41,6 @@ check-flake-outputs:
nix flake check --all-systems --verbose --impure
check-formatting:
treefmt --fail-on-change --no-cache
treefmt --fail-on-change --no-cache --config-file ./lib/tooling-config/treefmt.toml --tree-root {{git_dir}}

ci: check-flake-outputs check-formatting lint
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions treefmt.toml → lib/tooling-config/treefmt.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@

[formatter.stylua]
command = "stylua"
options = [ "--config-path", "./.formatters/stylua.toml" ]
options = [ "--config-path", "lib/tooling-config/stylua.toml" ]
includes = [ "*.lua" ]
excludes = []

[formatter.statix]
command = "statix"
options = [ "--config", "./.formatters/statix.toml" ]
options = [ "--config", "lib/tooling-config/statix.toml" ]
includes = [ ".nix" ]

[formatter.deadnix]
Expand Down
File renamed without changes.

0 comments on commit d417cf4

Please sign in to comment.