PT011 pytest.raises(ValueError) is too broad, set the match parameter or use a more specific exception
PT019 Fixture _datetime without value is injected as parameter, use @pytest.mark.usefixtures instead
PT006 Wrong type passed to first argument of @pytest.mark.parametrize; expected tuple
PT013 Incorrect import of pytest; use import pytest instead
PT007 Wrong values type in @pytest.mark.parametrize expected list of tuple
PT003 scope='function' is implied in @pytest.fixture()
PT018 Assertion should be broken down into multiple parts
RUF*
RUF015 Prefer next(...) over single element slice
RUF001 String contains ambiguous ➕ (HEAVY PLUS SIGN). Did you mean + (PLUS SIGN)? -> ignore
RUF013 PEP 484 prohibits implicit Optional
RUF005 Consider (*group_path, group_path[-1] + "_events") instead of concatenation
RUF007 Prefer itertools.pairwise() over zip() when iterating over successive pairs
RUF009 Do not perform function call TMI in dataclass defaults
B*
B905 zip() without an explicit strict= parameter
B904 Within an except clause, raise exceptions with raise ... from err or raise ... from None to distinguish them from errors in exception handling
C*
C419 Unnecessary list comprehension
C408 Unnecessary list call (rewrite as a literal)
C408 Unnecessary dict call (rewrite as a literal)
C416 Unnecessary list comprehension (rewrite using list())
C403 Unnecessary list comprehension (rewrite as a set comprehension)
D*
DTZ003 datetime.datetime.utcnow() used
E*
E401 Multiple imports on one line
E714 Test for object identity should be is not
F*
F811 Redefinition of unused FakeListener from cell 4, line 16
F401 pandas imported but unused
G*
G004 Logging statement uses f-string
S*
S603 subprocess call: check for execution of untrusted input -> It's in a benchmark helper. Gonna ignore this.
S311 Standard pseudo-random generators are not suitable for cryptographic purposes -> It's in a example notebook for benchmark testing. Will ignore this.
S324 Probable use of insecure hash functions in hashlib: md5
PYI*
Use typing.NamedTuple instead of collections.namedtuple
PYI041 Use float instead of int | float
PERF*
PERF203 try-except within a loop incurs performance overhead. -> ignoring this since it doesn't make sense to move try-except to outer range.
PERF401 Use a list comprehension to create a transformed list
Else
W291 Trailing whitespace
UP rules
UP035 Import from collections.abc instead: Generator
UP007 Use X | Y for type annotations
UP014 Convert ProcessCpuAffinity from NamedTuple functional to class syntax
UP028 Replace yield over for loop with yield from
UP035 Import from collections.abc instead: Generator, Mapping
UP034 Avoid extraneous parentheses
UP006 Use type instead of Type for type annotation
UP006 Use dict instead of Dict for type annotation
PT*
@pytest.fixture()
over@pytest.fixture
pytest.raises(ValueError)
is too broad, set thematch
parameter or use a more specific exception_datetime
without value is injected as parameter, use@pytest.mark.usefixtures
instead@pytest.mark.parametrize
; expectedtuple
pytest
; useimport pytest
instead@pytest.mark.parametrize
expectedlist
oftuple
scope='function'
is implied in@pytest.fixture()
RUF*
next(...)
over single element slice➕
(HEAVY PLUS SIGN). Did you mean+
(PLUS SIGN)? -> ignoreOptional
(*group_path, group_path[-1] + "_events")
instead of concatenationitertools.pairwise()
overzip()
when iterating over successive pairsTMI
in dataclass defaultsB*
zip()
without an explicitstrict=
parameterexcept
clause, raise exceptions withraise ... from err
orraise ... from None
to distinguish them from errors in exception handlingC*
list
call (rewrite as a literal)dict
call (rewrite as a literal)list
comprehension (rewrite usinglist()
)list
comprehension (rewrite as aset
comprehension)D*
datetime.datetime.utcnow()
usedE*
is not
F*
FakeListener
from cell 4, line 16pandas
imported but unusedG*
S*
subprocess
call: check for execution of untrusted input -> It's in a benchmark helper. Gonna ignore this.hashlib
:md5
PYI*
typing.NamedTuple
instead ofcollections.namedtuple
float
instead ofint | float
PERF*
try
-except
within a loop incurs performance overhead. -> ignoring this since it doesn't make sense to move try-except to outer range.Else
UP rules
collections.abc
instead:Generator
X | Y
for type annotationsProcessCpuAffinity
fromNamedTuple
functional to class syntaxyield
overfor
loop withyield from
collections.abc
instead:Generator
,Mapping
type
instead ofType
for type annotationdict
instead ofDict
for type annotation