Merge pull request #208 from nix-community/update_flake_lock_action

flake.lock: Update
This commit is contained in:
Jörg Thalheim 2024-07-09 11:47:29 +02:00 committed by GitHub
commit ffabc831bb
Failed to generate hash of commit
2 changed files with 11 additions and 18 deletions

View file

@ -22,11 +22,11 @@
}, },
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1720022903, "lastModified": 1720459846,
"narHash": "sha256-TLiEulaY4I+vwaJIHQXASVQva+2nepaziUomigYY9+0=", "narHash": "sha256-3gf8pkyp/yjFdLJo7PSQ/Vmta9QBPWfKs5SFc/wh3h4=",
"owner": "Nixos", "owner": "Nixos",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "88f3dab52d2cc42945f70f4e84c4505dedaa377d", "rev": "c030874db3ce4ff192aabf059988ed1be95d167a",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -50,11 +50,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1719887753, "lastModified": 1720436211,
"narHash": "sha256-p0B2r98UtZzRDM5miGRafL4h7TwGRC4DII+XXHDHqek=", "narHash": "sha256-/cKXod0oGLl+vH4bKBZnTV3qxrw4jgOLnyQ8KXey5J8=",
"owner": "numtide", "owner": "numtide",
"repo": "treefmt-nix", "repo": "treefmt-nix",
"rev": "bdb6355009562d8f9313d9460c0d3860f525bc6c", "rev": "6fc8bded78715cdd43a3278a14ded226eb3a239e",
"type": "github" "type": "github"
}, },
"original": { "original": {

View file

@ -8,6 +8,8 @@
programs.nixpkgs-fmt.enable = true; programs.nixpkgs-fmt.enable = true;
programs.shellcheck.enable = true; programs.shellcheck.enable = true;
programs.deno.enable = true; programs.deno.enable = true;
programs.ruff.check = true;
programs.ruff.format = true;
settings.formatter.shellcheck.options = [ "-s" "bash" ]; settings.formatter.shellcheck.options = [ "-s" "bash" ];
programs.mypy = { programs.mypy = {
@ -16,18 +18,9 @@
pkgs.python3.pkgs.twisted pkgs.python3.pkgs.twisted
]; ];
}; };
settings.formatter.python = {
command = "sh"; settings.formatter.ruff-check.priority = 1;
options = [ settings.formatter.ruff-format.priority = 2;
"-eucx"
''
${pkgs.ruff}/bin/ruff --fix "$@"
${pkgs.ruff}/bin/ruff format "$@"
''
"--" # this argument is ignored by bash
];
includes = [ "*.py" ];
};
}; };
}; };
} }