Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

30 changes: 18 additions & 12 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -42,20 +42,26 @@
nixfmt.package = pkgs.nixfmt-rfc-style;
ruff-check.enable = true;
ruff-format.enable = true;
prettier = {
enable = true;
includes = [
"*.md"
"*.yml"
"*.yaml"
"*.json"
];
excludes = [
"CHANGELOG.md"
];
};
typos.enable = true;
};
settings.formatter.oxfmt = {
command = "${pkgs.oxfmt}/bin/oxfmt";
Copy link

Copilot AI Dec 23, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The package reference pkgs.oxfmt may not exist in nixpkgs. The oxfmt formatter is part of the oxc project, but it's unclear if it's available as a standalone package named oxfmt in nixpkgs. You should verify that this package exists in the nixpkgs version being used (nixpkgs-unstable). If the package doesn't exist or has a different name, the build will fail. Common alternatives might be pkgs.oxc (if oxfmt is included) or it may need to be added as a separate input or built from source.

Suggested change
command = "${pkgs.oxfmt}/bin/oxfmt";
command = "${pkgs.oxc}/bin/oxfmt";

Copilot uses AI. Check for mistakes.
includes = [
"*.md"
"*.yml"
"*.yaml"
"*.json"
"*.ts"
"*.tsx"
"*.js"
"*.jsx"
"*.html"
"*.css"
];
excludes = [
"CHANGELOG.md"
];
};
};

# Git hooks configuration
Expand Down
8 changes: 5 additions & 3 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,15 @@
install *extras:
uv sync {{ extras }}

# Run ruff linting
# Run ruff linting and format check
lint:
uv run ruff check .
nix fmt -- --fail-on-change

# Auto-fix linting issues
lint-fix:
# Format and auto-fix linting issues
format:
uv run ruff check --fix .
nix fmt

# Run all tests
test:
Expand Down