setup.cfg 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. [coverage:run]
  2. source =
  3. custom_components
  4. [coverage:report]
  5. exclude_lines =
  6. pragma: no cover
  7. raise NotImplemented()
  8. if __name__ == '__main__':
  9. main()
  10. show_missing = true
  11. [tool:pytest]
  12. testpaths = tests
  13. norecursedirs = .git
  14. addopts =
  15. --strict
  16. --cov=custom_components
  17. [flake8]
  18. # https://github.com/ambv/black#line-length
  19. max-line-length = 88
  20. # E501: line too long
  21. # W503: Line break occurred before a binary operator
  22. # E203: Whitespace before ':'
  23. # D202 No blank lines allowed after function docstring
  24. # W504 line break after binary operator
  25. ignore =
  26. E501,
  27. W503,
  28. E203,
  29. D202,
  30. W504
  31. [isort]
  32. # https://github.com/timothycrosley/isort
  33. # https://github.com/timothycrosley/isort/wiki/isort-Settings
  34. # splits long import on multiple lines indented by 4 spaces
  35. multi_line_output = 3
  36. include_trailing_comma=True
  37. force_grid_wrap=0
  38. use_parentheses=True
  39. line_length=88
  40. indent = " "
  41. # by default isort don't check module indexes
  42. not_skip = __init__.py
  43. # will group `import x` and `from x import` of the same module.
  44. force_sort_within_sections = true
  45. sections = FUTURE,STDLIB,INBETWEENS,THIRDPARTY,FIRSTPARTY,LOCALFOLDER
  46. default_section = THIRDPARTY
  47. known_first_party = custom_components,tests
  48. forced_separate = tests
  49. combine_as_imports = true
  50. [mypy]
  51. python_version = 3.7
  52. ignore_errors = true
  53. follow_imports = silent
  54. ignore_missing_imports = true
  55. warn_incomplete_stub = true
  56. warn_redundant_casts = true
  57. warn_unused_configs = true