Skip to content

Commit

Permalink
build: update to ruff 0.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
eginhard committed Mar 6, 2024
1 parent 39149ef commit 1961687
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ repos:
- id: black
language_version: python3
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.1.7
rev: v0.3.0
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix]
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ style: ## update code style.
black ${target_dirs}

lint: ## run linters.
ruff ${target_dirs}
ruff check ${target_dirs}
black ${target_dirs} --check

system-deps: ## install linux system deps
Expand Down
8 changes: 4 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ requires = [

[tool.ruff]
line-length = 120
extend-select = [
lint.extend-select = [
"B033", # duplicate-value
"C416", # unnecessary-comprehension
"D419", # empty-docstring
Expand All @@ -30,7 +30,7 @@ extend-select = [
"W291", # trailing-whitespace
]

ignore = [
lint.ignore = [
"E501", # line too long
"E722", # bare except (TODO: fix these)
"E731", # don't use lambdas
Expand All @@ -47,12 +47,12 @@ ignore = [
"PLW0603", # TODO: enable
]

[tool.ruff.pylint]
[tool.ruff.lint.pylint]
max-args = 5
max-public-methods = 20
max-returns = 7

[tool.ruff.per-file-ignores]
[tool.ruff.lint.per-file-ignores]
"**/__init__.py" = [
"F401", # init files may have "unused" imports for now
"F403", # init files may have star imports for now
Expand Down
2 changes: 1 addition & 1 deletion requirements.dev.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
black
coverage
nose2
ruff==0.1.3
ruff==0.3.0
1 change: 0 additions & 1 deletion tests/tts_tests/test_vits.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@ def test_load_audio(self):

def test_dataset(self):
"""TODO:"""
...

def test_init_multispeaker(self):
num_speakers = 10
Expand Down

0 comments on commit 1961687

Please sign in to comment.