-
Notifications
You must be signed in to change notification settings - Fork 1
/
pyproject.toml
132 lines (110 loc) · 3.75 KB
/
pyproject.toml
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
[project]
name = "array-api-typing"
dynamic = ["version"]
description = "Static typing support for the array API standard"
readme = "README.md"
requires-python = ">=3.10"
license = "MIT"
authors = [
{ name = "Consortium for Python Data API Standards", email = "[email protected]" },
{ name = "Joren Hammudoglu", email = "[email protected]" },
{ name = "Nathaniel Starkman", email = "[email protected]" },
]
classifiers = [
"Development Status :: 1 - Planning",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python",
"Topic :: Scientific/Engineering",
"Typing :: Typed",
]
dependencies = []
[project.urls]
Repository = "https://github.com/data-apis/array-api-typing"
Changelog = "https://github.com/data-apis/array-api-typing/releases"
[build-system]
requires = ["hatch-vcs", "hatchling"]
build-backend = "hatchling.build"
[dependency-groups]
dev = [
"pre-commit>=4.0.1",
{ include-group = "test" },
]
test = [
"pytest>=8.3.3",
"pytest-cov >=3",
"pytest-github-actions-annotate-failures",
"sybil>=8.0.0",
]
[tool.hatch]
build.hooks.vcs.version-file = "src/array_api_typing/_version.py"
version.source = "vcs"
[tool.coverage]
report.exclude_also = ['\.\.\.', 'if typing.TYPE_CHECKING:']
run.source = ["array-api-typing"]
run.branch = true
[tool.mypy]
files = ["src", "tests"]
python_version = "3.10"
strict = true
disallow_incomplete_defs = true
disallow_untyped_defs = true
disable_bytearray_promotion = true # Note(2024-12-05): these are private flags
disable_memoryview_promotion = true # Note(2024-12-05): these are private flags
enable_error_code = ["ignore-without-code", "redundant-expr", "truthy-bool"]
warn_return_any = true
warn_unreachable = true
warn_unused_configs = true
[tool.pytest.ini_options]
addopts = [
"--showlocals",
"--strict-config",
"--strict-markers",
"-p no:doctest", # using sybil
"-ra",
]
filterwarnings = [
"error",
# Sybil
"ignore:Attribute s is deprecated and will be removed in Python 3\\.14:DeprecationWarning",
"ignore:ast\\.Str is deprecated and will be removed in Python 3\\.14:DeprecationWarning",
]
log_cli_level = "INFO"
minversion = "8.3"
testpaths = ["README.md", "src/", "docs", "tests/"]
norecursedirs = ["docs/_build"]
xfail_strict = true
[tool.ruff]
preview = true
force-exclude = true
[tool.ruff.lint]
extend-select = ["ALL"]
ignore = [
"COM812", # Conflicts with formatter
"CPY", # Missing copyright notice at top of file (NOTE revisit when autofixable)
"D105", # Missing docstring in magic method
"D107", # Missing docstring in __init__
"D203", # 1 blank line required before class docstring
"D213", # Multi-line docstring summary should start at the second line
"FBT", # flake8-boolean-trap
"FIX", # flake8-fixme
"ISC001", # Conflicts with formatter
]
[tool.ruff.lint.flake8-import-conventions]
banned-from = ["array_api_typing"]
[tool.ruff.lint.flake8-import-conventions.extend-aliases]
array_api_typing = "xpt"
[tool.ruff.lint.isort]
combine-as-imports = true
extra-standard-library = ["typing_extensions"]
known-local-folder = ["array_api_typing"]
[tool.ruff.format]
docstring-code-format = true
line-ending = "lf"