Generate a Python package project using the Python Cookiecutter package
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

.pre-commit-config.yaml 1.4KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. exclude: '^$'
  2. fail_fast: false
  3. default_language_version:
  4. python: python3.9
  5. repos:
  6. - repo: https://github.com/pre-commit/pre-commit-hooks
  7. rev: v3.3.0
  8. hooks:
  9. - id: check-added-large-files
  10. - id: check-ast
  11. types: [file, python]
  12. - id: check-case-conflict
  13. - id: check-json
  14. types: [file, json]
  15. - id: check-merge-conflict
  16. - id: check-symlinks
  17. types: [symlink]
  18. - id: check-yaml
  19. args: [--allow-multiple-documents]
  20. types: [file, yaml]
  21. - id: detect-private-key
  22. types: [file, text]
  23. - id: end-of-file-fixer
  24. types: [file, python]
  25. - id: fix-encoding-pragma
  26. types: [file, python]
  27. - id: requirements-txt-fixer
  28. types: [file, text]
  29. - id: trailing-whitespace
  30. args: [--markdown-linebreak-ext=md]
  31. types: [file, text]
  32. exclude: ^docs/.*/coverage/.*\.html$
  33. - repo: https://github.com/PyCQA/isort
  34. rev: 5.6.4
  35. hooks:
  36. - id: isort
  37. types: [file, python]
  38. - repo: https://github.com/psf/black
  39. rev: stable
  40. hooks:
  41. - id: black
  42. language_version: python3.8
  43. - repo: https://gitlab.com/pycqa/flake8
  44. rev: 3.8.4
  45. hooks:
  46. - id: flake8
  47. exclude: ^setup.py$
  48. types: [file, python]
  49. - repo: local
  50. hooks:
  51. - id: check-manifest
  52. name: Check Manifest
  53. description: Check package manifest against git committed files.
  54. always_run: true
  55. files: '^$'
  56. entry: check-manifest
  57. language: python
  58. types: [file, plain-text]