1
0

.pre-commit-config.yaml 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. default_stages:
  2. - commit
  3. repos:
  4. - repo: https://github.com/pre-commit/pre-commit-hooks
  5. rev: v4.6.0
  6. hooks:
  7. - id: check-added-large-files
  8. - id: check-case-conflict
  9. - id: check-docstring-first
  10. - id: check-executables-have-shebangs
  11. - id: check-shebang-scripts-are-executable
  12. - id: check-symlinks
  13. - id: check-yaml
  14. - id: debug-statements
  15. - id: destroyed-symlinks
  16. - id: detect-private-key
  17. - id: end-of-file-fixer
  18. - id: requirements-txt-fixer
  19. - id: trailing-whitespace
  20. - repo: https://github.com/executablebooks/mdformat
  21. rev: 0.7.17
  22. hooks:
  23. - id: mdformat
  24. additional_dependencies:
  25. - mdformat-gfm
  26. - mdformat-black
  27. - repo: https://github.com/jumanjihouse/pre-commit-hook-yamlfmt
  28. rev: 0.2.3
  29. hooks:
  30. - id: yamlfmt
  31. args:
  32. - --mapping
  33. - '2'
  34. - --sequence
  35. - '4'
  36. - --offset
  37. - '2'
  38. - --implicit_start
  39. - repo: https://github.com/psf/black
  40. rev: 24.8.0
  41. hooks:
  42. - id: black
  43. language_version: python3
  44. - id: black-jupyter
  45. language_version: python3
  46. - repo: https://github.com/asottile/blacken-docs
  47. rev: 1.18.0
  48. hooks:
  49. - id: blacken-docs
  50. - repo: https://github.com/PyCQA/isort
  51. rev: 5.13.2
  52. hooks:
  53. - id: isort
  54. args: [--profile, black]
  55. - repo: https://github.com/PyCQA/docformatter
  56. rev: v1.7.5
  57. hooks:
  58. - id: docformatter
  59. args:
  60. - --in-place
  61. - --wrap-summaries
  62. - '88'
  63. - --wrap-descriptions
  64. - '81'
  65. - repo: https://github.com/PyCQA/flake8
  66. rev: 7.1.1
  67. hooks:
  68. - id: flake8
  69. additional_dependencies:
  70. - flake8-use-pathlib
  71. - flake8-bugbear
  72. - flake8-pytest-style
  73. - flake8-comprehensions
  74. - setuptools
  75. - repo: https://github.com/PyCQA/pylint
  76. rev: v3.2.6
  77. hooks:
  78. - id: pylint
  79. - repo: https://github.com/asottile/pyupgrade
  80. rev: v3.16.0
  81. hooks:
  82. - id: pyupgrade
  83. args:
  84. - --py38-plus
  85. - repo: https://github.com/asottile/yesqa
  86. rev: v1.5.0
  87. hooks:
  88. - id: yesqa
  89. - repo: https://github.com/PyCQA/autoflake
  90. rev: v2.3.1
  91. hooks:
  92. - id: autoflake
  93. - repo: https://github.com/crate-ci/typos
  94. rev: v1.23.6
  95. hooks:
  96. - id: typos