Skip to content

Commit d67c73d

Browse files
committed
Disable missing type annotation warnings in test directories
1 parent c171aaa commit d67c73d

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

pyproject.toml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -261,6 +261,7 @@ per-file-ignores."cmd2/argparse_custom.py" = [
261261
]
262262

263263
per-file-ignores."examples/*.py" = [
264+
"ANN", # Ignore all type annotation rules in examples folder
264265
"D", # Ignore all pydocstyle rules in examples folder
265266
"INP001", # Module is part of an implicit namespace
266267
"PLW2901", # loop variable overwritten inside loop
@@ -280,12 +281,14 @@ per-file-ignores."examples/unicode_commands.py" = [
280281
]
281282

282283
per-file-ignores."plugins/*.py" = [
284+
"ANN", # Ignore all type annotation rules in test folders
283285
"D", # Ignore all pydocstyle rules in test folders
284286
"INP001", # Module is part of an implicit namespace
285287
"S", # Ignore all Security rules in test folders
286288
]
287289

288290
per-file-ignores."tests/*.py" = [
291+
"ANN", # Ignore all type annotation rules in test folders
289292
"D", # Ignore all pydocstyle rules in test folders
290293
"E501", # Line too long
291294
"S", # Ignore all Security rules in test folders
@@ -301,8 +304,9 @@ per-file-ignores."tests/pyscript/*.py" = [
301304
]
302305

303306
per-file-ignores."tests_isolated/*.py" = [
304-
"D", # Ignore all pydocstyle rules in test folders
305-
"S", # Ignore all Security rules in test folders
307+
"ANN", # Ignore all type annotation rules in test folders
308+
"D", # Ignore all pydocstyle rules in test folders
309+
"S", # Ignore all Security rules in test folders
306310
]
307311

308312
per-file-ignores."tests_isolated/test_commandset/test_commandset.py" = [

0 commit comments

Comments
 (0)