Skip to content

Commit

Permalink
pyproject: use strict typing for everyone
Browse files Browse the repository at this point in the history
  • Loading branch information
alexfikl authored and inducer committed Jan 10, 2025
1 parent 8f70149 commit f421c19
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 21 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ jobs:
. ./ci-support-v0
build_py_project_in_venv
python -m mypy codepy
python -m mypy codepy test examples
docs:
name: Documentation
Expand Down
25 changes: 5 additions & 20 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,12 @@ classifiers = [
"Topic :: Utilities",
]
dependencies = [
"cgen>=2020.1",
"numpy>=1.6",
"pytools>=2022.1.14",
"platformdirs>=2.2.0",
"cgen>=2020.1"
"pytools>=2022.1.14",
# NOTE: for Self (requires python >=3.11)
"typing-extensions>=4.5",
]

[project.optional-dependencies]
Expand Down Expand Up @@ -88,23 +90,6 @@ warn_unused_ignores = true

[[tool.mypy.overrides]]
module = [
"cgen.*",
"pycuda.*",
]
ignore_missing_imports = true

[[tool.mypy.overrides]]
module = [
"codepy.bpl",
"codepy.elementwise",
"codepy.cuda",
]
# NOTE: the strict option is global, the checks must be disabled one by one
warn_unused_ignores = false
check_untyped_defs = false
allow_subclassing_any = true
allow_any_generics = true
allow_untyped_calls = true
allow_incomplete_defs = true
allow_untyped_defs = true
implicit_reexport = true
warn_return_any = false

0 comments on commit f421c19

Please sign in to comment.