Skip to content

Commit 5fc329d

Browse files
committed
➖ remove redundant dev dependencies
1 parent 54dc7d4 commit 5fc329d

File tree

2 files changed

+10
-162
lines changed

2 files changed

+10
-162
lines changed

pyproject.toml

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ lint = [
4747
"ruff>=0.9.2",
4848
"sp-repo-review[cli]>=2025.1.22",
4949
]
50-
typecheck = [
50+
type = [
5151
{include-group = "extras"},
5252
{include-group = "ci"},
5353
{include-group = "codegen"},
@@ -56,10 +56,7 @@ typecheck = [
5656
]
5757
dev = [
5858
{include-group = "lint"},
59-
{include-group = "typecheck"},
60-
"poethepoet>=0.32.1,<1",
61-
"pre-commit>=4.1.0",
62-
"pre-commit-uv>=4.1.4,<5",
59+
{include-group = "type"},
6360
]
6461

6562
[project.optional-dependencies]
@@ -113,7 +110,6 @@ ruff = ["_ruff_format", "_ruff_check"]
113110
check = ["mdformat --check", "repo-review", "ruff"]
114111
lint = ["check", "format"]
115112
types = "basedpyright codegen scripts"
116-
pre-commit = "pre-commit run --all-files"
117113

118114
_test_bpr = "basedpyright tests"
119115
_test_mypy = """
@@ -159,15 +155,17 @@ args = [
159155
extend-exclude = ["*.pyi", ".mypyignore"]
160156

161157
[tool.mypy]
158+
files = ["codegen/**/*.py", "scripts/**/*.py", "tests/**/*.py", "scipy-stubs/**/*.pyi"]
159+
exclude = ['^\.git$', '^\.ruff_cache$','^\.tox$']
162160
python_version = "3.10"
161+
plugins = ["numpy.typing.mypy_plugin"]
163162
strict = true
164163
disable_bytearray_promotion = true
165164
disable_memoryview_promotion = true
166-
warn_unreachable = true
167-
warn_unused_ignores = true
165+
warn_unreachable = false
166+
warn_unused_ignores = false
168167
disallow_any_explicit = false # no other way to type e.g. `float64 <: number[Any]`
169168
enable_error_code = ["ignore-without-code", "redundant-expr", "truthy-bool"]
170-
plugins = ["numpy.typing.mypy_plugin"]
171169

172170
[tool.pyright]
173171
include = ["scipy-stubs", "codegen", "scripts", "tests"]
@@ -239,7 +237,7 @@ ignore = [
239237

240238
[tool.ruff]
241239
src = ["scipy-stubs", "codegen", "scripts"]
242-
exclude = [".venv"]
240+
extend-exclude = [".venv", ".git", ".mypy_cache", ".tox"]
243241
force-exclude = true
244242
# https://typing.readthedocs.io/en/latest/guides/writing_stubs.html#maximum-line-length
245243
line-length = 130

uv.lock

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

0 commit comments

Comments
 (0)