Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit4814775

Browse files
committed
Comment all Ruff rule codes; tweak formatting
This adds comments to all specific Ruff rules suppressed inpyproject.toml (most of which are global but one is for the testsonly). Some already had such comments but now all do.This also harmonizes the toml formatting style with the rest ofpyproject.toml.
1 parent00ff7e3 commit4814775

File tree

1 file changed

+17
-13
lines changed

1 file changed

+17
-13
lines changed

‎pyproject.toml

Lines changed: 17 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -54,24 +54,28 @@ exclude = [
5454
# Enable Pyflakes `E` and `F` codes by default.
5555
lint.select = [
5656
"E",
57-
"W",# see: https://pypi.org/project/pycodestyle
58-
"F",# see: https://pypi.org/project/pyflakes
59-
# "I",#see: https://pypi.org/project/isort/
60-
# "S",# see: https://pypi.org/project/flake8-bandit
61-
# "UP",# see: https://docs.astral.sh/ruff/rules/#pyupgrade-up
57+
"W",# See: https://pypi.org/project/pycodestyle
58+
"F",# See: https://pypi.org/project/pyflakes
59+
#"I", # See: https://pypi.org/project/isort/
60+
#"S", # See: https://pypi.org/project/flake8-bandit
61+
#"UP", # See: https://docs.astral.sh/ruff/rules/#pyupgrade-up
6262
]
6363
lint.extend-select = [
64-
#"A",# see: https://pypi.org/project/flake8-builtins
65-
"B",# see: https://pypi.org/project/flake8-bugbear
66-
"C4",# see: https://pypi.org/project/flake8-comprehensions
67-
"TCH004",# see: https://docs.astral.sh/ruff/rules/runtime-import-in-type-checking-block/
64+
#"A", # See: https://pypi.org/project/flake8-builtins
65+
"B",# See: https://pypi.org/project/flake8-bugbear
66+
"C4",# See: https://pypi.org/project/flake8-comprehensions
67+
"TCH004",# See: https://docs.astral.sh/ruff/rules/runtime-import-in-type-checking-block/
6868
]
6969
lint.ignore = [
70-
"E203",
71-
"E731",# Do not assign a `lambda` expression, use a `def`
70+
"E203",# Whitespace before ':'
71+
"E731",# Do not assign a `lambda` expression, use a `def`
7272
]
7373
lint.ignore-init-module-imports =true
74-
lint.unfixable = ["F401"]
74+
lint.unfixable = [
75+
"F401",# Module imported but unused
76+
]
7577

7678
[tool.ruff.lint.per-file-ignores]
77-
"test/**" = ["B018"]
79+
"test/**" = [
80+
"B018",# useless-expression
81+
]

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp