Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/publish-pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
timeout-minutes: 5
environment:
name: pypi
url: https://pypi.org/p/numpy-stubs
url: https://pypi.org/p/numtype
permissions:
id-token: write
steps:
Expand Down
1 change: 0 additions & 1 deletion .python-version

This file was deleted.

2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# NumPy\'s Contributing guidelines
# NumType\'s Contributing guidelines

Welcome to the NumPy community! We\'re excited to have you here. Whether
you\'re new to open source or experienced, your contributions help us
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# numpy-stubs
# NumType

Under development — use at your own risk!
54 changes: 37 additions & 17 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ requires = ["hatchling"]
build-backend = "hatchling.build"

[project]
name = "numpy-stubs"
name = "numtype"
version = "2.2.2.0.dev0"
description = "Official typing stubs for NumPy"
description = "Experimental Typing Stubs for NumPy"
readme = "README.md"
authors = [{name = "Joren Hammudoglu", email = "jhammudoglu@gmail.com"}]
maintainers = [{name = "NumPy Developers", email = "numpy-discussion@python.org"}]
license = "BSD-3-Clause"
keywords = ["numpy", "stubs", "typing", "types", "pep484"]
keywords = ["numpy", "typing", "stubs"]
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
Expand All @@ -25,34 +25,44 @@ classifiers = [
"Typing :: Stubs Only",
"Typing :: Typed",
]
requires-python = ">=3.11"
requires-python = ">=3.10"
dependencies = []

[project.optional-dependencies]
numpy = ["numpy>=2.2.2,<2.3"]

[project.urls]
Homepage = "https://numpy.org/"
Repository = "https://github.com/jorenham/numpyi/"
Issues = "https://github.com/jorenham/numpyi/issues"
Changelog = "https://github.com/jorenham/numpyi/releases"
Repository = "https://github.com/jorenham/numtype/"
Issues = "https://github.com/jorenham/numtype/issues"
Changelog = "https://github.com/jorenham/numtype/releases"

[dependency-groups]
numpy = ["numpy-stubs[numpy]"]
numpy = ["numtype[numpy]"]
dev = [
{include-group = "numpy"},
"ruff>=0.9.3",
"basedmypy[faster-cache]>=2.9.1",
"basedpyright>=1.24.0",
]

[tool.hatch.build]
packages = ["numpy-stubs"]
[tool.hatch.build.targets.sdist]
exclude = [
"/.github",
"/.vscode",
"/dist",
"/tests",
"CONTRIBUTING.md",
"uv.lock",
]

[tool.hatch.build.targets.wheel]
packages = ["src/numpy-stubs"]


[tool.mypy]
files = ["src/**/*.py", "src/**/*.pyi"]
python_version = "3.11"
python_version = "3.10"
strict = true
disable_bytearray_promotion = true
disable_memoryview_promotion = true
Expand All @@ -65,14 +75,14 @@ disallow_any_explicit = false


[tool.pyright]
include = ["src"]
include = ["src/numpy-stubs"]
ignore = [".venv"]
venv = ".venv"
venv = ".venv/"
venvPath = "."
stubPath = "."
pythonVersion = "3.11"
stubPath = "src/"
pythonVersion = "3.10"
pythonPlatform = "All"
typeCheckingMode = "strict"
typeCheckingMode = "standard"

deprecateTypingAliases = true
enableReachabilityAnalysis = false
Expand Down Expand Up @@ -155,12 +165,22 @@ preview = true
suppress-dummy-args = true

[tool.ruff.lint.flake8-import-conventions]
banned-from = ["abc", "ctypes", "datetime", "os", "sys", "numpy", "numpy.typing"]
banned-from = [
"abc",
"ctypes",
"datetime",
"os",
"sys",
"numpy",
"numpy.typing",
"numtype",
]
[tool.ruff.lint.flake8-import-conventions.extend-aliases]
"ctypes" = "ct"
"datetime" = "dt"
"numpy" = "np"
"numpy.typing" = "npt"
"numtype" = "nt"

[tool.ruff.lint.isort]
case-sensitive = true
Expand Down
Loading
Loading