Open SauravMaheshkar opened 4 months ago
Great idea, we already use ruff
internally. We'd welcome a PR.
I would like to contribute.
@TakshPanchal sounds good, LMK if you need any help with the PR
Currently, isort
and black
is being used right? So I have to pylintrc
as reference config. From docs,
Ruff can be configured through a
pyproject.toml
,ruff.toml
, or.ruff.toml
file.
So majorly I have to convert pylintrc
with one of these file right?
Currently,
isort
andblack
is being used right? So I have topylintrc
as reference config. From docs,Ruff can be configured through a
pyproject.toml
,ruff.toml
, or.ruff.toml
file.So majorly I have to convert
pylintrc
with one of these file right?
Yes, and let's stick with one single configuration file, so convert pylintrc
to a ruff configuration within pyproject.toml
.
Ideally the changes lead to no style changes, i.e. running make lint
with ruff leads to no changes in code files.
can I work on this issue?
Sure, we only assign one issue at a time. So, I'll assign this issue for now. If you want to work on some other issue first, let me know.
@Abhrajitdas02 would you like any help with this issue?
astral-sh/ruff has emerged as a competitor to the existing linters. It's considerably faster than the current linter
pylint
viz.Source: ruff repository
Switching to
ruff
would enable us to switch to a single tool, as it has drop-in parity withblack
,isort
and support forpylint
rules.Happy to open a PR if interested 😄
References: