Skip to content

Commit cf3c355

Browse files
authored
refactor: ruff D100 を適用 (#1619)
1 parent 4550dc4 commit cf3c355

21 files changed

+48
-1
lines changed

pyproject.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ ignore = [
77
"E501", # line-too-long
88
"D400", # missing-trailing-period。日本語の「。」に対応していないため。
99
"D403", # first-word-uncapitalized。日本語とは無関係であるため。日英混合時の挙動に一貫性が無いため。
10-
"D100", # NOTE: 段階的に有効化する可能性がある。
1110
"D102", # NOTE: 段階的に有効化する可能性がある。
1211
"D103", # NOTE: 段階的に有効化する可能性がある。
1312
]

test/conftest.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
"""全テスト共通の pytest 用 fixtures。"""
2+
13
import pytest
24
from syrupy.assertion import SnapshotAssertion
35
from syrupy.extensions.json import JSONSnapshotExtension

test/e2e/conftest.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
"""E2E テスト共通の pytest 用 fixtures。"""
2+
13
import json
24
import shutil
35
from pathlib import Path

test/e2e/single_api/utils.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
"""単独 API に対する E2E テスト共通のユーティリティ。"""
2+
13
from typing import TypedDict
24

35

test/e2e/test_openapi.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
"""OpenAPI スキーマのテスト。"""
2+
13
from typing import Any
24

35
from fastapi import FastAPI

test/unit/library/test_library_manager.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
"""ライブラリ管理の単体テスト。"""
2+
13
import copy
24
import glob
35
import json

test/unit/preset/test_preset.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
"""プリセット管理の単体テスト。"""
2+
13
from os import environ, remove
24
from pathlib import Path
35
from shutil import copyfile

test/unit/resource_manager/test_resource_manager.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
"""リソースマネージャーの単体テスト。"""
2+
13
import base64
24
from pathlib import Path
35

test/unit/setting/test_setting.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
"""設定管理の単体テスト。"""
2+
# TODO: モジュール/ファイル名とモジュール docstring の一貫性を検証
3+
14
from pathlib import Path
25

36
from voicevox_engine.setting.model import CorsPolicyMode

test/unit/test_metas_store.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
"""キャラクターメタ情報の単体テスト。"""
2+
# TODO: モジュール/ファイル名とモジュール docstring の一貫性を検証
3+
14
import uuid
25

36
from voicevox_engine.metas.Metas import (

0 commit comments

Comments
 (0)