3 autofix_commit_msg: "Chore: pre-commit autoupdate"
5 # pre-commit.ci cannot install WGET, so tomlint must be disabled
17 # - repo: https://gitlab.com/vojko.pribudic/pre-commit-update
20 # - id: pre-commit-update
26 name: "Script: scripts/tomllint.sh"
28 # pass_filenames: false
31 entry: scripts/tomllint.sh .
33 - repo: https://github.com/pre-commit/pre-commit-hooks
36 - id: check-added-large-files
38 - id: check-case-conflict
39 - id: check-executables-have-shebangs
41 - id: check-merge-conflict
42 - id: check-shebang-scripts-are-executable
45 # - id: detect-aws-credentials
48 - id: debug-statements
49 - id: detect-private-key
50 - id: end-of-file-fixer
51 - id: mixed-line-ending
54 # Do not allow direct push to main/master branches
55 - id: no-commit-to-branch
56 # - id: pretty-format-json
57 - id: requirements-txt-fixer
58 - id: trailing-whitespace
60 # Autoformat: YAML, JSON, Markdown, etc.
61 - repo: https://github.com/pre-commit/mirrors-prettier
66 ["--ignore-unknown", "--no-error-on-unmatched-pattern",
70 - repo: https://github.com/igorshubovych/markdownlint-cli
76 # - repo: https://github.com/asottile/pyupgrade
80 # args: ['--py37-plus']
82 - repo: https://github.com/psf/black-pre-commit-mirror
87 - repo: https://github.com/psf/black-pre-commit-mirror
92 - repo: https://github.com/jorisroovers/gitlint
97 - repo: https://github.com/openstack/bashate
101 args: ["--ignore=E006"]
103 - repo: https://github.com/shellcheck-py/shellcheck-py
107 # Optionally only show errors and warnings
108 # args: ["--severity=warning"]
110 # If you want to avoid flake8 errors due to unused vars or imports:
111 # - repo: https://github.com/PyCQA/autoflake
117 # --remove-all-unused-imports,
118 # --remove-unused-variables,
121 - repo: https://github.com/PyCQA/isort
126 - repo: https://github.com/adrienverge/yamllint.git
132 - repo: https://github.com/Mateusz-Grzelinski/actionlint-py
137 # If like to embrace black styles even in the docs:
138 # - repo: https://github.com/asottile/blacken-docs
142 # additional_dependencies: [black]
144 - repo: https://github.com/pycqa/flake8
149 additional_dependencies: [pyproject-flake8]
151 # Check for misspells in documentation files:
152 # - repo: https://github.com/codespell-project/codespell
160 name: "mypy-with-dependecies"
162 pass_filenames: false
164 entry: scripts/mypy-deps.sh
166 # - repo: https://github.com/pre-commit/mirrors-mypy
171 # args: [--show-error-codes]
172 # additional_dependencies: ["types-requests"]