Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ ci:
- vulture-docs
- shellcheck
- shellcheck-docs
- shfmt
- shfmt-docs

default_install_hook_types: [pre-commit, pre-push, commit-msg]
repos:
Expand Down Expand Up @@ -77,6 +79,19 @@ repos:
language: system
types_or: [markdown, rst]

- id: shfmt
name: shfmt
entry: shfmt --write
language: system
pass_filenames: false
types_or: [shell]

- id: shfmt-docs
name: shfmt-docs
entry: doccmd --language=shell --language=console --no-pad-file --command="shfmt --write"
language: system
types_or: [markdown, rst]

- id: mypy
name: mypy
stages: [push]
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ optional-dependencies.dev = [
# but also because having it installed means that ``actionlint-py`` will
# use it to lint shell commands in GitHub workflow files.
"shellcheck-py==0.10.0.1",
"shfmt-py==3.7.0.1",
"sphinx==8.0.2",
"sphinx-copybutton==0.5.2",
"sphinx-substitution-extensions==2024.8.6",
Expand Down