Skip to content

Commit fc063a2

Browse files
authored
update ruff (#726)
1 parent 93506e0 commit fc063a2

File tree

6 files changed

+874
-868
lines changed

6 files changed

+874
-868
lines changed

annofabapi/dataclass/input.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# ruff: noqa: E501
21
# pylint: disable=too-many-lines,trailing-whitespace
32

43
"""

annofabapi/dataclass/job.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# ruff: noqa: E501
21
# pylint: disable=too-many-lines,trailing-whitespace
32

43
"""

annofabapi/dataclass/organization.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# ruff: noqa: E501
21
# pylint: disable=too-many-lines,trailing-whitespace
32

43
"""

annofabapi/dataclass/supplementary.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# ruff: noqa: E501
21
# pylint: disable=too-many-lines,trailing-whitespace
32

43
"""

pyproject.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ test = [
4747
"pytest-cov",
4848
]
4949
linter = [
50-
"ruff>=0.11,<0.12 ; python_version >= '3.12'",
50+
"ruff>=0.12 ; python_version >= '3.12'",
5151
"mypy>=1,<2 ; python_version >= '3.12'",
5252
"pylint>=3,<4 ; python_version >= '3.12'",
5353
"types-requests",
@@ -111,6 +111,7 @@ ignore = [
111111
"TD", # flake8-todos
112112
"FIX", # flake8-fixme
113113
"SIM108", # if-else-block-instead-of-if-exp, 三項演算子が読みにくい場合もあるので無視する
114+
"UP045", # non-pep604-annotation-optional: Python 3.9をサポートしている間は無視する。
114115

115116
# 以下のルールはコードに合っていないので無効化した
116117
"RSE", # flake8-raise
@@ -149,6 +150,7 @@ select = [
149150
"G004", # logging-f-string
150151
"SIM", #flake8-simplify
151152
"PLC2401", # non-ascii-name, メソッド名に日本語を利用するため
153+
"RUF059", # unused-unpacked-variable
152154
]
153155

154156

0 commit comments

Comments
 (0)