.pre-commit-config.yaml 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. repos:
  2. - repo: https://github.com/pre-commit/mirrors-mypy
  3. rev: v1.11.2
  4. hooks:
  5. - id: mypy
  6. additional_dependencies: [
  7. 'types-Markdown',
  8. 'types-python-dateutil',
  9. 'types-pytz',
  10. 'types-tzlocal',
  11. ]
  12. args:
  13. - --ignore-missing-imports
  14. - --implicit-optional
  15. - --no-namespace-packages
  16. - --exclude=(taipy/templates/|tools/|doc/gui/examples/.*/builder.py)
  17. - --follow-imports=skip
  18. - repo: https://github.com/Lucas-C/pre-commit-hooks
  19. rev: v1.5.5
  20. hooks:
  21. - id: forbid-crlf
  22. - id: remove-crlf
  23. - id: forbid-tabs
  24. - id: remove-tabs
  25. - id: insert-license
  26. files: \.py$
  27. args:
  28. - --license-filepath
  29. - .license-header
  30. - repo: https://github.com/pre-commit/pre-commit-hooks
  31. rev: v4.6.0
  32. hooks:
  33. - id: trailing-whitespace
  34. - id: end-of-file-fixer
  35. - id: check-merge-conflict
  36. - id: check-yaml
  37. args: [--unsafe]
  38. - repo: https://github.com/astral-sh/ruff-pre-commit
  39. rev: v0.6.4
  40. hooks:
  41. - id: ruff
  42. args: [ --fix ]
  43. - id: ruff-format
  44. - repo: https://github.com/codespell-project/codespell
  45. rev: v2.3.0
  46. hooks:
  47. - id: codespell
  48. additional_dependencies: [tomli]