debian-forge-cli/.pre-commit-config.yaml
Lukas Zapletal 2828ee63cf ci: upgrade golangci-lint to 2.3.0
Upgrades the configuration file from V1 to V2 format which was pretty
straightforward. The vendor/ directory no longer needs to be excluded as
it is a default now in 2.x.

Updates the pre-commit configuration to the latest and greatest version.
2025-07-25 09:10:11 +00:00

45 lines
1.4 KiB
YAML

# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
hooks:
- id: trailing-whitespace
args:
- --markdown-linebreak-ext=md
- id: end-of-file-fixer
- id: check-added-large-files
- repo: https://github.com/adrienverge/yamllint
rev: v1.35.1
hooks:
- id: yamllint
args: [--strict]
- repo: https://github.com/schuellerf/pre-commit-pyspelling
rev: 0.1.0
hooks:
- id: pyspelling
args: ["--config", ".spellcheck.yml"]
- repo: https://github.com/golangci/golangci-lint
rev: v2.3.0
hooks:
- id: golangci-lint
- repo: https://github.com/hhatto/autopep8
rev: v2.3.0
hooks:
- id: autopep8
- repo: https://github.com/pycqa/pylint
rev: v3.2.6
hooks:
- id: pylint
additional_dependencies: ["PyYAML", "types-PyYAML", "pytest"]
files: ^(?!test/|tools/)
- id: pylint
name: pylint test/ directory
additional_dependencies: ["PyYAML", "types-PyYAML", "pytest"]
args: ["--rcfile=test/.pylintrc"]
files: ^test/
- id: pylint
name: pylint tools/ directory
additional_dependencies: ["PyYAML", "types-PyYAML", "pytest"]
args: ["--rcfile=tools/.pylintrc"]
files: ^tools/