.pre-commit-config.yaml 860 B

12345678910111213141516171819202122232425262728293031
  1. repos:
  2. - repo: https://github.com/pre-commit/pre-commit-hooks
  3. rev: v3.2.0
  4. hooks:
  5. - id: trailing-whitespace
  6. exclude: \.(bdf|svg)$
  7. - id: end-of-file-fixer
  8. exclude: \.(bdf|svg)$
  9. - id: check-yaml
  10. - id: check-added-large-files
  11. exclude: \.bdf$
  12. - repo: https://github.com/commitizen-tools/commitizen
  13. rev: v2.40.0
  14. hooks:
  15. - id: commitizen
  16. - id: commitizen-branch
  17. stages: [push]
  18. - repo: local
  19. hooks:
  20. - id: pylint
  21. name: pylint
  22. entry: pylint
  23. language: system
  24. types: [python]
  25. args:
  26. [
  27. "-rn", # Only display messages
  28. "-sn", # Don't display the score
  29. "--rcfile=.pylintrc", # Link to your config file
  30. "--load-plugins=pylint.extensions.docparams", # Load an extension
  31. ]