Non puoi selezionare più di 25 argomenti Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.
 
 
 
 

38 righe
928 B

  1. exclude: '.git'
  2. default_stages: [commit]
  3. fail_fast: false
  4. repos:
  5. - repo: https://github.com/pre-commit/pre-commit-hooks
  6. rev: v4.3.0
  7. hooks:
  8. - id: trailing-whitespace
  9. files: "influxframework.*"
  10. exclude: ".*json$|.*txt$|.*csv|.*md|.*svg"
  11. - id: check-yaml
  12. - id: check-merge-conflict
  13. - id: check-ast
  14. - id: check-json
  15. - id: check-toml
  16. - id: check-yaml
  17. - id: debug-statements
  18. - repo: https://github.com/asottile/pyupgrade
  19. rev: v2.34.0
  20. hooks:
  21. - id: pyupgrade
  22. args: ['--py37-plus']
  23. - repo: https://github.com/adityahase/black
  24. rev: 9cb0a69f4d0030cdf687eddf314468b39ed54119
  25. hooks:
  26. - id: black
  27. additional_dependencies: ['click==8.0.4']
  28. - repo: https://gitlab.com/pycqa/flake8
  29. rev: 3.9.2
  30. hooks:
  31. - id: flake8
  32. additional_dependencies: ['flake8-bugbear',]
  33. args: ['--config', '.flake8']