Skip to content

Commit a53da83

Browse files
committed
enable mypy on all unixes
1 parent b952a91 commit a53da83

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

nix/treefmt/flake-module.nix

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
];
1919

2020
programs.mypy = {
21-
enable = pkgs.stdenv.buildPlatform.isLinux;
21+
enable = pkgs.stdenv.buildPlatform.isUnix;
2222
package = pkgs.buildbot.python.pkgs.mypy;
2323
directories."." = {
2424
modules = [
@@ -37,7 +37,7 @@
3737
# the mypy module adds `./buildbot_nix/**/*.py` which does not appear to work
3838
# furthermore, saying `directories.""` will lead to `/buildbot_nix/**/*.py` which
3939
# is obviously incorrect...
40-
settings.formatter."mypy-" = lib.mkIf pkgs.stdenv.buildPlatform.isLinux {
40+
settings.formatter."mypy-" = lib.mkIf pkgs.stdenv.buildPlatform.isUnix {
4141
includes = [ "buildbot_nix/**/*.py" ];
4242
};
4343
settings.formatter.ruff-check.priority = 1;

0 commit comments

Comments
 (0)