.editorconfig 959 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. # https://editorconfig.org/
  2. root = true
  3. [*]
  4. indent_style = space
  5. indent_size = 4
  6. insert_final_newline = true
  7. trim_trailing_whitespace = true
  8. end_of_line = lf
  9. charset = utf-8
  10. [*.py]
  11. # code formatter accepts length of 120, but editor should prefer 80
  12. max_line_length = 80
  13. [{*.sh,manage}]
  14. indent_style = space
  15. indent_size = 4
  16. # shfmt options
  17. shell_variant = bash
  18. switch_case_indent = true
  19. [*.html]
  20. # in the jinja templates we use indent size of 2 and we do not use tabs
  21. indent_size = 2
  22. indent_style = space
  23. [*.css]
  24. indent_size = 2
  25. [*.less]
  26. indent_size = 2
  27. [*.js]
  28. indent_size = 2
  29. [*.json]
  30. indent_size = 2
  31. insert_final_newline = ignore
  32. # Minified JavaScript files shouldn't be changed
  33. [**.min.js]
  34. indent_style = ignore
  35. insert_final_newline = ignore
  36. # Makefiles always use tabs for indentation
  37. [Makefile]
  38. indent_style = tab
  39. # Batch files use tabs for indentation
  40. [*.bat]
  41. indent_style = tab
  42. [docs/**.rst]
  43. max_line_length = 79
  44. [*.yml]
  45. indent_size = 2