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

Support for legacy code base - baseline #5391

Closed
Pixel-Minions opened this issue Jun 27, 2023 · 2 comments
Closed

Support for legacy code base - baseline #5391

Pixel-Minions opened this issue Jun 27, 2023 · 2 comments
Labels
suppression Related to supression of violations e.g. noqa

Comments

@Pixel-Minions
Copy link

Pixel-Minions commented Jun 27, 2023

Hi,

Thank for such a cool tool.
I am currently working with a huge monolithic old code base. I am planning to use a linter like ruff with only new code, so I don't have old errors appearing in thr console. It is possible to create a baseline so only the new code gets lint?

@charliermarsh
Copy link
Member

Thank you :)

I think this is a duplicate of #1149. Unfortunately, it's not something we support right now -- maybe some day. The only alternatives you would have are (1) running ruff check --add-noqa /path/to/src to automatically add suppression comments to existing violations, or (2) only enabling a subset of checks for now, and fixing all violations for that subset.

@charliermarsh charliermarsh closed this as not planned Won't fix, can't repro, duplicate, stale Jun 27, 2023
@charliermarsh charliermarsh added the suppression Related to supression of violations e.g. noqa label Jun 27, 2023
@charliermarsh
Copy link
Member

(I do empathize with this need and acknowledge that we don't have a great solution for it right now.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
suppression Related to supression of violations e.g. noqa
Projects
None yet
Development

No branches or pull requests

2 participants