|
1 | 1 | [build-system]
|
| 2 | +build-backend = "setuptools.build_meta" |
| 3 | + |
2 | 4 | requires = [
|
3 |
| - "setuptools>=51.0", |
| 5 | + "setuptools>=51", |
| 6 | + "setuptools-scm[toml]>=6.2", |
4 | 7 | "wheel>=0.36",
|
5 |
| - "setuptools_scm[toml]>=6.2" |
6 | 8 | ]
|
7 |
| -build-backend = "setuptools.build_meta" |
| 9 | + |
| 10 | +[project] |
| 11 | +name = "pytest-asyncio" |
| 12 | +description = "Pytest support for asyncio" |
| 13 | +readme.content-type = "text/x-rst" |
| 14 | +readme.file = "README.rst" |
| 15 | +license.text = "Apache 2.0" |
| 16 | +authors = [ |
| 17 | + { name = "Tin Tvrtković <[email protected]>", email = "[email protected]" }, |
| 18 | +] |
| 19 | +requires-python = ">=3.9" |
| 20 | +classifiers = [ |
| 21 | + "Development Status :: 4 - Beta", |
| 22 | + "Framework :: AsyncIO", |
| 23 | + "Framework :: Pytest", |
| 24 | + "Intended Audience :: Developers", |
| 25 | + "License :: OSI Approved :: Apache Software License", |
| 26 | + "Programming Language :: Python :: 3 :: Only", |
| 27 | + "Programming Language :: Python :: 3.9", |
| 28 | + "Programming Language :: Python :: 3.10", |
| 29 | + "Programming Language :: Python :: 3.11", |
| 30 | + "Programming Language :: Python :: 3.12", |
| 31 | + "Programming Language :: Python :: 3.13", |
| 32 | + "Topic :: Software Development :: Testing", |
| 33 | + "Typing :: Typed", |
| 34 | +] |
| 35 | +dynamic = [ |
| 36 | + "version", |
| 37 | +] |
| 38 | + |
| 39 | +dependencies = [ |
| 40 | + "pytest>=8.2,<9", |
| 41 | +] |
| 42 | +optional-dependencies.docs = [ |
| 43 | + "sphinx>=5.3", |
| 44 | + "sphinx-rtd-theme>=1", |
| 45 | +] |
| 46 | +optional-dependencies.testing = [ |
| 47 | + "coverage>=6.2", |
| 48 | + "hypothesis>=5.7.1", |
| 49 | +] |
| 50 | +urls."Bug Tracker" = "https://github.com/pytest-dev/pytest-asyncio/issues" |
| 51 | +urls.Changelog = "https://pytest-asyncio.readthedocs.io/en/latest/reference/changelog.html" |
| 52 | +urls.Documentation = "https://pytest-asyncio.readthedocs.io" |
| 53 | +urls.Homepage = "https://github.com/pytest-dev/pytest-asyncio" |
| 54 | +urls."Source Code" = "https://github.com/pytest-dev/pytest-asyncio" |
| 55 | +entry-points.pytest11.asyncio = "pytest_asyncio.plugin" |
| 56 | + |
| 57 | +[tool.setuptools] |
| 58 | +packages = [ |
| 59 | + "pytest_asyncio", |
| 60 | +] |
| 61 | +include-package-data = true |
| 62 | +license-files = [ |
| 63 | + "LICENSE", |
| 64 | +] |
8 | 65 |
|
9 | 66 | [tool.setuptools_scm]
|
10 | 67 | write_to = "pytest_asyncio/_version.py"
|
| 68 | + |
| 69 | +[tool.ruff] |
| 70 | +line-length = 88 |
| 71 | +format.docstring-code-format = true |
| 72 | +lint.select = [ |
| 73 | + "B", # bugbear |
| 74 | + "D", # pydocstyle |
| 75 | + "E", # pycodestyle |
| 76 | + "F", # pyflakes |
| 77 | + "FA100", # add future annotations |
| 78 | + "PGH004", # pygrep-hooks - Use specific rule codes when using noqa |
| 79 | + "PIE", # flake8-pie |
| 80 | + "PLE", # pylint error |
| 81 | + "PYI", # flake8-pyi |
| 82 | + "RUF", # ruff |
| 83 | + "T100", # flake8-debugger |
| 84 | + "UP", # pyupgrade |
| 85 | + "W", # pycodestyle |
| 86 | +] |
| 87 | + |
| 88 | +lint.ignore = [ |
| 89 | + # bugbear ignore |
| 90 | + "B028", # No explicit `stacklevel` keyword argument found |
| 91 | + # pydocstyle ignore |
| 92 | + "D100", # Missing docstring in public module |
| 93 | + "D101", # Missing docstring in public class |
| 94 | + "D102", # Missing docstring in public method |
| 95 | + "D103", # Missing docstring in public function |
| 96 | + "D104", # Missing docstring in public package |
| 97 | + "D105", # Missing docstring in magic method |
| 98 | + "D106", # Missing docstring in public nested class |
| 99 | + "D107", # Missing docstring in `__init__` |
| 100 | + "D203", # `one-blank-line-before-class` (D203) and `no-blank-line-before-class` (D211) are incompatible |
| 101 | + "D205", # 1 blank line required between summary line and description |
| 102 | + "D209", # [*] Multi-line docstring closing quotes should be on a separate line |
| 103 | + "D212", # `multi-line-summary-first-line` (D212) and `multi-line-summary-second-line` (D213) are incompatible. |
| 104 | + "D400", # First line should end with a period |
| 105 | + "D401", # First line of docstring should be in imperative mood |
| 106 | + "D402", # First line should not be the function's signature |
| 107 | + "D404", # First word of the docstring should not be "This" |
| 108 | + "D415", # First line should end with a period, question mark, or exclamation point |
| 109 | +] |
| 110 | + |
| 111 | +[tool.pytest.ini_options] |
| 112 | +python_files = [ |
| 113 | + "test_*.py", |
| 114 | + "*_example.py", |
| 115 | +] |
| 116 | +addopts = "-rsx --tb=short" |
| 117 | +testpaths = [ |
| 118 | + "docs", |
| 119 | + "tests", |
| 120 | +] |
| 121 | +asyncio_mode = "auto" |
| 122 | +asyncio_default_fixture_loop_scope = "function" |
| 123 | +junit_family = "xunit2" |
| 124 | +filterwarnings = [ |
| 125 | + "error", |
| 126 | + "ignore:The event_loop fixture provided by pytest-asyncio has been redefined.*:DeprecationWarning", |
| 127 | +] |
| 128 | + |
| 129 | +[tool.coverage.run] |
| 130 | +source = [ |
| 131 | + "pytest_asyncio", |
| 132 | +] |
| 133 | +branch = true |
| 134 | +data_file = "coverage/coverage" |
| 135 | +omit = [ |
| 136 | + "*/_version.py", |
| 137 | +] |
| 138 | +parallel = true |
| 139 | + |
| 140 | +[tool.coverage.report] |
| 141 | +show_missing = true |
0 commit comments