happy-family-315
03/30/2023, 9:05 AM[tool.ruff]
cache_dir = ".cache_and_logs/.ruff"
line-length=40
select = ["E", "F", "B", "Q"]
pants.toml:
[ruff]
lockfile = "lockfiles/ruff.lock"
The line-length limit is set to 40, but when running pants fmt or fix ruff does not throw an error or changes anything. My python file contains a long list in one line (>120 chars)enough-analyst-54434
03/30/2023, 9:33 AMenough-analyst-54434
03/30/2023, 9:38 AMenough-analyst-54434
03/30/2023, 9:39 AMcache_dir
is mis-spelled though: https://beta.ruff.rs/docs/settings/#cache-dir
Perhaps ruff is lenient on config entry keys?enough-analyst-54434
03/30/2023, 9:41 AMhappy-family-315
03/30/2023, 10:21 AMcache_dir
to cache-dir
changed something. Now ruff seems to make changes e.g. sorting imports. When running pants lint how can I get an output of what needs to be changed?enough-analyst-54434
03/30/2023, 10:42 AMfmt
and fix
goals fix things; so no output needed, although there may be some, I'm not familiar with either ruff or our integration with it. The lint
goal does not fix things; so it can only resort to printing issues. Have you run that?ripe-gigabyte-88964
03/30/2023, 3:12 PMbroad-processor-92400
03/30/2023, 6:55 PMhappy-family-315
04/03/2023, 8:58 AMfmt
it fails correctly but I get no output of whats wrong. How can I get an output of what needs to be changed?