-
Notifications
You must be signed in to change notification settings - Fork 944
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
Additional configuration file .ruff.toml
#2988
Comments
I don't understand this at all. What is the problem with using |
We use |
Ah yeah, My initial reaction is that I'd rather not support multiple file names... and yet, ESLint does expect everything except |
|
Yeah totally understand. Lemme think on it for a bit! It's a reasonable request. |
For additional context on why we would need multiple config files, we have some rules we apply to our application code, and the rules for tests are a bit more relaxed. |
Thank You. |
I personally would use
I don't know if you have considered it, but you may want to try [per-file-ignores]
'*tests/*.py' = [
'ANN201', # Missing return type annotation for public function
'S101', # Matches 'assert'
] |
Just started testing the tool. |
Yeah |
First of all, Thank You for this blazing fast tool!
I must also say that some of my smaller projects(because it will be easier and faster) will get migrated to
ruff
pretty soon.There are however a few big projects which it will not be that easy to fix in one batch.
They even have parts where the rules are not the same.
The good news is, while they are not in a monorepo, ruff's monorepo support and configuration extending by means of additional
pyproject.toml
andruff.toml
will simplify this.We will not be using additional
pyproject.toml
files since, as I mentioned, they are big, but non monorepo, projects.That leaves us with
ruff.toml
.However, I feel like a
.ruff.toml
would be something that would immediately "say", this is a local configuration file as opposed to something that the project requires to make it work.Would it be possible to, additionally, check for, and support,
.ruff.toml
configuration files?The text was updated successfully, but these errors were encountered: