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

Update the development dependencies #281

Merged
merged 2 commits into from
Jan 30, 2025
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
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,10 @@ repos:
hooks:
- id: blacken-docs
additional_dependencies:
- black==24.10.*
- black==25.1.*

- repo: https://github.com/igorshubovych/markdownlint-cli
rev: v0.43.0
rev: v0.44.0
hooks:
- id: markdownlint

Expand All @@ -52,7 +52,7 @@ repos:
- id: typos

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.9.2
rev: v0.9.3
hooks:
- id: ruff
args: [--fix, --show-fixes]
Expand Down
4 changes: 0 additions & 4 deletions optype/_core/_can.py
Original file line number Diff line number Diff line change
Expand Up @@ -615,10 +615,8 @@ class CanPow(
@override
def __pow__(self, exp: _T_contra, /) -> _T_co: ...
@overload
@override
def __pow__(self, exp: _T_contra, mod: None = ..., /) -> _T_co: ...
@overload
@override
def __pow__(self, exp: _T_contra, mod: _V_contra, /) -> _AnyIntT_co: ...


Expand Down Expand Up @@ -956,10 +954,8 @@ class CanRound(
@override
def __round__(self, /) -> _AnyIntT_co: ...
@overload
@override
def __round__(self, /, ndigits: None = ...) -> _AnyIntT_co: ...
@overload
@override
def __round__(self, /, ndigits: _AnyIntT_contra) -> _AnyFloatT_co: ...


Expand Down
17 changes: 13 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
requires = ["hatchling"]
build-backend = "hatchling.build"


[project]
name = "optype"
description = "Building blocks for precise & flexible type hints"
Expand Down Expand Up @@ -35,15 +36,16 @@ dependencies = ["typing-extensions>=4.10; python_version<'3.13'"]
Changelog = "https://github.com/jorenham/optype/releases"
Funding = "https://github.com/sponsors/jorenham"


[dependency-groups]
extra = ["optype[numpy]"]
lint = [
"ruff>=0.9.2",
"sp-repo-review[cli]>=2024.8.19",
"ruff>=0.9.3",
"sp-repo-review[cli]>=2025.1.22",
]
type = [
"basedmypy[faster-cache]>=2.9.1",
"basedpyright>=1.24.0",
"basedpyright>=1.26.0",
]
test = [
"beartype>=0.19.0",
Expand All @@ -55,9 +57,10 @@ dev = [
{include-group = "type"},
{include-group = "test"},
"pre-commit>=4.1.0",
"tox>=4.23.2",
"tox>=4.24.1",
]


[tool.hatch.build.targets.sdist]
exclude = [
"/.cache",
Expand All @@ -82,6 +85,7 @@ exclude = [
"uv.lock",
]


[tool.mypy]
python_version = "3.10"
packages = ["optype", "examples", "tests"]
Expand Down Expand Up @@ -116,6 +120,7 @@ bare_literals = false
module = ["tests.*", "tests.numpy.*"]
disable_error_code = ["unreachable"]


[tool.basedpyright]
pythonVersion = "3.10"
pythonPlatform = "All"
Expand Down Expand Up @@ -148,6 +153,7 @@ reportUnusedVariable = false # dupe of F841
NP23 = false
NP30 = false


[tool.pytest.ini_options]
minversion = "8.0"
testpaths = ["optype", "examples", "tests"]
Expand All @@ -157,6 +163,7 @@ filterwarnings = ["error"]
log_cli_level = "INFO"
xfail_strict = true


[tool.repo-review]
ignore = [
"PY004", # no `docs/` (maybe later)
Expand All @@ -166,6 +173,7 @@ ignore = [
"RTD", # no readthedocs
]


[tool.ruff]
src = ["optype", "examples", "tests"]
indent-width = 4
Expand Down Expand Up @@ -339,6 +347,7 @@ force-exclude = true
]
allow-magic-value-types = ["int"]


[tool.tox]
isolated_build = true
env_list = ["repo-review", "pre-commit", "3.10", "3.11", "3.12", "3.13"]
Expand Down
Loading