Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel

pyproject.toml 1.9 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
42
43
44
45
46
47
48
  1. [build-system]
  2. requires = [
  3. "setuptools>=42",
  4. "wheel"
  5. ]
  6. build-backend = "setuptools.build_meta"
  7. [tool.pytest.ini_options]
  8. minversion = "2.0"
  9. addopts = "-rfEX -p pytester --strict-markers"
  10. python_files = ["test_*.py", "*_test.py"]
  11. python_classes = ["Test", "Acceptance"]
  12. python_functions = ["test"]
  13. # NOTE: "doc" is not included here, but gets tested explicitly via "doctesting".
  14. testpaths = ["tests"]
  15. xfail_strict = true
  16. filterwarnings = [
  17. "error",
  18. "default:Using or importing the ABCs:DeprecationWarning:unittest2.*",
  19. # produced by older pyparsing<=2.2.0.
  20. "default:Using or importing the ABCs:DeprecationWarning:pyparsing.*",
  21. "default:the imp module is deprecated in favour of importlib:DeprecationWarning:nose.*",
  22. # distutils is deprecated in 3.10, scheduled for removal in 3.12
  23. "ignore:The distutils package is deprecated:DeprecationWarning",
  24. # produced by python3.6/site.py itself (3.6.7 on Travis, could not trigger it with 3.6.8)."
  25. "ignore:.*U.*mode is deprecated:DeprecationWarning:(?!(pytest|_pytest))",
  26. # produced by pytest-xdist
  27. "ignore:.*type argument to addoption.*:DeprecationWarning",
  28. # produced on execnet (pytest-xdist)
  29. "ignore:.*inspect.getargspec.*deprecated, use inspect.signature.*:DeprecationWarning",
  30. # pytest's own futurewarnings
  31. "ignore::pytest.PytestExperimentalApiWarning",
  32. # Do not cause SyntaxError for invalid escape sequences in py37.
  33. # Those are caught/handled by pyupgrade, and not easy to filter with the
  34. # module being the filename (with .py removed).
  35. "default:invalid escape sequence:DeprecationWarning",
  36. # ignore use of unregistered marks, because we use many to test the implementation
  37. "ignore::_pytest.warning_types.PytestUnknownMarkWarning",
  38. ]
  39. [tool.black]
  40. target-version = ['py311']
  41. [tool.isort]
  42. profile = "black"
  43. line_length = 100
  44. lines_between_sections = 1
  45. skip = "migrations"
Tip!

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

Comments

Loading...