.pre-commit-config.yaml 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. default_stages:
  2. - commit
  3. repos:
  4. - repo: https://github.com/pre-commit/pre-commit-hooks
  5. rev: v4.4.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.16
  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.2
  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: 22.10.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: v1.12.1
  48. hooks:
  49. - id: blacken-docs
  50. - repo: https://github.com/PyCQA/isort
  51. rev: 5.10.1
  52. hooks:
  53. - id: isort
  54. args: [--profile, black]
  55. - repo: https://github.com/PyCQA/docformatter
  56. rev: v1.5.0
  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: 6.0.0
  67. hooks:
  68. - id: flake8
  69. additional_dependencies:
  70. - flake8-use-pathlib
  71. - flake8-bugbear
  72. - flake8-pytest-style
  73. - flake8-comprehensions
  74. - repo: https://github.com/PyCQA/pylint
  75. rev: v2.15.8
  76. hooks:
  77. - id: pylint
  78. - repo: https://github.com/asottile/pyupgrade
  79. rev: v3.3.1
  80. hooks:
  81. - id: pyupgrade
  82. args:
  83. - --py38-plus
  84. - repo: https://github.com/asottile/yesqa
  85. rev: v1.4.0
  86. hooks:
  87. - id: yesqa
  88. - repo: https://github.com/PyCQA/autoflake
  89. rev: v2.0.0
  90. hooks:
  91. - id: autoflake
  92. - repo: https://github.com/crate-ci/typos
  93. rev: typos-dict-v0.9.13
  94. hooks:
  95. - id: typos