Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
open-webui
Commits
11850b75
Commit
11850b75
authored
Mar 31, 2024
by
Jun Siang Cheah
Browse files
chore: add format:backend npm script to match ci
parent
a6c154d8
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletion
+2
-1
.github/workflows/format-backend.yaml
.github/workflows/format-backend.yaml
+1
-1
package.json
package.json
+1
-0
No files found.
.github/workflows/format-backend.yaml
View file @
11850b75
...
...
@@ -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
package.json
View file @
11850b75
...
...
@@ -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"
:
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment