Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel

.pre-commit-config.yaml 1.6 KB

You have to be logged in to leave a comment. Sign In
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
  1. # pre-commit hooks
  2. repos:
  3. - repo: https://github.com/pre-commit/pre-commit-hooks
  4. rev: v4.6.0
  5. hooks:
  6. - id: check-yaml
  7. - id: check-toml
  8. - id: check-json
  9. - id: check-ast
  10. - id: requirements-txt-fixer
  11. - id: trailing-whitespace
  12. - id: end-of-file-fixer
  13. - id: double-quote-string-fixer
  14. # trailing comma fixer
  15. - repo: https://github.com/asottile/add-trailing-comma
  16. rev: v3.1.0
  17. hooks:
  18. - id: add-trailing-comma
  19. # black formatter
  20. - repo: https://github.com/ambv/black
  21. rev: 24.4.0
  22. hooks:
  23. - id: black
  24. args: [--config, pyproject.toml]
  25. # yaml formatter
  26. - repo: https://github.com/macisamuele/language-formatters-pre-commit-hooks
  27. rev: v2.13.0
  28. hooks:
  29. - id: pretty-format-yaml
  30. args: [--autofix, --indent, '2', --preserve-quotes]
  31. # import cleaner
  32. - repo: https://github.com/hadialqattan/pycln
  33. rev: v2.4.0
  34. hooks:
  35. - id: pycln
  36. args: [--config, pyproject.toml]
  37. # import sorter
  38. - repo: https://github.com/timothycrosley/isort
  39. rev: 5.13.2
  40. hooks:
  41. - id: isort
  42. files: \.(py)$
  43. args: [--settings-path, pyproject.toml]
  44. # ruff
  45. - repo: https://github.com/astral-sh/ruff-pre-commit
  46. rev: 'v0.3.7'
  47. hooks:
  48. - id: ruff
  49. args: [--fix, --exit-non-zero-on-fix]
  50. # docstring style checker
  51. - repo: https://github.com/pycqa/pydocstyle
  52. rev: 6.3.0
  53. hooks:
  54. - id: pydocstyle
  55. additional_dependencies: [toml, tomli]
  56. args: [--config, pyproject.toml]
  57. # static type checker
  58. - repo: https://github.com/pre-commit/mirrors-mypy
  59. rev: v1.9.0
  60. hooks:
  61. - id: mypy
  62. args: [--config-file, pyproject.toml]
  63. # exclude given directories from checking
  64. exclude: |
  65. (?x)(
  66. ^src/models/yolo/
  67. )
Tip!

Press p or to see the previous file or, n or to see the next file

Comments

Loading...