Skip to content

Commit

Permalink
Merge pull request #18 from Stardust-minus/dev
Browse files Browse the repository at this point in the history
add japanese support and other fix
  • Loading branch information
leng-yue authored Sep 12, 2023
2 parents f7db8c9 + f63acb9 commit 699ca71
Show file tree
Hide file tree
Showing 38 changed files with 37,332 additions and 2,033 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/pull_format.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: pull format

on: [pull_request]

permissions:
contents: write

jobs:
pull_format:
runs-on: ${{ matrix.os }}

strategy:
matrix:
python-version: ["3.10"]
os: [ubuntu-latest]
fail-fast: false

continue-on-error: true

steps:
- name: checkout
continue-on-error: true
uses: actions/checkout@v3
with:
ref: ${{ github.head_ref }}
fetch-depth: 0

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}

- name: Install Black
run: pip install "black[jupyter]"

- name: Run Black
# run: black $(git ls-files '*.py')
run: black .

- name: Commit Back
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: Apply Code Formatter Change
57 changes: 57 additions & 0 deletions .github/workflows/push_format.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
name: push format

on:
push:
branches:
- master
- dev

permissions:
contents: write
pull-requests: write

jobs:
push_format:
runs-on: ${{ matrix.os }}

strategy:
matrix:
python-version: ["3.10"]
os: [ubuntu-latest]
fail-fast: false

steps:
- uses: actions/checkout@v3
with:
ref: ${{github.ref_name}}

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}

- name: Install Black
run: pip install "black[jupyter]"

- name: Run Black
# run: black $(git ls-files '*.py')
run: black .

- name: Commit Back
continue-on-error: true
id: commitback
run: |
git config --local user.email "github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
git add --all
git commit -m "Format code"
- name: Create Pull Request
if: steps.commitback.outcome == 'success'
continue-on-error: true
uses: peter-evans/create-pull-request@v5
with:
delete-branch: true
body: Apply Code Formatter Change
title: Apply Code Formatter Change
commit-message: Automatic code format
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -162,3 +162,7 @@ cython_debug/
.DS_Store
/models
/logs

filelists/*
!/filelists/esd.list
data/*
25 changes: 25 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.3.0
hooks:
- id: check-yaml
- id: end-of-file-fixer
- id: trailing-whitespace

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.0.280
hooks:
- id: ruff
args: [ --fix ]

- repo: https://github.com/psf/black
rev: 22.12.0
hooks:
- id: black

- repo: https://github.com/codespell-project/codespell
rev: v2.2.4
hooks:
- id: codespell
files: ^.*\.(py|md|rst|yml)$
args: [-L=fro]
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
VITS2 Backbone with bert
## 成熟的旅行者/开拓者/舰长/博士/sensei/猎魔人/喵喵露/V应该参阅代码自己学习如何训练。
### 严禁将此项目用于一切违反《中华人民共和国宪法》,《中华人民共和国刑法》,《中华人民共和国治安管理处罚法》和《中华人民共和国民法典》之用途。
#### Video:https://www.bilibili.com/video/BV1hp4y1K78E
#### Video:https://www.bilibili.com/video/BV1hp4y1K78E
#### Demo:https://www.bilibili.com/video/BV1TF411k78w
Loading

0 comments on commit 699ca71

Please sign in to comment.