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

Disable linting only when using Flake8 #4687

Closed
gdlx opened this issue Aug 4, 2023 · 1 comment
Closed

Disable linting only when using Flake8 #4687

gdlx opened this issue Aug 4, 2023 · 1 comment
Assignees
Labels
needs repro Issue has not been reproduced yet

Comments

@gdlx
Copy link

gdlx commented Aug 4, 2023

Is there a way to disable linting but keeping type checking ?

I'm using Flake8 for linting and Pylance shows the same errors, except Flake8 allows more accurate disabling than # type:ignore.

image

The workaround is to disable the error for both linters but it's kind of ugly:

def finished(_, **_) -> Never:  # noqa: F831 # type:ignore
@github-actions github-actions bot added the needs repro Issue has not been reproduced yet label Aug 4, 2023
@gdlx
Copy link
Author

gdlx commented Aug 4, 2023

Closing the issue as this is not just a linting issue but a syntax error 😖

@gdlx gdlx closed this as completed Aug 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs repro Issue has not been reproduced yet
Projects
None yet
Development

No branches or pull requests

2 participants