mirror of
https://github.com/kuhyx/testsAndMisc.git
synced 2026-11-24 14:26:17 +01:00
Enable PGH003: use specific type ignore codes
This commit is contained in:
parent
d8e17e92e7
commit
3fcc7b62d9
@ -31,9 +31,9 @@ import re
|
|||||||
import sys
|
import sys
|
||||||
|
|
||||||
try:
|
try:
|
||||||
import psutil # type: ignore
|
import psutil # type: ignore[import-untyped]
|
||||||
except Exception: # pragma: no cover - optional dependency; we fall back if unavailable
|
except Exception: # pragma: no cover - optional dependency; we fall back if unavailable
|
||||||
psutil = None # type: ignore
|
psutil = None # type: ignore[assignment]
|
||||||
|
|
||||||
try:
|
try:
|
||||||
import chess
|
import chess
|
||||||
|
|||||||
@ -58,7 +58,6 @@ ignore = [
|
|||||||
"FBT003", # Boolean positional value - common pattern
|
"FBT003", # Boolean positional value - common pattern
|
||||||
"ARG001", # Unused function argument - often needed for API compatibility
|
"ARG001", # Unused function argument - often needed for API compatibility
|
||||||
"ARG002", # Unused method argument - often needed for API compatibility
|
"ARG002", # Unused method argument - often needed for API compatibility
|
||||||
"PGH003", # blanket-type-ignore - existing code
|
|
||||||
"PLC0415", # import-outside-top-level - sometimes necessary
|
"PLC0415", # import-outside-top-level - sometimes necessary
|
||||||
"N816", # mixed-case-variable-in-global-scope - often constants
|
"N816", # mixed-case-variable-in-global-scope - often constants
|
||||||
"N806", # non-lowercase-variable - sometimes intentional
|
"N806", # non-lowercase-variable - sometimes intentional
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user