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
8175a323
Unverified
Commit
8175a323
authored
Mar 31, 2024
by
Timothy Jaeryang Baek
Committed by
GitHub
Mar 31, 2024
Browse files
Merge pull request #1372 from cheahjs/chore/update-npm-format-scripts
chore: add format:backend to npm scripts
parents
a6c154d8
11850b75
Changes
2
Hide 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 @
8175a323
...
@@ -33,7 +33,7 @@ jobs:
...
@@ -33,7 +33,7 @@ jobs:
pip install black
pip install black
-
name
:
Format backend
-
name
:
Format backend
run
:
black . --exclude "/venv/"
run
:
npm run format:backend
-
name
:
Check for changes after format
-
name
:
Check for changes after format
run
:
git diff --exit-code
run
:
git diff --exit-code
package.json
View file @
8175a323
...
@@ -13,6 +13,7 @@
...
@@ -13,6 +13,7 @@
"lint:types"
:
"npm run check"
,
"lint:types"
:
"npm run check"
,
"lint:backend"
:
"pylint backend/"
,
"lint:backend"
:
"pylint backend/"
,
"format"
:
"prettier --plugin-search-dir --write '**/*.{js,ts,svelte,css,md,html,json}'"
,
"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}'"
"i18n:parse"
:
"i18next --config i18next-parser.config.ts && prettier --write 'src/lib/i18n/**/*.{js,json}'"
},
},
"devDependencies"
:
{
"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