.pre-commit-config.yaml 369 B

123456789101112131415161718
  1. repos:
  2. - repo: https://gitee.com/SWHL/autoflake
  3. rev: v2.1.1
  4. hooks:
  5. - id: autoflake
  6. args:
  7. [
  8. "--recursive",
  9. "--in-place",
  10. "--remove-all-unused-imports",
  11. "--ignore-init-module-imports",
  12. ]
  13. files: \.py$
  14. - repo: https://gitee.com/SWHL/black
  15. rev: 23.1.0
  16. hooks:
  17. - id: black
  18. files: \.py$