numtide / treefmt-nix

treefmt nix configuration
https://numtide.github.io/treefmt/
MIT License
213 stars 62 forks source link

ruff: enable --fix on check #184

Closed elohmeier closed 1 month ago

elohmeier commented 1 month ago

Let's ruff's linter fix some issues automatically, coherent w/ other formatters' behaviour, e.g. prettier.

Also note that this only enables ruff's "safe" fixes, see https://github.com/astral-sh/ruff/blob/main/docs/linter.md#fix-safety. Some users might additionaly want to enable add the --unsafe-fixes option manually.

Fixes #177.