Implement pygrep-hooks
JonathanPlasse opened this issue · 8 comments
JonathanPlasse commented
pygrep-hooks
-
python-check-blanket-noqa
: Enforce thatnoqa
annotations always occur with specific codes. Sample annotations:# noqa: F401
,# noqa: F401,W203
-
python-check-blanket-type-ignore
: Enforce that# type: ignore
annotations always occur with specific codes. Sample annotations:# type: ignore[attr-defined]
,# type: ignore[attr-defined, name-defined]
-
python-check-mock-methods
: Prevent common mistakes ofassert mck.not_called()
,assert mck.called_once_with(...)
andmck.assert_called
. -
python-no-eval
: A quick check for theeval()
built-in function -
python-no-log-warn
: A quick check for the deprecated.warn()
method of python loggers -
python-use-type-annotations
: Enforce that python3.6+ type annotations are used instead of type comments
JonathanPlasse commented
May be tag this issue good first issue
.
JonathanPlasse commented
I will implement python-no-eval
.
squiddy commented
I'm working on python-no-log-warn
.
squiddy commented
Working on python-check-blanket-type-ignore
now.
JonathanPlasse commented
finswimmer commented
Hey,
python-use-type-annotations
is marked as implemented in the OP. But it isn't, is it? 🤔
fin swimmer
JonathanPlasse commented
Hey,
python-use-type-annotations
is marked as implemented in the OP. But it isn't, is it? thinkingfin swimmer
It is implemented as PYI033
.
finswimmer commented
It is implemented as PYI033.
Hm, looks like this is only for stub files (.pyi
) I cannot get it work for normal python files. 🤷♂️