summaryrefslogtreecommitdiff
path: root/misc/scripts/black_format.sh
AgeCommit message (Collapse)Author
2023-04-07CI: Visibly print trailing whitespace when static checks failRémi Verschelde
GitHub Actions seems to be hiding colored whitespace, and after lots of attempts I couldn't find a way to work it around. So instead I'm using a perl expression to replace trailing spaces with `·` and tabs with `<TAB>` in the ANSI colored diff output. This ensure that they're visible, and they are properly colored as expected too. (cherry picked from commit 266280ffca218ae1c86e6d83d9b67a16086148b8)
2022-04-22improve OS.get_name classref, misc/scripts fixes, remove trailing quoteNathan Franke
2022-02-01CI: Fix exclude patterns with `git ls-files`Rémi Verschelde
Follow-up to #55785. In `black_format.sh`, the `--exclude` switch was wrongly used. It's a misnomer that only excludes _untracked_ files, arcane pathspec patterns should instead be used to exclude _tracked_ files. Using this newfound knowledge, we can also simplify the other scripts.
2022-01-29simplify formatting scripts, add a clang-tidy script, and run clang-tidyNathan Franke
2021-08-25Print colored diffs when there are formatting failures in CIHugo Locurcio
This makes diffs more readable in CI logs.
2020-07-27Style: Fix code format scripts compat with non-GNU UnicesRémi Verschelde
It's too hard to get compatibility between GNU and BSD sed, so let's just use perl oneliners. And improve it to also remove trailing tabs, not just spaces.
2020-07-13Add static formatting checks for GitHub ActionsAaron Franke