Skip to content

Commit eb3e42b

Browse files
nstarmanjorenham
andauthored
✨: create init file (#12)
Co-authored-by: Joren Hammudoglu <jhammudoglu@gmail.com>
1 parent 3c3a2e0 commit eb3e42b

File tree

4 files changed

+22
-12
lines changed

4 files changed

+22
-12
lines changed

.gitignore

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,5 @@ site/
2020
.venv/
2121
venv/
2222

23-
# IntelliJ
24-
.idea/
25-
.run/
23+
# Build docs
24+
/src/array_api_typing/_version.py

pyproject.toml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,16 +44,23 @@
4444
]
4545
test = [
4646
"pytest>=8.3.3",
47-
"pytest-cov >=3",
48-
"pytest-github-actions-annotate-failures",
47+
"pytest-cov>=3",
48+
"pytest-github-actions-annotate-failures>=0.3.0",
4949
"sybil>=8.0.0",
5050
]
5151

5252

5353
[tool.hatch]
54-
build.hooks.vcs.version-file = "src/array_api_typing/_version.py"
5554
version.source = "vcs"
5655

56+
[tool.hatch.build.hooks.vcs]
57+
version-file = "src/array_api_typing/_version.py"
58+
template = '''
59+
# This file is automatically generated by Hatch
60+
version = {version!r}
61+
version_tuple = {version_tuple!r}
62+
'''
63+
5764

5865
[tool.coverage]
5966
report.exclude_also = ['\.\.\.', 'if typing.TYPE_CHECKING:']

src/array_api_typing/__init__.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
"""Static typing support for the array API standard."""
2+
3+
__all__ = ()
4+
5+
from ._version import version as __version__ , version_tuple as __version_tuple__

uv.lock

Lines changed: 5 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)