Skip to content

Commit 699ca71

Browse files
authored
Merge pull request #18 from Stardust-minus/dev
add japanese support and other fix
2 parents f7db8c9 + f63acb9 commit 699ca71

38 files changed

+37332
-2033
lines changed

Diff for: .github/workflows/pull_format.yml

+43
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: pull format
2+
3+
on: [pull_request]
4+
5+
permissions:
6+
contents: write
7+
8+
jobs:
9+
pull_format:
10+
runs-on: ${{ matrix.os }}
11+
12+
strategy:
13+
matrix:
14+
python-version: ["3.10"]
15+
os: [ubuntu-latest]
16+
fail-fast: false
17+
18+
continue-on-error: true
19+
20+
steps:
21+
- name: checkout
22+
continue-on-error: true
23+
uses: actions/checkout@v3
24+
with:
25+
ref: ${{ github.head_ref }}
26+
fetch-depth: 0
27+
28+
- name: Set up Python ${{ matrix.python-version }}
29+
uses: actions/setup-python@v4
30+
with:
31+
python-version: ${{ matrix.python-version }}
32+
33+
- name: Install Black
34+
run: pip install "black[jupyter]"
35+
36+
- name: Run Black
37+
# run: black $(git ls-files '*.py')
38+
run: black .
39+
40+
- name: Commit Back
41+
uses: stefanzweifel/git-auto-commit-action@v4
42+
with:
43+
commit_message: Apply Code Formatter Change

Diff for: .github/workflows/push_format.yml

+57
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
name: push format
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
- dev
8+
9+
permissions:
10+
contents: write
11+
pull-requests: write
12+
13+
jobs:
14+
push_format:
15+
runs-on: ${{ matrix.os }}
16+
17+
strategy:
18+
matrix:
19+
python-version: ["3.10"]
20+
os: [ubuntu-latest]
21+
fail-fast: false
22+
23+
steps:
24+
- uses: actions/checkout@v3
25+
with:
26+
ref: ${{github.ref_name}}
27+
28+
- name: Set up Python ${{ matrix.python-version }}
29+
uses: actions/setup-python@v4
30+
with:
31+
python-version: ${{ matrix.python-version }}
32+
33+
- name: Install Black
34+
run: pip install "black[jupyter]"
35+
36+
- name: Run Black
37+
# run: black $(git ls-files '*.py')
38+
run: black .
39+
40+
- name: Commit Back
41+
continue-on-error: true
42+
id: commitback
43+
run: |
44+
git config --local user.email "github-actions[bot]@users.noreply.github.com"
45+
git config --local user.name "github-actions[bot]"
46+
git add --all
47+
git commit -m "Format code"
48+
49+
- name: Create Pull Request
50+
if: steps.commitback.outcome == 'success'
51+
continue-on-error: true
52+
uses: peter-evans/create-pull-request@v5
53+
with:
54+
delete-branch: true
55+
body: Apply Code Formatter Change
56+
title: Apply Code Formatter Change
57+
commit-message: Automatic code format

Diff for: .gitignore

+4
Original file line numberDiff line numberDiff line change
@@ -162,3 +162,7 @@ cython_debug/
162162
.DS_Store
163163
/models
164164
/logs
165+
166+
filelists/*
167+
!/filelists/esd.list
168+
data/*

Diff for: .pre-commit-config.yaml

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
repos:
2+
- repo: https://github.com/pre-commit/pre-commit-hooks
3+
rev: v2.3.0
4+
hooks:
5+
- id: check-yaml
6+
- id: end-of-file-fixer
7+
- id: trailing-whitespace
8+
9+
- repo: https://github.com/astral-sh/ruff-pre-commit
10+
rev: v0.0.280
11+
hooks:
12+
- id: ruff
13+
args: [ --fix ]
14+
15+
- repo: https://github.com/psf/black
16+
rev: 22.12.0
17+
hooks:
18+
- id: black
19+
20+
- repo: https://github.com/codespell-project/codespell
21+
rev: v2.2.4
22+
hooks:
23+
- id: codespell
24+
files: ^.*\.(py|md|rst|yml)$
25+
args: [-L=fro]

Diff for: README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@
33
VITS2 Backbone with bert
44
## 成熟的旅行者/开拓者/舰长/博士/sensei/猎魔人/喵喵露/V应该参阅代码自己学习如何训练。
55
### 严禁将此项目用于一切违反《中华人民共和国宪法》,《中华人民共和国刑法》,《中华人民共和国治安管理处罚法》和《中华人民共和国民法典》之用途。
6-
#### Video:https://www.bilibili.com/video/BV1hp4y1K78E
6+
#### Video:https://www.bilibili.com/video/BV1hp4y1K78E
77
#### Demo:https://www.bilibili.com/video/BV1TF411k78w

0 commit comments

Comments
 (0)