debian-forge-cli/.pre-commit-config.yaml
Michael Vogt 0563b845be pre-commit: drop golangci-lint for now
The package crashes during check with:
```
golangci-lint............................................................Failed
- hook id: golangci-lint
- exit code: 3
level=warning msg="[runner] Can't run linter goanalysis_metalinter: buildir: failed to load package gpgme: could not load export data: no export data for \"github.com/proglottis/gpgme\""
level=error msg="Running error: can't run linter goanalysis_metalinter\nbuildir: failed to load package gpgme: could not load export data: no export data for \"github.com/proglottis/gpgme\""
```

which is not helpful
2025-01-10 08:30:28 +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: v1.63.1
# 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/