setup.cfg 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. # -----------------------------------------------------------------------------
  2. # BUILDING WHEELS
  3. # -----------------------------------------------------------------------------
  4. [metadata]
  5. # https://wheel.readthedocs.io/en/stable/user_guide.html#including-license-files-in-the-generated-wheel-file
  6. license_files =
  7. LICENSE.txt
  8. README.md
  9. [bdist_wheel]
  10. # https://packaging.python.org/guides/distributing-packages-using-setuptools/#wheels
  11. universal=0
  12. # -----------------------------------------------------------------------------
  13. # FORMATTING AND LINTING
  14. # -----------------------------------------------------------------------------
  15. [flake8]
  16. # Q003 Change outer quotes to avoid escaping inner quotes
  17. # W503 line break before binary operator (preferred way)
  18. ignore = Q003,W503
  19. # flake8-use-fstring
  20. percent-greedy = 0
  21. format-greedy = 2
  22. [mypy]
  23. # Untyped definitions and calls
  24. # Disallows defining functions without type annotations or with
  25. # incomplete type annotations.
  26. disallow_untyped_defs = true
  27. # Type-checks the interior of functions without type annotations
  28. check_untyped_defs = true
  29. # Import discovery
  30. follow_imports = normal
  31. ignore_missing_imports = True
  32. # Warning configuration
  33. warn_unused_ignores = true
  34. warn_unreachable = true
  35. # Error message config
  36. # pretty = true
  37. # -----------------------------------------------------------------------------
  38. # TEST CONFIGURATION
  39. # -----------------------------------------------------------------------------
  40. [tool:pytest]
  41. addopts = -p no:warnings