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.2 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
  1. repos:
  2. - repo: https://github.com/pre-commit/pre-commit-hooks
  3. rev: v4.4.0
  4. hooks:
  5. - id: trailing-whitespace
  6. # Remove trailing whitespaces from files
  7. - id: check-added-large-files
  8. args: [--maxkb=500]
  9. # Check for large files before committing (max 500 KB)
  10. - id: check-case-conflict
  11. # Check for case conflicts in filenames
  12. - id: check-json
  13. # Validate JSON files
  14. - id: check-merge-conflict
  15. # Check for files with unresolved merge conflicts
  16. - id: check-yaml
  17. args: ["--unsafe"]
  18. # Parse YAML files for syntax without loading them
  19. - id: mixed-line-ending
  20. # Check for mixed line endings in files
  21. - repo: https://github.com/PyCQA/isort.git
  22. rev: 5.12.0
  23. hooks:
  24. - id: isort
  25. args: ["--profile", "black"]
  26. # Sort and organize Python imports in files
  27. - repo: https://github.com/ambv/black
  28. rev: 23.1.0
  29. hooks:
  30. - id: black
  31. language_version: python3.10
  32. # Automatically format Python code using the Black formatter (Python 3.10)
  33. - repo: https://github.com/PyCQA/flake8.git
  34. rev: 6.0.0
  35. hooks:
  36. - id: flake8
  37. args: ['--max-line-length=100']
  38. # Check Python code against PEP 8 and other style guides
Tip!

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

Comments

Loading...