Skip to content

Commit

Permalink
treewide: add and apply typos pre-commit hook
Browse files Browse the repository at this point in the history
Link: danth#519
(cherry picked from commit 5ab7d03)
  • Loading branch information
trueNAHO committed Jan 4, 2025
1 parent 2352bb6 commit 29c452a
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docs/src/styling.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@
hooks = {
deadnix.enable = true;
statix.enable = true;
typos.enable = true;
};

src = ./.;
Expand Down
2 changes: 1 addition & 1 deletion palette-generator/Stylix/Output.hs
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion palette-generator/Stylix/Palette.hs
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion stylix/testbed.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 29c452a

Please sign in to comment.