mirror of
https://github.com/numtide/treefmt.git
synced 2024-09-11 17:07:44 +03:00
remove bash attribute from devshell, and use rustfmt --edition 2018
This commit is contained in:
parent
0719c65893
commit
0f254124fb
@ -11,13 +11,6 @@ devshell.mkShell {
|
||||
Welcome to the prjfmt development environment.
|
||||
'';
|
||||
commands = [ ];
|
||||
bash = {
|
||||
extra = ''
|
||||
export LD_INCLUDE_PATH="$DEVSHELL_DIR/include"
|
||||
export LD_LIB_PATH="$DEVSHELL_DIR/lib"
|
||||
'';
|
||||
interactive = '''';
|
||||
};
|
||||
packages = [
|
||||
# Build tools
|
||||
(rust-bin.stable.latest.rust.override {
|
||||
|
@ -5,12 +5,12 @@ files = [ "*.py" ]
|
||||
command = "black"
|
||||
options = [ ]
|
||||
|
||||
[formatters.cargo]
|
||||
[formatters.rustfmt]
|
||||
files = [ "*.rs" ]
|
||||
includes = [ "rust/" ]
|
||||
excludes = []
|
||||
command = "cargo"
|
||||
options = [ "fmt", "--" ]
|
||||
command = "rustfmt"
|
||||
options = [ "--edition", "2018" ]
|
||||
|
||||
[formatters.gofmt]
|
||||
files = [ "*.go" ]
|
||||
@ -18,8 +18,8 @@ command = "gofmt"
|
||||
options = [ "-w" ]
|
||||
|
||||
[formatters.ormolu]
|
||||
files = "*.hs" # / "*.hs" / "Makefile" mandatory
|
||||
excludes = [ "haskell/" ] # blacklisted folder/files.
|
||||
files = "*.hs"
|
||||
excludes = [ "haskell/" ]
|
||||
command = "ormolu"
|
||||
options = [
|
||||
"--ghc-opt", "-XBangPatterns",
|
||||
|
Loading…
Reference in New Issue
Block a user