Skip to content

Commit 739c65a

Browse files
authored
report version (#3)
* report version * lint * bumpy pyright * more lint * pyright * one more time * add actual stub for _version
1 parent af77308 commit 739c65a

File tree

4 files changed

+14
-2
lines changed

4 files changed

+14
-2
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ repos:
3535
- id: vermin
3636
args: ['--config-file', './setup.cfg']
3737
- repo: https://github.com/RobertCraigie/pyright-python
38-
rev: v1.1.399
38+
rev: v1.1.400
3939
hooks:
4040
- id: pyright
4141
pass_filenames: false

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,4 +246,4 @@ context = 1
246246
[tool.pyright]
247247
stubPath = "src/typings"
248248
pythonVersion = "3.11"
249-
reportMissingModuleSource = true
249+
reportMissingModuleSource = false

src/aedifix/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
from __future__ import annotations
55

66
from . import cmake, package, util
7+
from ._version import version as __version__
78
from .cmake import (
89
CMAKE_VARIABLE,
910
CMakeBool,
@@ -33,6 +34,7 @@
3334
"ConfigurationManager",
3435
"MainPackage",
3536
"Package",
37+
"__version__",
3638
"basic_configure",
3739
"cmake",
3840
"package",

src/aedifix/_version.pyi

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# SPDX-FileCopyrightText: Copyright (c) 2021-2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
2+
# SPDX-License-Identifier: Apache-2.0
3+
import typing_extensions
4+
5+
VERSION_TUPLE: typing_extensions.TypeAlias = tuple[int | str, ...]
6+
7+
version: str
8+
__version__: str
9+
__version_tuple__: VERSION_TUPLE
10+
version_tuple: VERSION_TUPLE

0 commit comments

Comments
 (0)