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 .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ repos:
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: https://github.com/tox-dev/pyproject-fmt
rev: "v2.21.2"
rev: "v2.23.0"
hooks:
- id: pyproject-fmt
- repo: https://github.com/34j/sync-python-matrix
Expand Down
24 changes: 12 additions & 12 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -96,30 +96,30 @@ lint.per-file-ignores."tests/**/*" = [
lint.isort.known-first-party = [ "array_api", "tests" ]

[tool.mypy]
check_untyped_defs = true
disallow_any_generics = false
disallow_incomplete_defs = true
disallow_untyped_defs = true
mypy_path = "src/"
no_implicit_optional = true
show_error_codes = true
warn_unreachable = true
warn_unused_ignores = true
exclude = [
"docs/.*",
"setup.py",
]
disallow_any_generics = false
disallow_untyped_defs = true
disallow_incomplete_defs = true
check_untyped_defs = true
warn_unused_ignores = true
warn_unreachable = true
overrides = [ { module = "tests.*", allow_untyped_defs = true }, { module = "docs.*", ignore_errors = true } ]
no_implicit_optional = true
show_error_codes = true

[tool.pytest]
ini_options.pythonpath = [ "src" ]
ini_options.addopts = """\
-v
-Wdefault
--cov=array_api
--cov-report=term
--cov-report=xml
"""
ini_options.pythonpath = [ "src" ]

[tool.coverage]
run.branch = true
Expand All @@ -132,11 +132,11 @@ report.exclude_lines = [
]

[tool.semantic_release]
version_toml = [ "pyproject.toml:project.version" ]
version_variables = [
"src/array_api/__init__.py:__version__",
"docs/conf.py:release",
"src/array_api/__init__.py:__version__",
]
version_toml = [ "pyproject.toml:project.version" ]
build_command = """
pip install uv
uv lock
Expand All @@ -146,6 +146,7 @@ uv build
branches.main.match = "main"
branches.noop.match = "(?!main$)"
branches.noop.prerelease = true
changelog.environment.keep_trailing_newline = true
changelog.exclude_commit_patterns = [
"chore(?:\\([^)]*?\\))?: .+",
"ci(?:\\([^)]*?\\))?: .+",
Expand All @@ -156,4 +157,3 @@ changelog.exclude_commit_patterns = [
"Merged? .*",
"Initial [Cc]ommit.*", # codespell:ignore
]
changelog.environment.keep_trailing_newline = true
Loading