From 5ab7d0345a902f5f4c30f9c31ccf42c563ad6463 Mon Sep 17 00:00:00 2001 From: NAHO <90870942+trueNAHO@users.noreply.github.com> Date: Wed, 21 Aug 2024 18:24:09 +0200 Subject: [PATCH] treewide: add and apply typos pre-commit hook Link: https://github.com/danth/stylix/pull/519 --- docs/src/styling.md | 2 +- flake.nix | 1 + palette-generator/Stylix/Output.hs | 2 +- palette-generator/Stylix/Palette.hs | 2 +- stylix/testbed.nix | 2 +- 5 files changed, 5 insertions(+), 4 deletions(-) diff --git a/docs/src/styling.md b/docs/src/styling.md index 5d335d16..f44a824b 100644 --- a/docs/src/styling.md +++ b/docs/src/styling.md @@ -11,7 +11,7 @@ applications that don't fit into any of the groups below. In this case it is up to the committer to make sure said application fits in stylistically with the rest of the themed applications. -It is also importent to note that this is a growing theming guide and when theming an application and you find the guide to be lacking in any way in +It is also important to note that this is a growing theming guide and when theming an application and you find the guide to be lacking in any way in terms of direction, you are encouraged to open an issue regarding what you would like to see added to the style guide. ## Terms diff --git a/flake.nix b/flake.nix index 60aab63c..f380cb08 100644 --- a/flake.nix +++ b/flake.nix @@ -101,6 +101,7 @@ hooks = { deadnix.enable = true; statix.enable = true; + typos.enable = true; }; src = ./.; diff --git a/palette-generator/Stylix/Output.hs b/palette-generator/Stylix/Output.hs index 9d4bb9c9..9d6733cf 100644 --- a/palette-generator/Stylix/Output.hs +++ b/palette-generator/Stylix/Output.hs @@ -10,7 +10,7 @@ toHexNum :: Double -> Word8 toHexNum = truncate {- | -Convert a colour to a hexdecimal string. +Convert a colour to a hexadecimal string. >>> toHex (RGB 255 255 255) "ffffff" diff --git a/palette-generator/Stylix/Palette.hs b/palette-generator/Stylix/Palette.hs index 83d18596..1102a338 100644 --- a/palette-generator/Stylix/Palette.hs +++ b/palette-generator/Stylix/Palette.hs @@ -10,7 +10,7 @@ import Data.Vector ( (//) ) import qualified Data.Vector as V import System.Random ( randomRIO ) --- | Extract the primary scale from a pallete. +-- | Extract the primary scale from a palette. primary :: V.Vector a -> V.Vector a primary = V.take 8 diff --git a/stylix/testbed.nix b/stylix/testbed.nix index 7fc73837..adf4be53 100644 --- a/stylix/testbed.nix +++ b/stylix/testbed.nix @@ -14,7 +14,7 @@ let security.sudo.wheelNeedsPassword = false; # The state version can safely track the latest release because the disk - # image is ephermal. + # image is ephemeral. system.stateVersion = config.system.nixos.release; home-manager.users.${username}.home.stateVersion = config.system.nixos.release;