From 11850b75c8f57e5d7deed64315973ef0ee94b535 Mon Sep 17 00:00:00 2001 From: Jun Siang Cheah Date: Sun, 31 Mar 2024 22:13:39 +0100 Subject: [PATCH] chore: add format:backend npm script to match ci --- .github/workflows/format-backend.yaml | 2 +- package.json | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/format-backend.yaml b/.github/workflows/format-backend.yaml index e9fd0c6..dd0e948 100644 --- a/.github/workflows/format-backend.yaml +++ b/.github/workflows/format-backend.yaml @@ -33,7 +33,7 @@ jobs: pip install black - name: Format backend - run: black . --exclude "/venv/" + run: npm run format:backend - name: Check for changes after format run: git diff --exit-code diff --git a/package.json b/package.json index ecf140c..9178a3f 100644 --- a/package.json +++ b/package.json @@ -13,6 +13,7 @@ "lint:types": "npm run check", "lint:backend": "pylint backend/", "format": "prettier --plugin-search-dir --write '**/*.{js,ts,svelte,css,md,html,json}'", + "format:backend": "black . --exclude \"/venv/\"", "i18n:parse": "i18next --config i18next-parser.config.ts && prettier --write 'src/lib/i18n/**/*.{js,json}'" }, "devDependencies": {