Skip to content

Commit

Permalink
Merge pull request #20 from Apricot-S/develop
Browse files Browse the repository at this point in the history
v2.0.2
  • Loading branch information
Apricot-S authored Dec 22, 2024
2 parents 9be1760 + a30bb77 commit dee0ec0
Show file tree
Hide file tree
Showing 5 changed files with 40 additions and 40 deletions.
62 changes: 31 additions & 31 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "xiangting-py"
version = "2.0.1"
version = "2.0.2"
description = "Python bindings for xiangting"
authors = ["Apricot S."]
edition = "2021"
Expand All @@ -25,5 +25,5 @@ name = "xiangting"
crate-type = ["cdylib"]

[dependencies]
pyo3 = { version = "0.23.0", features = ["extension-module"] }
xiangting = { git = "https://github.com/Apricot-S/xiangting.git", version = "2.0.1" }
pyo3 = { version = "0.23.3", features = ["extension-module"] }
xiangting = { git = "https://github.com/Apricot-S/xiangting.git", version = "2.0.2" }
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ The hand is represented by the number of each tile in an array of `list[int]`. T
| ----- | --------- | ---------- | --------- | ---------- | ---------- | ---------- | -------- |
| Tile | East (1z) | South (2z) | West (3z) | North (4z) | White (5z) | Green (6z) | Red (7z) |

Calculates the replacement number, which is equal to the deficiency number (a.k.a. xiangting number, 向聴数) + 1.

```python
from xiangting import calculate_replacement_number

Expand Down
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
project = "xiangting"
copyright = "2024, Apricot S."
author = "Apricot S."
release = "2.0.1"
release = "2.0.2"
version = release


Expand Down
8 changes: 3 additions & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "maturin"

[project]
name = "xiangting"
version = "2.0.1"
version = "2.0.2"
description = "Python bindings for xiangting"
authors = [{ name = "Apricot S." }]
license = { text = "MIT License" }
Expand Down Expand Up @@ -34,7 +34,7 @@ dev = [
{ include-group = "build" },
]
lint = [
"ruff>=0.7.1,<0.8",
"ruff>=0.8.4,<0.9",
]
test = [
"pytest>=8.3.3,<9",
Expand All @@ -50,7 +50,7 @@ typing = [
"mypy>=1.13.0,<2",
]
build = [
"maturin>=1.7.1",
"maturin>=1.7.8",
]

[tool.maturin]
Expand All @@ -73,8 +73,6 @@ ignore = [
# "C901", # complex-structure
"ANN002", # missing-type-args
"ANN003", # missing-type-kwargs
"ANN101", # missing-type-self
"ANN102", # missing-type-cls
"TD002", # missing-todo-author
"TD003", # missing-todo-link
"PLR0911", # too-many-return-statements
Expand Down

0 comments on commit dee0ec0

Please sign in to comment.