forked from Sygil-Dev/muse-maskgit-pytorch
-
-
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 pull request Sygil-Dev#26 from Sygil-Dev/dev
Merge dev to main.
- Loading branch information
Showing
25 changed files
with
1,603 additions
and
487 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,39 @@ | ||
name: pre-commit | ||
|
||
on: | ||
pull_request: | ||
push: | ||
branches: | ||
- main | ||
- dev | ||
|
||
jobs: | ||
pre-commit: | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [ubuntu-latest] | ||
python-version: ["3.8", "3.10"] | ||
|
||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- name: Checkout | ||
id: checkout | ||
uses: actions/checkout@v3 | ||
with: | ||
submodules: "recursive" | ||
|
||
- name: Set up Python | ||
id: setup-python | ||
uses: actions/setup-python@v3 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: Install package | ||
id: install-package | ||
run: | | ||
python -m pip install --upgrade pip setuptools wheel | ||
pip install -e '.[dev]' | ||
- name: Run pre-commit | ||
uses: pre-commit/[email protected] |
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 |
---|---|---|
|
@@ -138,3 +138,6 @@ dmypy.json | |
|
||
# Pyre type checker | ||
.pyre/ | ||
|
||
# setuptools-scm version file | ||
muse_maskgit_pytorch/_version.py |
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,21 @@ | ||
# See https://pre-commit.com for more information | ||
# See https://pre-commit.com/hooks.html for more hooks | ||
repos: | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v4.4.0 | ||
hooks: | ||
- id: trailing-whitespace | ||
- id: end-of-file-fixer | ||
- id: check-yaml | ||
- id: check-added-large-files | ||
|
||
- repo: https://github.com/charliermarsh/ruff-pre-commit | ||
rev: "v0.0.272" | ||
hooks: | ||
- id: ruff | ||
args: [--fix, --exit-non-zero-on-fix] | ||
|
||
- repo: https://github.com/psf/black | ||
rev: 23.3.0 | ||
hooks: | ||
- id: black |
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,9 @@ | ||
{ | ||
"recommendations": [ | ||
"ms-python.python", | ||
"charliermarsh.ruff", | ||
"redhat.vscode-yaml", | ||
"codezombiech.gitignore", | ||
"ms-python.black-formatter" | ||
] | ||
} |
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,11 @@ | ||
{ | ||
"configurations": [ | ||
{ | ||
"name": "Python: Verify attn impl equivalence", | ||
"type": "python", | ||
"request": "launch", | ||
"module": "attn_test", | ||
"justMyCode": false | ||
} | ||
] | ||
} |
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,44 @@ | ||
{ | ||
"editor.formatOnSaveMode": "file", | ||
|
||
"files.associations": { | ||
".config": "shellscript", | ||
".gitignore": "gitignore", | ||
".vscode/*.json": "jsonc", | ||
"*.txt": "plaintext", | ||
"requirements*.txt": "pip-requirements", | ||
"setup.cfg": "ini", | ||
}, | ||
|
||
"[json]": { | ||
"editor.codeActionsOnSave": { | ||
"source.fixAll.sortJSON": false | ||
}, | ||
"editor.defaultFormatter": "vscode.json-language-features", | ||
"editor.formatOnSave": true, | ||
"editor.tabSize": 4 | ||
}, | ||
"[jsonc]": { | ||
"editor.codeActionsOnSave": { | ||
"source.fixAll.sortJSON": false | ||
}, | ||
"editor.defaultFormatter": "vscode.json-language-features", | ||
"editor.formatOnSave": true, | ||
"editor.tabSize": 4 | ||
}, | ||
"json.format.keepLines": true, | ||
|
||
"[python]": { | ||
"editor.formatOnSave": true, | ||
"editor.defaultFormatter": "ms-python.black-formatter", | ||
"editor.codeActionsOnSave": { | ||
"source.organizeImports": true | ||
} | ||
}, | ||
"python.formatting.provider": "none", | ||
"ruff.organizeImports": true, | ||
"ruff.args": [ "--line-length=110", "--extend-ignore=F401,F841" ], | ||
"black-formatter.args": [ "--line-length", "110" ], | ||
"python.linting.flake8Enabled": false, | ||
"python.linting.mypyEnabled": false, | ||
} |
Oops, something went wrong.