mirror of https://github.com/coqui-ai/TTS.git
parent
04d8d4b09a
commit
39149ef564
|
@ -12,12 +12,6 @@ repos:
|
||||||
hooks:
|
hooks:
|
||||||
- id: black
|
- id: black
|
||||||
language_version: python3
|
language_version: python3
|
||||||
- repo: https://github.com/pycqa/isort
|
|
||||||
rev: 5.13.1
|
|
||||||
hooks:
|
|
||||||
- id: isort
|
|
||||||
name: isort (cython)
|
|
||||||
types: [cython]
|
|
||||||
- repo: https://github.com/astral-sh/ruff-pre-commit
|
- repo: https://github.com/astral-sh/ruff-pre-commit
|
||||||
rev: v0.1.7
|
rev: v0.1.7
|
||||||
hooks:
|
hooks:
|
||||||
|
|
|
@ -82,7 +82,7 @@ The following steps are tested on an Ubuntu system.
|
||||||
$ make test_all # run all the tests, report all the errors
|
$ make test_all # run all the tests, report all the errors
|
||||||
```
|
```
|
||||||
|
|
||||||
9. Format your code. We use ```black``` for code and ```isort``` for ```import``` formatting.
|
9. Format your code. We use ```black``` for code formatting.
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
$ make style
|
$ make style
|
||||||
|
|
2
Makefile
2
Makefile
|
@ -46,12 +46,10 @@ test_failed: ## only run tests failed the last time.
|
||||||
|
|
||||||
style: ## update code style.
|
style: ## update code style.
|
||||||
black ${target_dirs}
|
black ${target_dirs}
|
||||||
isort ${target_dirs}
|
|
||||||
|
|
||||||
lint: ## run linters.
|
lint: ## run linters.
|
||||||
ruff ${target_dirs}
|
ruff ${target_dirs}
|
||||||
black ${target_dirs} --check
|
black ${target_dirs} --check
|
||||||
isort ${target_dirs} --check-only
|
|
||||||
|
|
||||||
system-deps: ## install linux system deps
|
system-deps: ## install linux system deps
|
||||||
sudo apt-get install -y libsndfile1-dev
|
sudo apt-get install -y libsndfile1-dev
|
||||||
|
|
|
@ -64,8 +64,3 @@ max-returns = 7
|
||||||
[tool.black]
|
[tool.black]
|
||||||
line-length = 120
|
line-length = 120
|
||||||
target-version = ['py39']
|
target-version = ['py39']
|
||||||
|
|
||||||
[tool.isort]
|
|
||||||
line_length = 120
|
|
||||||
profile = "black"
|
|
||||||
multi_line_output = 3
|
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
black
|
black
|
||||||
coverage
|
coverage
|
||||||
isort
|
|
||||||
nose2
|
nose2
|
||||||
ruff==0.1.3
|
ruff==0.1.3
|
||||||
|
|
Loading…
Reference in New Issue