Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Overview: The first release #16

Open
33 of 45 tasks
jorenham opened this issue Jan 30, 2025 · 0 comments
Open
33 of 45 tasks

Overview: The first release #16

jorenham opened this issue Jan 30, 2025 · 0 comments
Assignees
Milestone

Comments

@jorenham
Copy link
Member

jorenham commented Jan 30, 2025

Once the first NumType version is ready, it will support numpy==2.2.* release (probably 2.2.3), and will be compatible with at least Python 3.10.

This is what needs to happen before that:

Initial project layout

  • stubs (based on numpy/**/*.pyi)
  • static rejection tests (based on numpy/typing/tests/data/fail/*.pyi)
  • static acceptance tests (based on numpy/typing/tests/data/{misc,reveal}/*.pyi)
  • runtime acceptance tests (based on numpy/typing/tests/data/pass/*.py)
  • fancy logo
  • github labels
  • github issue template
  • CONTRIBUTING.md
  • README.md (badges, installing, motivation, (non-)goals, roadmap, type-checker support, differences with numpy)

Tooling setup

  • uv + hatch
  • dependabot
  • CI workflow (enable everything, but allow errors where needed)
  • release workflow
  • enable trusted publishing on PyPI
  • ruff (minimal ignores, maximal selected rules, and hierarchically extend when needed)
  • libcst (for bulk codemodding, can probably be removed later)
  • basedpyright (currently mode="standard", but the aim is "recommended")
  • basedmypy
  • pytest (for runtime acceptance tests)
  • typos
  • markdownlint
  • pre-commit
  • tox

Static analysis

  • ruff
    • fix the >2000 errors, by writing codemods or by hand
    • ruff format (everything)
    • ruff check (everything)
    • enforce in CI
  • basedpyright
    • valid /src/numpy-stubs/
    • valid /test/static/
    • valid /test/runtime/
    • valid /tool/
  • basedmypy
    • valid /src/numpy-stubs/
    • valid /test/static/
    • valid /test/runtime/
    • valid /tool/
  • stubtest
    • generate the allowlist (requires mypy to pass)
    • fix the low-hanging fruit, and track them so they can be fixed upstream
  • pytest passes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant