summaryrefslogtreecommitdiff
path: root/share
diff options
context:
space:
mode:
authorTodd Gamblin <tgamblin@llnl.gov>2022-07-31 02:42:24 -0700
committerTodd Gamblin <tgamblin@llnl.gov>2022-07-31 13:29:20 -0700
commit143f3f830c42a76fb6255264f7d0012f4919e9ab (patch)
tree5ac770954fbf7bf4e8c00395d812dc0e3ee34791 /share
parent76b190a6243429a058e7945ca0e98fa2159009f8 (diff)
downloadspack-143f3f830c42a76fb6255264f7d0012f4919e9ab.tar.gz
spack-143f3f830c42a76fb6255264f7d0012f4919e9ab.tar.bz2
spack-143f3f830c42a76fb6255264f7d0012f4919e9ab.tar.xz
spack-143f3f830c42a76fb6255264f7d0012f4919e9ab.zip
style: simplify arguments with `--tool TOOL` and `--skip TOOL`
`spack style` tests were annoyingly brittle because we could not easily be specific about which tools to run (we had to use `--no-black`, `--no-isort`, `--no-flake8`, and `--no-mypy`). We should be able to specify what to run OR what to skip. Now you can run, e.g.: spack style --tool black,flake8 or: spack style --skip black,isort - [x] Remove `--no-black`, `--no-isort`, `--no-flake8`, and `--no-mypy` args. - [x] Add `--tool TOOL` argument. - [x] Add `--skip TOOL` argument. - [x] Allow either `--tool black --tool flake8` or `--tool black,flake8` syntax.
Diffstat (limited to 'share')
-rwxr-xr-xshare/spack/spack-completion.bash2
1 files changed, 1 insertions, 1 deletions
diff --git a/share/spack/spack-completion.bash b/share/spack/spack-completion.bash
index 1b2cfac2de..14d981936d 100755
--- a/share/spack/spack-completion.bash
+++ b/share/spack/spack-completion.bash
@@ -1697,7 +1697,7 @@ _spack_stage() {
_spack_style() {
if $list_options
then
- SPACK_COMPREPLY="-h --help -b --base -a --all -r --root-relative -U --no-untracked -f --fix --no-isort --no-flake8 --no-mypy --no-black --root"
+ SPACK_COMPREPLY="-h --help -b --base -a --all -r --root-relative -U --no-untracked -f --fix --root -t --tool -s --skip"
else
SPACK_COMPREPLY=""
fi