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

Ignores # noqa when inspecting code #613

Closed
chbndrhnns opened this issue Dec 21, 2022 · 1 comment · Fixed by #680
Closed

Ignores # noqa when inspecting code #613

chbndrhnns opened this issue Dec 21, 2022 · 1 comment · Fixed by #680
Labels
enhancement New feature or request

Comments

@chbndrhnns
Copy link

Describe the bug
With the plugin enabled, Pycharm still inspects the example below although I am telling it not to do that.

To Reproduce
Steps to reproduce the behavior:

  1. Paste snippet
def test_():
    class M(BaseModel):
        val: int

    with pytest.raises(ValueError):
        M()  # noqa
  1. See error

Expected behavior
Statements which are commented with # noqa are not inspected

Environments (please complete the following information):

  • IDE: PyCharm Pro 2022.3
  • OS: macOS 12.6
  • Pydantic Version: 1.10
  • Plugin version: 0.3.17

Additional context
Add any other context about the problem here.

@koxudaxi koxudaxi added the enhancement New feature or request label Mar 2, 2023
@koxudaxi
Copy link
Owner

I have released the fixed version v0.4.2
Thank you very much!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants