forked from AUTOMATIC1111/stable-diffusion-webui
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'dev' into reorder-hotkeys
- Loading branch information
Showing
157 changed files
with
5,202 additions
and
3,742 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
extensions | ||
extensions-disabled | ||
repositories | ||
venv |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,90 @@ | ||
/* global module */ | ||
module.exports = { | ||
env: { | ||
browser: true, | ||
es2021: true, | ||
}, | ||
extends: "eslint:recommended", | ||
parserOptions: { | ||
ecmaVersion: "latest", | ||
}, | ||
rules: { | ||
"arrow-spacing": "error", | ||
"block-spacing": "error", | ||
"brace-style": "error", | ||
"comma-dangle": ["error", "only-multiline"], | ||
"comma-spacing": "error", | ||
"comma-style": ["error", "last"], | ||
"curly": ["error", "multi-line", "consistent"], | ||
"eol-last": "error", | ||
"func-call-spacing": "error", | ||
"function-call-argument-newline": ["error", "consistent"], | ||
"function-paren-newline": ["error", "consistent"], | ||
"indent": ["error", 4], | ||
"key-spacing": "error", | ||
"keyword-spacing": "error", | ||
"linebreak-style": ["error", "unix"], | ||
"no-extra-semi": "error", | ||
"no-mixed-spaces-and-tabs": "error", | ||
"no-multi-spaces": "error", | ||
"no-redeclare": ["error", {builtinGlobals: false}], | ||
"no-trailing-spaces": "error", | ||
"no-unused-vars": "off", | ||
"no-whitespace-before-property": "error", | ||
"object-curly-newline": ["error", {consistent: true, multiline: true}], | ||
"object-curly-spacing": ["error", "never"], | ||
"operator-linebreak": ["error", "after"], | ||
"quote-props": ["error", "consistent-as-needed"], | ||
"semi": ["error", "always"], | ||
"semi-spacing": "error", | ||
"semi-style": ["error", "last"], | ||
"space-before-blocks": "error", | ||
"space-before-function-paren": ["error", "never"], | ||
"space-in-parens": ["error", "never"], | ||
"space-infix-ops": "error", | ||
"space-unary-ops": "error", | ||
"switch-colon-spacing": "error", | ||
"template-curly-spacing": ["error", "never"], | ||
"unicode-bom": "error", | ||
}, | ||
globals: { | ||
//script.js | ||
gradioApp: "readonly", | ||
onUiLoaded: "readonly", | ||
onUiUpdate: "readonly", | ||
onOptionsChanged: "readonly", | ||
uiCurrentTab: "writable", | ||
uiElementIsVisible: "readonly", | ||
uiElementInSight: "readonly", | ||
executeCallbacks: "readonly", | ||
//ui.js | ||
opts: "writable", | ||
all_gallery_buttons: "readonly", | ||
selected_gallery_button: "readonly", | ||
selected_gallery_index: "readonly", | ||
switch_to_txt2img: "readonly", | ||
switch_to_img2img_tab: "readonly", | ||
switch_to_img2img: "readonly", | ||
switch_to_sketch: "readonly", | ||
switch_to_inpaint: "readonly", | ||
switch_to_inpaint_sketch: "readonly", | ||
switch_to_extras: "readonly", | ||
get_tab_index: "readonly", | ||
create_submit_args: "readonly", | ||
restart_reload: "readonly", | ||
updateInput: "readonly", | ||
//extraNetworks.js | ||
requestGet: "readonly", | ||
popup: "readonly", | ||
// from python | ||
localization: "readonly", | ||
// progrssbar.js | ||
randomId: "readonly", | ||
requestProgress: "readonly", | ||
// imageviewer.js | ||
modalPrevImage: "readonly", | ||
modalNextImage: "readonly", | ||
// token-counters.js | ||
setupTokenCounters: "readonly", | ||
} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# Apply ESlint | ||
9c54b78d9dde5601e916f308d9a9d6953ec39430 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,15 @@ | ||
# Please read the [contributing wiki page](https://github.com/AUTOMATIC1111/stable-diffusion-webui/wiki/Contributing) before submitting a pull request! | ||
## Description | ||
|
||
If you have a large change, pay special attention to this paragraph: | ||
* a simple description of what you're trying to accomplish | ||
* a summary of changes in code | ||
* which issues it fixes, if any | ||
|
||
> Before making changes, if you think that your feature will result in more than 100 lines changing, find me and talk to me about the feature you are proposing. It pains me to reject the hard work someone else did, but I won't add everything to the repo, and it's better if the rejection happens before you have to waste time working on the feature. | ||
## Screenshots/videos: | ||
|
||
Otherwise, after making sure you're following the rules described in wiki page, remove this section and continue on. | ||
|
||
**Describe what this pull request is trying to achieve.** | ||
## Checklist: | ||
|
||
A clear and concise description of what you're trying to accomplish with this, so your intent doesn't have to be extracted from your code. | ||
|
||
**Additional notes and description of your changes** | ||
|
||
More technical discussion about your changes go here, plus anything that a maintainer might have to specifically take a look at, or be wary of. | ||
|
||
**Environment this was tested in** | ||
|
||
List the environment you have developed / tested this on. As per the contributing page, changes should be able to work on Windows out of the box. | ||
- OS: [e.g. Windows, Linux] | ||
- Browser: [e.g. chrome, safari] | ||
- Graphics card: [e.g. NVIDIA RTX 2080 8GB, AMD RX 6600 8GB] | ||
|
||
**Screenshots or videos of your changes** | ||
|
||
If applicable, screenshots or a video showing off your changes. If it edits an existing UI, it should ideally contain a comparison of what used to be there, before your changes were made. | ||
|
||
This is **required** for anything that touches the user interface. | ||
- [ ] I have read [contributing wiki page](https://github.com/AUTOMATIC1111/stable-diffusion-webui/wiki/Contributing) | ||
- [ ] I have performed a self-review of my own code | ||
- [ ] My code follows the [style guidelines](https://github.com/AUTOMATIC1111/stable-diffusion-webui/wiki/Contributing#code-style) | ||
- [ ] My code passes [tests](https://github.com/AUTOMATIC1111/stable-diffusion-webui/wiki/Tests) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,39 +1,34 @@ | ||
# See https://github.com/actions/starter-workflows/blob/1067f16ad8a1eac328834e4b0ae24f7d206f810d/ci/pylint.yml for original reference file | ||
name: Run Linting/Formatting on Pull Requests | ||
|
||
on: | ||
- push | ||
- 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: | ||
lint: | ||
lint-python: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout Code | ||
uses: actions/checkout@v3 | ||
- name: Set up Python 3.10 | ||
uses: actions/setup-python@v4 | ||
- uses: actions/setup-python@v4 | ||
with: | ||
python-version: 3.10.6 | ||
cache: pip | ||
cache-dependency-path: | | ||
**/requirements*txt | ||
- name: Install PyLint | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install pylint | ||
# This lets PyLint check to see if it can resolve imports | ||
- name: Install dependencies | ||
run: | | ||
export COMMANDLINE_ARGS="--skip-torch-cuda-test --exit" | ||
python launch.py | ||
- name: Analysing the code with pylint | ||
run: | | ||
pylint $(git ls-files '*.py') | ||
python-version: 3.11 | ||
# NB: there's no cache: pip here since we're not installing anything | ||
# from the requirements.txt file(s) in the repository; it's faster | ||
# not to have GHA download an (at the time of writing) 4 GB cache | ||
# of PyTorch and other dependencies. | ||
- name: Install Ruff | ||
run: pip install ruff==0.0.265 | ||
- name: Run Ruff | ||
run: ruff . | ||
lint-js: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout Code | ||
uses: actions/checkout@v3 | ||
- name: Install Node.js | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18 | ||
- run: npm i --ci | ||
- run: npm run lint |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -34,3 +34,6 @@ notification.mp3 | |
/test/stderr.txt | ||
/cache.json* | ||
/config_states/ | ||
/node_modules | ||
/package-lock.json | ||
/.coverage* |
Oops, something went wrong.