6
6
requires-python = " >=3.10"
7
7
license = " MIT"
8
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] " }
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
12
]
13
13
classifiers = [
14
14
" Development Status :: 1 - Planning" ,
28
28
dependencies = []
29
29
30
30
[project .urls ]
31
- Changelog = " https://github.com/data-apis/array-api-typing/releases "
32
- Repository = " https://github.com/data-apis/array-api-typing"
31
+ Repository = " https://github.com/data-apis/array-api-typing"
32
+ Changelog = " https://github.com/data-apis/array-api-typing/releases "
33
33
34
34
35
35
[build-system ]
36
- requires = [" hatch-vcs" , " hatchling" ]
36
+ requires = [" hatch-vcs" , " hatchling" ]
37
37
build-backend = " hatchling.build"
38
38
39
39
40
40
[dependency-groups ]
41
- dev = [
42
- " pre-commit>=4.0.1" ,
43
- { include-group = " test" },
44
- ]
45
- test = [
46
- " pytest>=8.3.3" ,
47
- " pytest-cov >=3" ,
48
- " pytest-github-actions-annotate-failures" ,
49
- " sybil>=8.0.0" ,
50
- ]
41
+ dev = [
42
+ " pre-commit>=4.0.1" ,
43
+ { include-group = " test" },
44
+ ]
45
+ test = [
46
+ " pytest>=8.3.3" ,
47
+ " pytest-cov >=3" ,
48
+ " pytest-github-actions-annotate-failures" ,
49
+ " sybil>=8.0.0" ,
50
+ ]
51
51
52
52
53
53
[tool .hatch ]
54
54
build.hooks.vcs.version-file = " src/array_api_typing/_version.py"
55
- version.source = " vcs"
55
+ version.source = " vcs"
56
56
57
57
58
58
[tool .coverage ]
59
59
report.exclude_also = [' \.\.\.' , ' if typing.TYPE_CHECKING:' ]
60
- run.source = [" array-api-typing" ]
61
- run.branch = true
60
+ run.source = [" array-api-typing" ]
61
+ run.branch = true
62
62
63
63
64
64
[tool .mypy ]
65
- files = [" src" , " tests" ]
66
- python_version = " 3.10"
65
+ files = [" src" , " tests" ]
66
+ python_version = " 3.10"
67
67
68
- strict = true
68
+ strict = true
69
69
disallow_incomplete_defs = true
70
- disallow_untyped_defs = true
70
+ disallow_untyped_defs = true
71
71
disable_bytearray_promotion = true # Note(2024-12-05): these are private flags
72
72
disable_memoryview_promotion = true # Note(2024-12-05): these are private flags
73
- enable_error_code = [" ignore-without-code" , " redundant-expr" , " truthy-bool" ]
73
+ enable_error_code = [" ignore-without-code" , " redundant-expr" , " truthy-bool" ]
74
74
75
- warn_return_any = true
76
- warn_unreachable = true
77
- warn_unused_configs = true
75
+ warn_return_any = true
76
+ warn_unreachable = true
77
+ warn_unused_configs = true
78
78
79
79
80
80
[tool .pytest .ini_options ]
@@ -93,7 +93,7 @@ test = [
93
93
]
94
94
log_cli_level = " INFO"
95
95
minversion = " 8.3"
96
- testpaths = [" src/ " , " tests /" , " README.md " , " docs " ]
96
+ testpaths = [" README.md " , " src /" , " docs " , " tests/ " ]
97
97
norecursedirs = [" docs/_build" ]
98
98
xfail_strict = true
99
99
@@ -105,27 +105,27 @@ test = [
105
105
[tool .ruff .lint ]
106
106
extend-select = [" ALL" ]
107
107
ignore = [
108
- " CPY " , # Missing copyright notice at top of file (NOTE revisit when autofixable)
109
- " COM812 " , # Conflicts with formatter
110
- " D105" , # Missing docstring in magic method
111
- " D107" , # Missing docstring in __init__
112
- " D203" , # 1 blank line required before class docstring
113
- " D213" , # Multi-line docstring summary should start at the second line
114
- " FBT" , # flake8-boolean-trap
115
- " FIX" , # flake8-fixme
116
- " ISC001" , # Conflicts with formatter
108
+ " COM812 " , # Conflicts with formatter
109
+ " CPY " , # Missing copyright notice at top of file (NOTE revisit when autofixable)
110
+ " D105" , # Missing docstring in magic method
111
+ " D107" , # Missing docstring in __init__
112
+ " D203" , # 1 blank line required before class docstring
113
+ " D213" , # Multi-line docstring summary should start at the second line
114
+ " FBT" , # flake8-boolean-trap
115
+ " FIX" , # flake8-fixme
116
+ " ISC001" , # Conflicts with formatter
117
117
]
118
-
118
+
119
119
[tool .ruff .lint .flake8-import-conventions ]
120
120
banned-from = [" array_api_typing" ]
121
121
122
- [tool .ruff .lint .flake8-import-conventions .extend-aliases ]
123
- array_api_typing = " xpt"
122
+ [tool .ruff .lint .flake8-import-conventions .extend-aliases ]
123
+ array_api_typing = " xpt"
124
124
125
125
[tool .ruff .lint .isort ]
126
- combine-as-imports = true
127
- extra-standard-library = [" typing_extensions" ]
128
- known-local-folder = [" array_api_typing" ]
126
+ combine-as-imports = true
127
+ extra-standard-library = [" typing_extensions" ]
128
+ known-local-folder = [" array_api_typing" ]
129
129
130
130
[tool .ruff .format ]
131
131
docstring-code-format = true
0 commit comments