|
| 1 | +[project] |
| 2 | + name="array-api-typing" |
| 3 | + dynamic = ["version"] |
| 4 | + description = "Static typing support for the array API standard" |
| 5 | + readme = "README.md" |
| 6 | + requires-python = ">=3.10" |
| 7 | + license.file = "LICENSE" |
| 8 | + authors = [ |
| 9 | + { name= "Consortium for Python Data API Standards", email= "[email protected]"}, |
| 10 | + { name= "Joren Hammudoglu", email= "[email protected]"}, |
| 11 | + { name= "Nathaniel Starkman", email= "[email protected]"} |
| 12 | + ] |
| 13 | + classifiers = [ |
| 14 | + "Development Status :: 3 - Alpha", |
| 15 | + "Intended Audience :: Developers", |
| 16 | + "License :: OSI Approved :: MIT License", |
| 17 | + "Operating System :: OS Independent", |
| 18 | + "Programming Language :: Python :: 3 :: Only", |
| 19 | + "Programming Language :: Python :: 3", |
| 20 | + "Programming Language :: Python :: 3.10", |
| 21 | + "Programming Language :: Python :: 3.11", |
| 22 | + "Programming Language :: Python :: 3.12", |
| 23 | + "Programming Language :: Python :: 3.13", |
| 24 | + "Programming Language :: Python", |
| 25 | + "Topic :: Scientific/Engineering", |
| 26 | + "Typing :: Typed", |
| 27 | + ] |
| 28 | + dependencies = [] |
| 29 | + |
| 30 | + [project.urls] |
| 31 | + Changelog = "https://github.com/data-apis/array-api-typing/releases" |
| 32 | + Homepage = "https://github.com/data-apis/array-api-typing" |
| 33 | + |
| 34 | + |
| 35 | +[build-system] |
| 36 | + requires = ["hatch-vcs", "hatchling"] |
| 37 | + build-backend = "hatchling.build" |
| 38 | + |
| 39 | + |
| 40 | +[dependency-groups] |
| 41 | +test = [ |
| 42 | + "pytest>=8.3.3", |
| 43 | + "pytest-cov >=3", |
| 44 | + "pytest-github-actions-annotate-failures", |
| 45 | + "sybil>=8.0.0", |
| 46 | +] |
| 47 | + |
| 48 | + |
| 49 | +[tool.hatch] |
| 50 | + build.hooks.vcs.version-file = "src/array_api_typing/_version.py" |
| 51 | + version.source = "vcs" |
| 52 | + |
| 53 | + |
| 54 | +[tool.pytest.ini_options] |
| 55 | + addopts = [ |
| 56 | + "--showlocals", |
| 57 | + "--strict-config", |
| 58 | + "--strict-markers", |
| 59 | + "-p no:doctest", # using sybil |
| 60 | + "-ra", |
| 61 | + ] |
| 62 | + filterwarnings = [ |
| 63 | + "error", |
| 64 | + # Sybil |
| 65 | + "ignore:Attribute s is deprecated and will be removed in Python 3\\.14:DeprecationWarning", |
| 66 | + "ignore:ast\\.Str is deprecated and will be removed in Python 3\\.14:DeprecationWarning", |
| 67 | + ] |
| 68 | + log_cli_level = "INFO" |
| 69 | + minversion = "8.3" |
| 70 | + testpaths = ["docs", "src/", "tests/"] |
| 71 | + norecursedirs = ["docs/_build"] |
| 72 | + xfail_strict = true |
| 73 | + |
| 74 | + |
| 75 | +[tool.coverage] |
| 76 | + report.exclude_also = ['\.\.\.', 'if typing.TYPE_CHECKING:'] |
| 77 | + run.source = ["array-api-typing"] |
| 78 | + run.branch = true |
| 79 | + |
| 80 | + |
| 81 | +[tool.mypy] |
| 82 | + allow_incomplete_defs = false |
| 83 | + allow_untyped_defs = false |
| 84 | + enable_error_code = ["ignore-without-code", "redundant-expr", "truthy-bool"] |
| 85 | + files = ["src", "tests"] |
| 86 | + python_version = "3.10" |
| 87 | + strict = true |
| 88 | + warn_return_any = true |
| 89 | + warn_unreachable = true |
| 90 | + warn_unused_configs = true |
| 91 | + |
| 92 | + |
| 93 | +[tool.ruff] |
| 94 | + [tool.ruff.lint] |
| 95 | + extend-select = ["ALL"] |
| 96 | + ignore = [ |
| 97 | + "D203", # 1 blank line required before class docstring |
| 98 | + "D213", # Multi-line docstring summary should start at the second line |
| 99 | + "ISC001", # Conflicts with formatter |
| 100 | + ] |
| 101 | + |
| 102 | + [tool.ruff.lint.isort] |
| 103 | + combine-as-imports = true |
| 104 | + extra-standard-library = ["typing_extensions"] |
| 105 | + known-local-folder = ["array_api_typing"] |
| 106 | + |
| 107 | + [tool.ruff.format] |
| 108 | + docstring-code-format = true |
0 commit comments