@@ -105,21 +105,32 @@ select = [
105105 " DOC" # Doc strings, kinda annoying for a bot, to be honest
106106]
107107ignore = [
108+ # General disagreement with Ruff
108109 " ANN401" , # `Any` is the correct type in some cases
109- " ASYNC109" , # dpy commonly uses this parameter
110+ " ASYNC109" , # dpy and other libraries commonly use this parameter
110111 " ASYNC116" , # Long sleeps are fine
111112 " C90" , # mc cabe complexity memes
112113 " F401" , # unused imports
113114 " F403" , # wildcard imports: `from math import *` are used in __init__.py a lot
114- " F405" , # wildcard imports
115- " INP001" , # due to how I load modules this results in annoyances
115+ " F405" , # wildcard imports are not that bad
116+ " INP001" , # due to how we load modules this results in annoyances
116117 " PLC0415" , # ruff gets this wrong, import needs to be not at top of file in some cases
118+ " RUF001" , # ambiguous characters not something I want to enforce here.
119+ " S101" , # use of assert here is a known quantity, blame typing memes
120+ " S311" , # Yes, standard pseudo-random generators are not suitable for cryptographic purposes so what
121+ " TRY003" , # over-eager rule
122+ " TRY301" , # unrealistic rule
123+
124+ # Personal problems
125+ " PLR0904" , # too many public methods
117126 " PLR0912" , # too many branches
118127 " PLR0913" , # number of function arguments
119128 " PLR0914" , # too many variables: come on
120129 " PLR0915" , # too many statements: come on, not everything is solvable in <50 lines.
130+ " PLR0917" , # too many positional arguments
131+ " PLR2004" , # Magic value comparison, may remove later
121132 " PLR6301" , # discord.py uses `self` even if I don't
122- " S101 " , # use of assert here is a known quantity, blame typing memes
133+ " S608 " , # I use f-strings with SQL and I don't know better;
123134
124135 # OLD RULES
125136 # "F401",
@@ -133,15 +144,16 @@ ignore = [
133144 # "UP038",
134145
135146 # DOC STRINGS
136- # 1. General doc string exceptions
147+ # general doc string exceptions
137148 " D100" , # Missing docstring in module: no, module level docs aren't always needed
138149 " D105" , # Missing docstring in magic method: documenting magic methods is often dumb.
139150 " D107" , # Missing docstring in `__init__`: __init__ is the wrong place to doc this.
140- " D401" , # Doc should be starting with an imperative verb: dumb rule, to be honest.
141- # 2. Exceptions for this bot because it's pointless to document *everything* in one-man project.
151+ " D401" , # Doc should be starting with an imperative verb: dumb rule tbh.
152+ # doc string exceptions
153+ # for this bot because it's a bot and it's pointless to document *everything* in one-man project.
142154 " DOC201" , # `return` is not documented in docstring
143155 " DOC501" , # raised exception is missing from docstring
144-
156+
145157 # "D104", # Missing docstring in public package. Otherwise spams __init__.py and such.
146158 # "D417", # Missing argument description. Otherwise, it keeps asking to document interaction/context args.
147159 # "D203", # one-blank-line-before-class
0 commit comments