Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

.pre-commit-config.yaml 1.5KB

precommit: yapf (#5494) * precommit: yapf * align isort * fix # Conflicts: # utils/plots.py * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Update setup.cfg * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Update setup.cfg * Update setup.cfg * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Update wandb_utils.py * Update augmentations.py * Update setup.cfg * Update yolo.py * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Update val.py * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * simplify colorstr * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * val run fix * export.py last comma * Update export.py * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Update hubconf.py * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * PyTorch Hub tuple fix * PyTorch Hub tuple fix2 * PyTorch Hub tuple fix3 * Update setup Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
pirms 2 gadiem
precommit: yapf (#5494) * precommit: yapf * align isort * fix # Conflicts: # utils/plots.py * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Update setup.cfg * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Update setup.cfg * Update setup.cfg * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Update wandb_utils.py * Update augmentations.py * Update setup.cfg * Update yolo.py * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Update val.py * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * simplify colorstr * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * val run fix * export.py last comma * Update export.py * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Update hubconf.py * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * PyTorch Hub tuple fix * PyTorch Hub tuple fix2 * PyTorch Hub tuple fix3 * Update setup Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
pirms 2 gadiem
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. # Define hooks for code formations
  2. # Will be applied on any updated commit files if a user has installed and linked commit hook
  3. default_language_version:
  4. python: python3.8
  5. # Define bot property if installed via https://github.com/marketplace/pre-commit-ci
  6. ci:
  7. autofix_prs: true
  8. autoupdate_commit_msg: '[pre-commit.ci] pre-commit suggestions'
  9. autoupdate_schedule: monthly
  10. # submodules: true
  11. repos:
  12. - repo: https://github.com/pre-commit/pre-commit-hooks
  13. rev: v4.2.0
  14. hooks:
  15. - id: end-of-file-fixer
  16. - id: trailing-whitespace
  17. - id: check-case-conflict
  18. - id: check-yaml
  19. - id: check-toml
  20. - id: pretty-format-json
  21. - id: check-docstring-first
  22. - repo: https://github.com/asottile/pyupgrade
  23. rev: v2.32.0
  24. hooks:
  25. - id: pyupgrade
  26. name: Upgrade code
  27. args: [ --py37-plus ]
  28. - repo: https://github.com/PyCQA/isort
  29. rev: 5.10.1
  30. hooks:
  31. - id: isort
  32. name: Sort imports
  33. - repo: https://github.com/pre-commit/mirrors-yapf
  34. rev: v0.32.0
  35. hooks:
  36. - id: yapf
  37. name: YAPF formatting
  38. - repo: https://github.com/executablebooks/mdformat
  39. rev: 0.7.14
  40. hooks:
  41. - id: mdformat
  42. name: MD formatting
  43. additional_dependencies:
  44. - mdformat-gfm
  45. - mdformat-black
  46. exclude: |
  47. (?x)^(
  48. README.md
  49. )$
  50. - repo: https://github.com/asottile/yesqa
  51. rev: v1.3.0
  52. hooks:
  53. - id: yesqa
  54. - repo: https://github.com/PyCQA/flake8
  55. rev: 4.0.1
  56. hooks:
  57. - id: flake8
  58. name: PEP8