# See https://github.com/actions/starter-workflows/blob/1067f16ad8a1eac328834e4b0ae24f7d206f810d/ci/pylint.yml for original reference file
name:Run Linting/Formatting on Pull Requests
name:Run Linting/Formatting on Pull Requests
on:
on:
-push
-push
-pull_request
-pull_request
# See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#onpull_requestpull_request_targetbranchesbranches-ignore for syntax docs
# if you want to filter out branches, delete the `- pull_request` and uncomment these lines :
# pull_request:
# branches:
# - master
# branches-ignore:
# - development
jobs:
jobs:
lint:
lint-python:
runs-on:ubuntu-latest
runs-on:ubuntu-latest
steps:
steps:
-name:Checkout Code
-name:Checkout Code
...
@@ -29,18 +21,14 @@ jobs:
...
@@ -29,18 +21,14 @@ jobs:
run:pip install ruff==0.0.265
run:pip install ruff==0.0.265
-name:Run Ruff
-name:Run Ruff
run:ruff .
run:ruff .
lint-js:
# The rest are currently disabled pending fixing of e.g. installing the torch dependency.
runs-on:ubuntu-latest
steps:
# - name: Install PyLint
-name:Checkout Code
# run: |
uses:actions/checkout@v3
# python -m pip install --upgrade pip
-name:Install Node.js
# pip install pylint
uses:actions/setup-node@v3
# # This lets PyLint check to see if it can resolve imports
"Sampling steps":"How many times to improve the generated image iteratively; higher values take longer; very low values can produce bad results",
"Sampling steps":"How many times to improve the generated image iteratively; higher values take longer; very low values can produce bad results",
"Sampling method":"Which algorithm to use to produce the image",
"Sampling method":"Which algorithm to use to produce the image",
"GFPGAN":"Restore low quality faces using GFPGAN neural network",
"GFPGAN":"Restore low quality faces using GFPGAN neural network",
...
@@ -114,7 +114,7 @@ titles = {
...
@@ -114,7 +114,7 @@ titles = {
"Discard weights with matching name":"Regular expression; if weights's name matches it, the weights is not written to the resulting checkpoint. Use ^model_ema to discard EMA weights.",
"Discard weights with matching name":"Regular expression; if weights's name matches it, the weights is not written to the resulting checkpoint. Use ^model_ema to discard EMA weights.",
"Extra networks tab order":"Comma-separated list of tab names; tabs listed here will appear in the extra networks UI first and in order lsited.",
"Extra networks tab order":"Comma-separated list of tab names; tabs listed here will appear in the extra networks UI first and in order lsited.",
"Negative Guidance minimum sigma":"Skip negative prompt for steps where image is already mostly denoised; the higher this value, the more skips there will be; provides increased performance in exchange for minor quality reduction."
"Negative Guidance minimum sigma":"Skip negative prompt for steps where image is already mostly denoised; the higher this value, the more skips there will be; provides increased performance in exchange for minor quality reduction."
// As it is currently, txt2img and img2img send back the previous output args (txt2img_gallery, generation_info, html_info) whenever you generate a new image.
// As it is currently, txt2img and img2img send back the previous output args (txt2img_gallery, generation_info, html_info) whenever you generate a new image.
// This can lead to uploading a huge gallery of previously generated images, which leads to an unnecessary delay between submitting and beginning to generate.
// This can lead to uploading a huge gallery of previously generated images, which leads to an unnecessary delay between submitting and beginning to generate.
// I don't know why gradio is sending outputs along with inputs, but we can prevent sending the image gallery here, which seems to be an issue for some.
// I don't know why gradio is sending outputs along with inputs, but we can prevent sending the image gallery here, which seems to be an issue for some.
// If gradio at some point stops sending outputs, this may break something
// If gradio at some point stops sending outputs, this may break something