Skip to content

Commit 02d12ed

Browse files
committed
chore: add typos configuration
- Add typos.toml to configure exclusions for the typos spell checker - Update treefmt.toml to run typos on the entire git repository rathern than individual files - Set dream2nix's nixpkgs input to track the flakes's nixpkgs since it is not up to date
1 parent 70026a3 commit 02d12ed

5 files changed

Lines changed: 28 additions & 37 deletions

File tree

.envrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ nix_direnv_manual_reload
77
watch_file flake.nix
88
watch_file flake.lock
99

10-
use flake
10+
use flake .

flake.lock

Lines changed: 14 additions & 32 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

flake.nix

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,14 @@
22
description = "Polypkgs flake";
33

44
inputs = {
5+
nixpkgs.url = "github:NixOS/nixpkgs?ref=nixpkgs-unstable";
6+
57
dream2nix.url = "github:nix-community/dream2nix";
6-
flake-utils.url = "github:numtide/flake-utils";
7-
nixpkgs.follows = "dream2nix/nixpkgs";
8+
dream2nix.inputs.nixpkgs.follows = "nixpkgs";
9+
810
pre-commit-hooks.url = "github:cachix/git-hooks.nix";
11+
12+
flake-utils.url = "github:numtide/flake-utils";
913
};
1014

1115
outputs =

treefmt.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,5 @@ options = ["-i"]
1313
[formatter.typos]
1414
command = "typos"
1515
excludes = []
16-
includes = ["*"]
17-
options = ["--write-changes"]
16+
includes = ["."]
17+
options = []

typos.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
[files]
2+
extend-exclude = [
3+
"typos.toml",
4+
"flake.lock"
5+
]

0 commit comments

Comments
 (0)