You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

53 lines
1.3 KiB

3 months ago
  1. ---
  2. repos:
  3. - repo: https://github.com/python/black
  4. rev: 22.3.0
  5. hooks:
  6. - id: black
  7. - repo: https://github.com/codespell-project/codespell
  8. rev: v2.1.0
  9. hooks:
  10. - id: codespell
  11. args:
  12. - --ignore-words-list=linz
  13. - repo: https://github.com/PyCQA/flake8
  14. rev: 4.0.1
  15. hooks:
  16. - id: flake8
  17. args:
  18. - '--per-file-ignores=*/__init__.py:F401'
  19. # - --ignore=
  20. - --max-complexity=30
  21. - --max-line-length=456
  22. - --show-source
  23. - --statistics
  24. - repo: https://github.com/PyCQA/isort
  25. rev: 5.12.0
  26. hooks:
  27. - id: isort
  28. args: ["--profile", "black"]
  29. # - repo: https://github.com/pycqa/pydocstyle
  30. # rev: 6.1.1
  31. # hooks:
  32. # - id: pydocstyle
  33. # args:
  34. # - --source
  35. # - --explain
  36. # - --convention=google
  37. # additional_dependencies: ["toml"]
  38. - repo: https://github.com/asottile/pyupgrade
  39. rev: v2.32.0
  40. hooks:
  41. - id: pyupgrade
  42. args: ["--py37-plus"]
  43. - repo: local
  44. hooks:
  45. - id: pyright
  46. name: pyright
  47. entry: pyright
  48. language: node
  49. pass_filenames: false
  50. types: [python]
  51. additional_dependencies: ["pyright"]
  52. args:
  53. - --project=pyproject.toml