rust/src/ci
bors 9fa6bdd764 Auto merge of #112482 - tgross35:ci-non-rust-linters, r=pietroalbini
Add support for tidy linting via external tools for non-rust files

This change adds the flag `--check-extras` to `tidy`. It accepts a comma separated list of any of the options:

* py (test everything applicable for python files)
* py:lint (lint python files using `ruff`)
* py:fmt (check formatting for python files using `black`)
* shell or shell:lint (lint shell files using `shellcheck`)

Specific files to check can also be specified via positional args. Examples:

* `./x test tidy --check-extras=shell,py`
* `./x test tidy --check-extras=py:fmt -- src/bootstrap/bootstrap.py`
* `./x test tidy --check-extras=shell -- src/ci/*.sh`
* Python formatting can be applied with bless: `./x test tidy --ckeck-extras=py:fmt --bless`

`ruff` and `black` need to be installed via pip; this tool manages these within a virtual environment at `build/venv`. `shellcheck` needs to be installed on the system already.

---

This PR doesn't fix any of the errors that show up (I will likely go through those at some point) and it doesn't enforce anything new in CI. Relevant zulip discussion: https://rust-lang.zulipchat.com/#narrow/stream/242791-t-infra/topic/Other.20linters.20in.20CI
2023-08-10 13:07:18 +00:00
..
docker Auto merge of #112482 - tgross35:ci-non-rust-linters, r=pietroalbini 2023-08-10 13:07:18 +00:00
github-actions fix(bootstrap): rename exclude flag to skip 🐛 2023-08-06 14:29:36 +07:00
scripts remove hack, now CI uses (currently latest) SDK 10.0.22621.0 2023-07-19 13:49:46 +03:00
channel move the current channel to src/ci/channel 2021-05-06 17:11:12 +02:00
cpu-usage-over-time.py Apply changes to fix python linting errors 2023-06-16 20:56:01 -04:00
publish_toolstate.sh
run.sh Rollup merge of #114573 - Kobzol:ci-no-group-on-error, r=oli-obk 2023-08-07 16:47:58 +02:00
shared.sh remove azure pipelines configuration 2022-06-05 12:29:20 +02:00