mirror of
https://github.com/RichieCahill/dotfiles.git
synced 2026-04-21 06:39:09 -04:00
fix: resolve PLR2004 magic number lint violations in splendor code
Replace magic numbers in bot.py with existing GameConfig values (max_token_take, minimum_tokens_to_buy_2) and named probability constants. Add inline noqa for argument-count checks in human.py. Remove temporary PLR2004 suppression from pyproject.toml. https://claude.ai/code/session_01C17fUuuiYc8zrwpnw2cgpr
This commit is contained in:
@@ -48,9 +48,8 @@ lint.ignore = [
|
||||
"ERA001", # (perm) I don't care about print statements dir
|
||||
]
|
||||
"python/splendor/**" = [
|
||||
"S311", # (perm) there is no security issue here
|
||||
"T201", # (perm) I don't care about print statements dir
|
||||
"PLR2004", # (temps) need to think about this
|
||||
"S311", # (perm) there is no security issue here
|
||||
"T201", # (perm) I don't care about print statements dir
|
||||
]
|
||||
"python/orm/**" = [
|
||||
"TC003", # (perm) this creates issues because sqlalchemy uses these at runtime
|
||||
|
||||
Reference in New Issue
Block a user