pimutils / khal

:calendar: CLI calendar application
https://lostpackets.de/khal/
MIT License
2.6k stars 199 forks source link

Use Ruff for code linting and checking #1221

Closed WhyNotHugo closed 1 year ago

WhyNotHugo commented 1 year ago

Ruff does the same as flake8(+plugins)+pyupgrade+isort, but much faster and can also automatically fix many of these quirks too.

It ignores all files that are ignored by git, so all the exclude rules are not necessary.

I have left isort-related rules out for now since they results in some changes which might add noise at this point.

WhyNotHugo commented 1 year ago

Darn, isort seems to be broken when run via pre-commit. It might be a good time to replace it too TBH.