chore: pre-commit config for python

This commit is contained in:
kellervater
2025-04-26 12:19:22 +02:00
parent 9dd9add861
commit bbb742f271
2 changed files with 19 additions and 0 deletions

11
.lint/pylint/.pylintrc Normal file
View File

@@ -0,0 +1,11 @@
[BASIC]
good-names=i,j,k,ex,Run,_,pk,x,y
[FORMAT]
max-line-length=121
[MESSAGES CONTROL]
disable=import-error,logging-fstring-interpolation,missing-module-docstring,missing-function-docstring,missing-class-docstring,duplicate-code

View File

@@ -14,4 +14,12 @@ repos:
- id: renovate-config-validator - id: renovate-config-validator
args: ["--strict"] args: ["--strict"]
language_version: 20.18.0 # workaround till https://github.com/renovatebot/pre-commit-hooks/issues/2460 is fixed language_version: 20.18.0 # workaround till https://github.com/renovatebot/pre-commit-hooks/issues/2460 is fixed
- repo: https://github.com/PyCQA/pylint
rev: v3.3.6
hooks:
- id: pylint
args:
[
"--rcfile=.lint/pylint/.pylintrc"
]
... ...