You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

42 lines
1.2 KiB

  1. # SPDX-FileCopyrightText: 2020 Adafruit
  2. #
  3. # SPDX-License-Identifier: Unlicense
  4. repos:
  5. - repo: https://github.com/python/black
  6. rev: 20.8b1
  7. hooks:
  8. - id: black
  9. - repo: https://github.com/fsfe/reuse-tool
  10. rev: v0.12.1
  11. hooks:
  12. - id: reuse
  13. - repo: https://github.com/pre-commit/pre-commit-hooks
  14. rev: v2.3.0
  15. hooks:
  16. - id: check-yaml
  17. - id: end-of-file-fixer
  18. - id: trailing-whitespace
  19. - repo: https://github.com/pycqa/pylint
  20. rev: v2.11.1
  21. hooks:
  22. - id: pylint
  23. name: pylint (library code)
  24. types: [python]
  25. args:
  26. - --disable=consider-using-f-string,duplicate-code
  27. exclude: "^(docs/|examples/|tests/|setup.py$)"
  28. - id: pylint
  29. name: pylint (example code)
  30. description: Run pylint rules on "examples/*.py" files
  31. types: [python]
  32. files: "^examples/"
  33. args:
  34. - --disable=missing-docstring,invalid-name,consider-using-f-string,duplicate-code
  35. - id: pylint
  36. name: pylint (test code)
  37. description: Run pylint rules on "tests/*.py" files
  38. types: [python]
  39. files: "^tests/"
  40. args:
  41. - --disable=missing-docstring,consider-using-f-string,duplicate-code