how to make flake ignore code

24 views
Skip to first unread message

Chris Smith

unread,
May 8, 2021, 8:10:01 AM5/8/21
to sympy
In https://github.com/sympy/sympy/pull/21431 I attempted to add 4 `_eval_is_ge` handlers but they get flagged as duplicate of existing ones by flake. How do I get flake to ignore these?

/c

Oscar Benjamin

unread,
May 8, 2021, 8:22:12 AM5/8/21
to sympy
You can use noqa like:

$ git grep _eval_is_ge
sympy/calculus/util.py:def _eval_is_ge(lhs, rhs): # noqa:F811
sympy/calculus/util.py:def _eval_is_ge(lhs, rhs): # noqa: F811
sympy/calculus/util.py:def _eval_is_ge(lhs, rhs): # noqa:F811
sympy/calculus/util.py:def _eval_is_ge(lhs, rhs): # noqa:F811
...

There doesn't seem to be a good way of telling flake8 to ignore these
in general though.

Oscar

On Sat, 8 May 2021 at 13:10, Chris Smith <smi...@gmail.com> wrote:
>
> In https://github.com/sympy/sympy/pull/21431 I attempted to add 4 `_eval_is_ge` handlers but they get flagged as duplicate of existing ones by flake. How do I get flake to ignore these?
>
> /c
>
> --
> You received this message because you are subscribed to the Google Groups "sympy" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to sympy+un...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/sympy/881032c7-412e-40cd-aab0-c9e70ae99b2fn%40googlegroups.com.

Chris Smith

unread,
May 8, 2021, 10:03:06 AM5/8/21
to sympy
Thanks.

/c

Reply all
Reply to author
Forward
0 new messages