Skip to content

Commit c9711bf

Browse files
committed
build: maturin 1.8 pyo3 0.24
1 parent bae73f2 commit c9711bf

File tree

3 files changed

+80
-199
lines changed

3 files changed

+80
-199
lines changed

pyproject.toml

Lines changed: 62 additions & 57 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[build-system]
2-
requires = ["maturin>=1.5,<2.0"]
2+
requires = ["maturin>=1.8,<2.0"]
33
build-backend = "maturin"
44

55
[project]
@@ -13,18 +13,18 @@ readme = "README.md"
1313
license = "Apache-2.0"
1414

1515
classifiers = [
16-
"Programming Language :: Rust",
17-
"Programming Language :: Python :: Implementation :: CPython",
18-
"Programming Language :: Python :: Implementation :: PyPy",
19-
"Programming Language :: Python",
20-
"Programming Language :: Python :: 3",
21-
"Programming Language :: Python :: 3.8",
22-
"Programming Language :: Python :: 3.9",
23-
"Programming Language :: Python :: 3.10",
24-
"Programming Language :: Python :: 3.11",
25-
"Programming Language :: Python :: 3.12",
26-
"Programming Language :: Python :: 3.13",
27-
"License :: OSI Approved :: Apache Software License",
16+
"Programming Language :: Rust",
17+
"Programming Language :: Python :: Implementation :: CPython",
18+
"Programming Language :: Python :: Implementation :: PyPy",
19+
"Programming Language :: Python",
20+
"Programming Language :: Python :: 3",
21+
"Programming Language :: Python :: 3.8",
22+
"Programming Language :: Python :: 3.9",
23+
"Programming Language :: Python :: 3.10",
24+
"Programming Language :: Python :: 3.11",
25+
"Programming Language :: Python :: 3.12",
26+
"Programming Language :: Python :: 3.13",
27+
"License :: OSI Approved :: Apache Software License",
2828
]
2929
dynamic = ["version"]
3030

@@ -35,7 +35,10 @@ dynamic = ["version"]
3535
# https://github.com/deargen/workflows/blob/master/python-projector
3636
requirements-in-dir = "deps"
3737
requirements-out-dir = "deps/lock"
38-
python-platforms = ["x86_64-manylinux_2_28", "aarch64-apple-darwin", "x86_64-apple-darwin",
38+
python-platforms = [
39+
"x86_64-manylinux_2_28",
40+
"aarch64-apple-darwin",
41+
"x86_64-apple-darwin",
3942
"x86_64-pc-windows-msvc",
4043
]
4144

@@ -57,11 +60,15 @@ sdist-include = ["LICENSE", "README.md"]
5760
testpaths = ["tests"]
5861

5962
[tool.ruff]
60-
src = ["src"] # for ruff isort
61-
namespace-packages = ["tools", "scripts", "tests"] # for INP rule, suppress on these directories
63+
src = ["src"] # for ruff isort
64+
namespace-packages = [
65+
"tools",
66+
"scripts",
67+
"tests",
68+
] # for INP rule, suppress on these directories
6269
extend-exclude = [
63-
"src/rust_graph/_version.py", # CHANGE
64-
"scripts/update_version_in_cargo_toml.py", # CHANGE
70+
"src/rust_graph/_version.py", # CHANGE
71+
"scripts/update_version_in_cargo_toml.py", # CHANGE
6572
]
6673

6774
[tool.ruff.lint]
@@ -71,49 +78,49 @@ select = [
7178
"E",
7279
"F",
7380
"W",
74-
"B", # Bugbear
75-
"D", # Docstring
76-
"D213", # Multi-line docstring summary should start at the second line (replace D212)
77-
"N", # Naming
78-
"C4", # flake8-comprehensions
79-
"UP", # pyupgrade
80-
"SIM", # simplify
81-
"RUF", # ruff-specific
82-
"RET501", # return
83-
"RET502", # return
84-
"RET503", # return
85-
"PTH", # path
86-
"NPY", # numpy
87-
"PYI", # type stubs for pyright/pylance
88-
"PT", # pytest
89-
"PIE", #
90-
"LOG", # logging
91-
"COM818", # comma misplaced
92-
"COM819", # comma
93-
"DTZ", # datetime
81+
"B", # Bugbear
82+
"D", # Docstring
83+
"D213", # Multi-line docstring summary should start at the second line (replace D212)
84+
"N", # Naming
85+
"C4", # flake8-comprehensions
86+
"UP", # pyupgrade
87+
"SIM", # simplify
88+
"RUF", # ruff-specific
89+
"RET501", # return
90+
"RET502", # return
91+
"RET503", # return
92+
"PTH", # path
93+
"NPY", # numpy
94+
"PYI", # type stubs for pyright/pylance
95+
"PT", # pytest
96+
"PIE", #
97+
"LOG", # logging
98+
"COM818", # comma misplaced
99+
"COM819", # comma
100+
"DTZ", # datetime
94101
"YTT",
95102
"ASYNC",
96103

97104
# Not important
98-
"T10", # debug statements
99-
"T20", # print statements
105+
"T10", # debug statements
106+
"T20", # print statements
100107
]
101108

102109
ignore = [
103-
"E402", # Module level import not at top of file
104-
"W293", # Blank line contains whitespace
105-
"W291", # Trailing whitespace
106-
"D10", # Missing docstring in public module / function / etc.
107-
"D200", # One-line docstring should fit on one line with quotes
108-
"D212", # Multi-line docstring summary should start at the first line
109-
"D417", # require documentation for every function parameter.
110-
"D401", # require an imperative mood for all docstrings.
111-
"PTH123", # Path.open should be used instead of built-in open
112-
"PT006", # Pytest parameterize style
113-
"N812", # Lowercase `functional` imported as non-lowercase `F` (import torch.nn.functional as F)
114-
"NPY002", # legacy numpy random
115-
"UP017", # datetime.timezone.utc -> datetime.UTC
116-
"SIM108", # use ternary operator instead of if-else
110+
"E402", # Module level import not at top of file
111+
"W293", # Blank line contains whitespace
112+
"W291", # Trailing whitespace
113+
"D10", # Missing docstring in public module / function / etc.
114+
"D200", # One-line docstring should fit on one line with quotes
115+
"D212", # Multi-line docstring summary should start at the first line
116+
"D417", # require documentation for every function parameter.
117+
"D401", # require an imperative mood for all docstrings.
118+
"PTH123", # Path.open should be used instead of built-in open
119+
"PT006", # Pytest parameterize style
120+
"N812", # Lowercase `functional` imported as non-lowercase `F` (import torch.nn.functional as F)
121+
"NPY002", # legacy numpy random
122+
"UP017", # datetime.timezone.utc -> datetime.UTC
123+
"SIM108", # use ternary operator instead of if-else
117124
]
118125

119126
[tool.ruff.lint.pydocstyle]
@@ -129,9 +136,7 @@ max-line-length = 120
129136
known-third-party = ["wandb"]
130137

131138
## Uncomment this if you want to use Python < 3.10
132-
required-imports = [
133-
"from __future__ import annotations",
134-
]
139+
required-imports = ["from __future__ import annotations"]
135140

136141
[tool.ruff.lint.flake8-tidy-imports]
137142
# Ban certain modules from being imported at module level, instead requiring

0 commit comments

Comments
 (0)