Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FBT003 Boolean positional value in function call triggered in unittest assert methods #1330

Closed
actionless opened this issue Dec 22, 2022 · 1 comment · Fixed by #1333
Closed
Labels
bug Something isn't working

Comments

@actionless
Copy link

for example,

from unittest import TestCase


def do_stuff() -> bool:
    return True


class TestStuff(TestCase):

    def test_stuff_works(self) -> None:
        self.assertEqual(do_stuff(), True)
$ ruff test_ruff_FBT003.py
Found 1 error(s).
test_ruff_FBT003.py:11:38: FBT003 Boolean positional value in function call
@charliermarsh charliermarsh added the bug Something isn't working label Dec 22, 2022
@charliermarsh
Copy link
Member

Will add this to the allowlist.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants