Skip to content

Commit

Permalink
Add docstrings to Vec where missing.
Browse files Browse the repository at this point in the history
Sample indices instead of sampling elements in Vec.choose_multiple.
  • Loading branch information
MylesBartlett committed Nov 12, 2024
1 parent 4e59b20 commit a66b42e
Show file tree
Hide file tree
Showing 8 changed files with 1,122 additions and 792 deletions.
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ repos:
language: system
pass_filenames: false
require_serial: true
stages: [commit, merge-commit, push, manual]
stages: [pre-commit, pre-merge-commit, pre-push, manual]

- id: make-test
name: Make test
Expand All @@ -33,4 +33,4 @@ repos:
language: system
pass_filenames: false
require_serial: true
stages: [commit, merge-commit, push, manual]
stages: [pre-commit, pre-merge-commit, pre-push, manual]
20 changes: 19 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,20 @@ requires-python = ">= 3.12"
build-backend = "hatchling.build"
requires = ["hatchling"]

[dependency-groups]
dev = [
"basedpyright>=1.21.0",
"codespell>=2.3.0",
"pre-commit>=4.0.1",
"pydoclint>=0.5.9",
"pytest-cov>=6.0.0",
"pytest>=8.3.3",
"ruff>=0.7.3",
]

[tool.uv]
managed = true

[tool.rye]
dev-dependencies = [
"pytest>=8.3.1",
Expand Down Expand Up @@ -141,4 +155,8 @@ ignore_errors = true
fail_under = 70

[tool.coverage.run]
branch = true
branch = true

[tool.basedpyright]
typeCheckingMode = "all"
reportIgnoreCommentWithoutRule = "error"
1 change: 0 additions & 1 deletion pyrightconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{
"$schema": "pyrightconfig.schema.json",
"include": [
"serox/**"
],
Expand Down
Loading

0 comments on commit a66b42e

Please sign in to comment.