bitter-ability-32190
10/21/2021, 8:41 PMhundreds-father-404
10/21/2021, 8:47 PMupdate-build-files goal which is kind of like a Buildozer-lite!bitter-ability-32190
10/21/2021, 8:48 PMisort which don't just complain but also fix issues.
E.g. flake8-simplify says "don't nest these if statements". OK, then fix it for me! ๐hundreds-father-404
10/21/2021, 8:50 PMhundreds-father-404
10/21/2021, 8:51 PMbitter-ability-32190
10/21/2021, 8:51 PMbitter-ability-32190
10/21/2021, 8:52 PMautoflake time to go sniff their GitHub ๐bitter-ability-32190
10/21/2021, 8:53 PMhundreds-father-404
10/21/2021, 8:53 PMhundreds-father-404
10/21/2021, 8:54 PMbitter-ability-32190
10/21/2021, 8:54 PMhundreds-father-404
10/21/2021, 8:56 PM./pants fix vs. ./pants fmt. For now, Pyupgrade and Autoflake are under fmt and there is no fix goal
But we realized we want to merge other fixers like ./pants tailor (add missing target definitions) into a single goal, and that definitely should not be happening in ./pants fmt. I think ./pants fix makes sense
Punted on the question for the upcoming Pants 2.8 release by making Pyupgrade and Autoflake be experimental backends so that we can change from fmt to fix later if we decide topolite-garden-50641
10/21/2021, 8:59 PMeradicate I don't think it is worth adding to be a core part of pants... this doesn't seem to be the tool you need to keep running on an ongoing bases...
Not allowing commented out code is a tricky issue. I don't think this is useful. this (commented out code) is the kind of thing that should be left for humans to decide on a case by case basis. IMHO. enforcing such a policy on the repo level seems heavy handed.hundreds-father-404
10/21/2021, 9:00 PMbitter-ability-32190
10/21/2021, 9:00 PMhundreds-father-404
10/21/2021, 9:01 PM./pants --loop fmt @witty-crayon-22786 , which reruns that goal when changes to relevant files are madewitty-crayon-22786
10/21/2021, 10:02 PM./pants --loop check fmt lint, so fmt doesnโt happen until typechecking passesโฆ that eliminates many of those concerns, but would still totally nuke an unused import, heh.witty-crayon-22786
10/21/2021, 10:02 PMcurved-television-6568
10/22/2021, 5:37 AMbitter-ability-32190
10/22/2021, 1:29 PM