Skip to content

Commit 357cda8

Browse files
authored
Merge pull request #269 from numtide/mypy
escape names in formatter names
2 parents 50862ba + 629be24 commit 357cda8

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

programs/mypy.nix

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
{ lib, pkgs, config, ... }:
2+
let
3+
escapePath = lib.replaceStrings [ "/" "." ] [ "-" "" ];
4+
in
25
{
36
meta.maintainers = [ ];
47

@@ -66,7 +69,7 @@
6669
config = lib.mkIf config.programs.mypy.enable {
6770
settings.formatter = lib.mapAttrs'
6871
(name: cfg:
69-
lib.nameValuePair "mypy-${name}" {
72+
lib.nameValuePair "mypy-${escapePath name}" {
7073
command = pkgs.bash;
7174
options = [
7275
"-eucx"

0 commit comments

Comments
 (0)