rust/src/etc
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
..
completions Auto merge of #112482 - tgross35:ci-non-rust-linters, r=pietroalbini 2023-08-10 13:07:18 +00:00
installer Spelling tools/compiletest 2023-04-20 15:38:41 -04:00
natvis Update natvis to match full type names for Arc, Rc, Weak, etc 2023-07-17 15:51:46 -04:00
test-float-parse Update runtests.py : grammar correction 2023-06-22 09:59:31 +05:30
third-party Strip all leading/trailing newlines 2015-03-15 09:08:21 -07:00
cat-and-grep.sh simplify 2022-09-26 21:56:08 +08:00
CONFIGS.md Add sublime-rust to CONFIGS.md. 2016-08-22 01:24:01 -04:00
cpu-usage-over-time-plot.sh Fix a bunch of typo 2022-08-31 18:24:55 +08:00
ctags.rust Update the ctags rules and targets. 2015-07-30 06:35:42 +10:00
dec2flt_table.py Apply changes to fix python linting errors 2023-06-16 20:56:01 -04:00
gdb_load_rust_pretty_printers.py Apply changes to fix python linting errors 2023-06-16 20:56:01 -04:00
gdb_lookup.py Add GDB/LLDB pretty-printers for NonZero types 2022-08-24 12:33:42 +02:00
gdb_providers.py Update VecDeque implementation 2022-11-20 15:21:16 +01:00
generate-deriving-span-tests.py Apply changes to fix python linting errors 2023-06-16 20:56:01 -04:00
generate-keyword-tests.py remove unnecessary import statement 2020-02-08 00:03:51 -05:00
htmldocck.py Improve htmldocck error a bit by providing line where error occurred 2023-07-19 14:34:06 +02:00
indenter fix some python3 incompatibilities 2017-11-16 13:34:13 -05:00
lldb_batchmode.py Apply changes to fix python linting errors 2023-06-16 20:56:01 -04:00
lldb_commands Add GDB/LLDB pretty-printers for NonZero types 2022-08-24 12:33:42 +02:00
lldb_lookup.py Spelling tools/compiletest 2023-04-20 15:38:41 -04:00
lldb_providers.py Apply changes to fix python linting errors 2023-06-16 20:56:01 -04:00
pre-push.sh User may want to skip tidy check sometimes 2023-06-30 15:37:10 +08:00
rust_analyzer_settings.json etc: add RUSTC_BOOTSTRAP to rust-analyzer config 2023-07-20 16:53:23 -07:00
rust_types.py Add GDB/LLDB pretty-printers for NonZero types 2022-08-24 12:33:42 +02:00
rust-gdb Typo fix in src/etc/rust-gdb 2023-04-14 19:07:13 -07:00
rust-gdbgui Fix rust-gdb and rust-gdbgui on FreeBSD 2023-04-14 18:06:26 -06:00
rust-lldb Fix loading pretty-printers in rust-lldb script 2020-08-28 09:29:45 +03:00
rust-windbg.cmd Remove licenses 2018-12-25 21:08:33 -07:00
wasm32-shim.js std: Remove the wasm_syscall feature 2019-08-28 08:34:31 -07:00