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

external support code groups #8050

Closed
Avasam opened this issue Oct 18, 2023 · 1 comment
Closed

external support code groups #8050

Avasam opened this issue Oct 18, 2023 · 1 comment

Comments

@Avasam
Copy link
Contributor

Avasam commented Oct 18, 2023

Instead of the following configuration:

external = [
    # Flake8-PYI issues that have valid noqa suppression reasons
    "Y001",
    "Y008",
    "Y022",
    "Y026",
    "Y029",
    "Y034",
    "Y037",
    "Y038",
    "Y039",
    "Y041",
    "Y042",
    "Y043",
    "Y046",
    "Y047",
    "Y049",
    "Y054",
    "Y057",
    # and more, these are just those currently noqa'd

    # Flake8 has false-positive with ellipsis
    "F821", 
]
[tool.ruff.per-file-ignores]
# False positives in stubs
"*.pyi" = ["F821"] # Undefined name: https://github.com/astral-sh/ruff/issues/3011

I'd like to be able to do

external = [
    # Work with Flake8-PYI
    "Y",
    # Flake8 has false-positive with ellipsis
    "F821"
]
[tool.ruff.per-file-ignores]
# False positives in stubs
"*.pyi" = ["F821"] # Undefined name: https://github.com/astral-sh/ruff/issues/3011
@Avasam
Copy link
Contributor Author

Avasam commented Oct 27, 2023

Closed by #8177 , duplicated by #8174

@Avasam Avasam closed this as completed Oct 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant