Skip to content

Commit a3a4665

Browse files
committed
Fix ruff lint ignore configuration
Updated the ruff lint.ignore settings to include inline documentation links for each ignored rule. Also added "A004", "A005"
1 parent 182bf96 commit a3a4665

File tree

1 file changed

+15
-3
lines changed

1 file changed

+15
-3
lines changed

.ruff.toml

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -113,9 +113,21 @@ lint.select = [
113113
]
114114

115115
lint.ignore = [
116-
"COM812", # missing trailing comma, covered by black
117-
"ANN101", # ignore missing type annotation in self parameter
118-
"S311", # ignore Standard pseudo-random generators because they are not used for cryptographic purposes
116+
# missing trailing comma, covered by black
117+
# docs: https://docs.astral.sh/ruff/rules/missing-trailing-comma/
118+
"COM812",
119+
# ignore missing type annotation in self parameter
120+
# docs: https://docs.astral.sh/ruff/rules/missing-type-self/#missing-type-self-ann101
121+
"ANN101",
122+
# ignore builtin import shadowing
123+
# docs: https://docs.astral.sh/ruff/rules/builtin-import-shadowing/#builtin-import-shadowing-a004
124+
"A004",
125+
# ignore Standard pseudo-random generators because they are not used for cryptographic purposes
126+
# docs: https://docs.astral.sh/ruff/rules/suspicious-non-cryptographic-random-usage/#suspicious-non-cryptographic-random-usage-s311
127+
"S311",
128+
# ignore stdlib module shadowing
129+
# docs: https://docs.astral.sh/ruff/rules/stdlib-module-shadowing/
130+
"A005",
119131
]
120132

121133
fix = true

0 commit comments

Comments
 (0)