pyproject.toml 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. [build-system]
  2. requires = ["setuptools", "wheel"]
  3. [tool.black]
  4. line-length = 100
  5. exclude = '''
  6. /(
  7. \.eggs
  8. | \.git
  9. | \.mypy_cache
  10. | \.tox
  11. | \.venv
  12. | \.pytype
  13. | _build
  14. | buck-out
  15. | build
  16. | dist
  17. )/
  18. | docs/conf.py
  19. '''
  20. target-version = ['py36', 'py37', 'py38', 'py39', 'py310']
  21. [tool.coverage.run]
  22. source = ['datetimerange']
  23. branch = true
  24. [tool.coverage.report]
  25. show_missing = true
  26. precision = 1
  27. exclude_lines = [
  28. 'except ImportError',
  29. 'raise NotImplementedError',
  30. 'pass',
  31. 'ABCmeta',
  32. 'abstractmethod',
  33. 'abstractproperty',
  34. 'abstractclassmethod',
  35. 'warnings.warn',
  36. ]
  37. [tool.isort]
  38. known_third_party = [
  39. 'pytest',
  40. ]
  41. include_trailing_comma = true
  42. line_length = 100
  43. lines_after_imports = 2
  44. multi_line_output = 3
  45. skip_glob = [
  46. '*/.eggs/*',
  47. '*/.pytype/*',
  48. '*/.tox/*',
  49. ]
  50. [tool.mypy]
  51. ignore_missing_imports = true
  52. python_version = 3.6
  53. pretty = true
  54. show_error_codes = true
  55. show_error_context = true
  56. warn_unreachable = true
  57. warn_unused_configs = true
  58. [tool.pytest.ini_options]
  59. testpaths = [
  60. "test",
  61. ]
  62. md_report = true
  63. md_report_verbose = 1
  64. md_report_color = "auto"
  65. md_report_margin = 0