forked from Haidra-Org/AI-Horde-Worker
-
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.
Feature code linters: black, flake8, isort with github actions (Haidr…
…a-Org#30) * Add /bin to .gitignore * Add dev dependencies in requirements.dev.txt * Add style.sh script * Add setup.cfg file * Add github lint workflow * fix typo * Set the current folder in style.sh * set the correct script location in the github workflow * Running ./style.sh --fix * Running isort * Manually fixing flake8 errors * Trying to fix incompatibilities * Fix line length * Fix deleted __init__.py imports * Trying to fix creds.py not present in GitHub action * Trying to fix creds.py not present in GitHub action - try 2 * Fix style.sh shebang * Import some files after the disable_voodo and disable_xformers flags have been set * gitignore: ignore ./models if it's a soft link instead of a folder
- Loading branch information
1 parent
3382d72
commit 3ec372b
Showing
33 changed files
with
1,628 additions
and
905 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,24 @@ | ||
name: Lint | ||
|
||
on: | ||
pull_request: | ||
push: | ||
branches: [main] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Set up Python 3.9 | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3.9 | ||
|
||
- name: Install dev dependencies | ||
run: python -m pip install -r requirements.dev.txt | ||
|
||
- name: Run lint and static type checks | ||
run: bash ${GITHUB_WORKSPACE}/style.sh |
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
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,2 +1,2 @@ | ||
hf_username = "username" | ||
hf_password = "**********" | ||
hf_password = "**********" |
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,3 +1,4 @@ | ||
from .util.switch import Switch | ||
|
||
disable_xformers = Switch() | ||
disable_voodoo = Switch() |
Large diffs are not rendered by default.
Oops, something went wrong.
Oops, something went wrong.