Generate a Python package project using the Python Cookiecutter package
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

57 行
1.3KB

  1. exclude: '^(.*\.(svg))?$'
  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: v4.1.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: requirements-txt-fixer
  26. types: [file, text]
  27. - id: trailing-whitespace
  28. args: [--markdown-linebreak-ext=md]
  29. types: [file, text]
  30. exclude: ^docs/.*/coverage/.*\.html$
  31. - repo: https://github.com/PyCQA/isort
  32. rev: 5.10.1
  33. hooks:
  34. - id: isort
  35. types: [file, python]
  36. - repo: https://github.com/psf/black
  37. rev: stable
  38. hooks:
  39. - id: black
  40. language_version: python3.9
  41. - repo: https://gitlab.com/pycqa/flake8
  42. rev: 4.0.1
  43. hooks:
  44. - id: flake8
  45. exclude: ^setup.py$
  46. types: [file, python]
  47. - repo: local
  48. hooks:
  49. - id: check-manifest
  50. name: Check Manifest
  51. description: Check package manifest against git committed files.
  52. always_run: true
  53. files: '^$'
  54. entry: check-manifest
  55. language: python
  56. types: [file, plain-text]