Skip to content
Open
Changes from 1 commit
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
4 changes: 2 additions & 2 deletions linters/pre-commit-hooks/pre_commit_hooks.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ import { linterFmtTest, TestCallback } from "tests";
const fmtCallbacks: TestCallback = (driver) => {
const trunkYamlPath = ".trunk/trunk.yaml";
const currentContents = driver.readFile(trunkYamlPath);
const sqlfluffRegex = /- pre-commit-hooks@(.+)\n/;
const enableRegex = /- pre-commit-hooks@(.+)\n/;
const newContents = currentContents.replace(
sqlfluffRegex,
enableRegex,
"- pre-commit-hooks@$1:\n commands: [end-of-file-fixer]\n",
);
driver.writeFile(trunkYamlPath, newContents);
Expand Down