Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
S
Stable Diffusion Webui
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
novelai-storage
Stable Diffusion Webui
Commits
837d3a94
Commit
837d3a94
authored
May 10, 2023
by
AUTOMATIC1111
Committed by
GitHub
May 10, 2023
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #10233 from akx/fix-lint-ci
Replace pylint CI with ruff
parents
4b854806
990ca80c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
35 additions
and
18 deletions
+35
-18
.github/workflows/on_pull_request.yaml
.github/workflows/on_pull_request.yaml
+25
-18
ruff.toml
ruff.toml
+10
-0
No files found.
.github/workflows/on_pull_request.yaml
View file @
837d3a94
...
...
@@ -18,22 +18,29 @@ jobs:
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 .
# The rest are currently disabled pending fixing of e.g. installing the torch dependency.
# - 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')
ruff.toml
0 → 100644
View file @
837d3a94
target-version
=
"py310"
select
=
[
"E999"
,
# syntax error
]
extend-exclude
=
[
"extensions"
,
"extensions-disabled"
,
]
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