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

Feature: file-specificity on lint.pyupgrade.keep-runtime-typing #10320

Closed
tlambert03 opened this issue Mar 10, 2024 · 1 comment
Closed

Feature: file-specificity on lint.pyupgrade.keep-runtime-typing #10320

tlambert03 opened this issue Mar 10, 2024 · 1 comment
Labels
configuration Related to settings and configuration

Comments

@tlambert03
Copy link

Not sure if I missed an already-possible feature, but I often find myself working in libraries that need keep-runtime-typing = True for only a select few files. It would be convenient, in those cases, to enforce the rule for a subset of files with something like:

[tool.ruff.lint.pyupgrade]
keep-runtime-typing-files = ["src/subfolder/*.py"]

this is not currently possible, right?

@charliermarsh
Copy link
Member

It's not currently possible but we do want to support it, probably in a more general way like #7696. I'm gonna merge into that issue!

@charliermarsh charliermarsh closed this as not planned Won't fix, can't repro, duplicate, stale Mar 10, 2024
@charliermarsh charliermarsh added the configuration Related to settings and configuration label Mar 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
configuration Related to settings and configuration
Projects
None yet
Development

No branches or pull requests

2 participants