diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-04 01:03:18 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-04 01:03:18 +0000 |
commit | f4acb49ea148cdd899f7f29f1591c7bc853c2135 (patch) | |
tree | b62d60873864065d6428a84a119dd8a3c90f1397 /.pre-commit-config.yaml | |
parent | Adding upstream version 1:2.11. (diff) | |
download | bash-completion-f4acb49ea148cdd899f7f29f1591c7bc853c2135.tar.xz bash-completion-f4acb49ea148cdd899f7f29f1591c7bc853c2135.zip |
Adding upstream version 1:2.12.0.upstream/1%2.12.0
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '.pre-commit-config.yaml')
-rw-r--r-- | .pre-commit-config.yaml | 99 |
1 files changed, 53 insertions, 46 deletions
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 57d1264..6ba2382 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,24 +1,28 @@ +default_stages: [commit] +minimum_pre_commit_version: 2.4.0 + repos: - - repo: local + - repo: https://github.com/jorisroovers/gitlint + rev: v0.19.1 + hooks: + - id: gitlint + + - repo: https://github.com/scop/pre-commit-shfmt + rev: v3.8.0-1 hooks: - id: shfmt - name: shfmt - language: golang - additional_dependencies: [mvdan.cc/sh/v3/cmd/shfmt@v3.1.2] - entry: shfmt - args: [-w, -s] types: [text] - files: ^(bash_completion|completions/.+|test/(config/bashrc|update-test-cmd-list)|.+\.sh(\.in)?)$ + files: ^(bash_completion(\.d/[^/]+\.bash)?|completions/.+|test/(config/bashrc|fallback/update-fallback-links|runLint|update-test-cmd-list)|.+\.sh(\.in)?)$ exclude: ^completions/(\.gitignore|Makefile.*)$ - repo: https://github.com/shellcheck-py/shellcheck-py - rev: v0.7.1.1 + rev: v0.9.0.6 hooks: - id: shellcheck args: [-f, gcc] types: [text] - files: ^(bash_completion|completions/.+|test/(config/bashrc|update-test-cmd-list)|.+\.sh(\.in)?)$ + files: ^(bash_completion(\.d/[^/]+\.bash)?|completions/.+|test/(config/bashrc|fallback/update-fallback-links|runLint|update-test-cmd-list)|.+\.sh(\.in)?)$ exclude: ^completions/(\.gitignore|Makefile.*)$ require_serial: false # We disable SC1090 anyway, so parallel is ok @@ -31,67 +35,70 @@ repos: files: ^test/t/.+\.py$ pass_filenames: false - - repo: https://github.com/psf/black - rev: 19.10b0 - hooks: - - id: black - types: [text] - files: ^(helpers/python|.+\.py)$ - exclude: ^completions/ + - id: update-test-fallback-links + name: update-test-fallback-links + language: script + entry: test/fallback/update-fallback-links + files: ^completions/_ + pass_filenames: false - - repo: https://gitlab.com/pycqa/flake8 - rev: 3.8.3 + - repo: https://github.com/astral-sh/ruff-pre-commit + rev: v0.2.2 hooks: - - id: flake8 - args: [--config=test/setup.cfg] - additional_dependencies: [flake8-bugbear==20.1.4] + - id: ruff types: [text] files: ^(helpers/python|.+\.py)$ exclude: ^completions/ - - - repo: https://github.com/timothycrosley/isort - rev: 5.1.4 - hooks: - - id: isort - args: [--settings-path=test/setup.cfg] + - id: ruff-format types: [text] files: ^(helpers/python|.+\.py)$ exclude: ^completions/ - - repo: https://github.com/pre-commit/mirrors-mypy - rev: v0.782 + - repo: local hooks: - id: mypy + name: mypy + language: python + additional_dependencies: + - venv-run==0.2.0 + entry: venv-run mypy args: [--config-file=test/setup.cfg] - # Intentionally not run on helpers/python (support very old versions) + types: [python] + # Intentionally not run on helpers/python (we support very old versions) exclude: ^completions/|^test/fixtures/pytest/ - - repo: https://github.com/asottile/pyupgrade - rev: v2.7.2 - hooks: - - id: pyupgrade - args: [--py3-plus, --keep-percent-format] - exclude: ^completions/ - - repo: https://github.com/perltidy/perltidy - rev: "20200619" + rev: "20240202" hooks: - id: perltidy types: [text] files: ^(helpers/perl|.+\.p[ml])$ - - repo: local + - repo: https://github.com/scop/pre-commit-perlcritic + rev: v1.144-1 hooks: - id: perlcritic - name: perlcritic - language: perl - additional_dependencies: [PETDANCE/Perl-Critic-1.138.tar.gz] - entry: perlcritic args: [--quiet, --verbose, "5"] types: [text] files: ^(helpers/perl|.+\.p[ml])$ - - repo: https://github.com/igorshubovych/markdownlint-cli - rev: v0.23.2 + - repo: https://github.com/jackdewinter/pymarkdown + rev: v0.9.17 + hooks: + - id: pymarkdown + entry: pymarkdown + args: + - --config=.pymarkdown.json + - scan + exclude: ^CHANGELOG\.md$ + + - repo: https://github.com/pre-commit/pre-commit-hooks + rev: v4.5.0 + hooks: + - id: check-case-conflict + + - repo: https://github.com/crate-ci/typos + rev: v1.18.2 hooks: - - id: markdownlint + - id: typos + exclude: ^(CHANGELOG\.md|test/(test-cmd-list\.txt|fixtures/.+))$ |