@@ -2903,25 +2903,25 @@ in
2903
2903
# [0]: https://github.com/cachix/pre-commit-hooks.nix/pull/387#issuecomment-1893600631
2904
2904
configAsFile =
2905
2905
# Highest precedence.
2906
- if settings . typos . configFile != null
2907
- then ( toString settings . typos . configFile )
2906
+ if hooks . typos . settings . configFile != null
2907
+ then ( toString hooks . typos . settings . configFile )
2908
2908
# Secondary precedence.
2909
- else if settings . typos . configPath != ""
2910
- then settings . typos . configPath
2909
+ else if hooks . typos . settings . configPath != ""
2910
+ then hooks . typos . settings . configPath
2911
2911
# Lowest precedence.
2912
2912
else
2913
2913
builtins . toFile "config.toml"
2914
2914
# Concatenate config in config file with section for ignoring words
2915
2915
# generated from list of words to ignore
2916
- ( "${ settings . typos . config } " +
2917
- lib . strings . optionalString ( settings . typos . ignored-words != [ ] ) "\n \[ default.extend-words\] " +
2918
- lib . strings . concatMapStrings ( x : "\n ${ x } = \" ${ x } \" " ) settings . typos . ignored-words
2916
+ ( "${ hooks . typos . settings . config } " +
2917
+ lib . strings . optionalString ( hooks . typos . settings . ignored-words != [ ] ) "\n \[ default.extend-words\] " +
2918
+ lib . strings . concatMapStrings ( x : "\n ${ x } = \" ${ x } \" " ) hooks . typos . settings . ignored-words
2919
2919
)
2920
2920
;
2921
2921
# If the config file path is passed as Nix string and not as Nix
2922
2922
# Path, we can't read it from Nix, unfortunately.
2923
2923
excludesFromConfig =
2924
- if settings . typos . configPath == "" # passed directly or as Path
2924
+ if hooks . typos . settings . configPath == "" # passed directly or as Path
2925
2925
then
2926
2926
(
2927
2927
let
0 commit comments