Skip to content

Commit ed6cc76

Browse files
committed
gil
1 parent 7c75252 commit ed6cc76

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

.github/workflows/CI.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ jobs:
4040
- uses: actions/checkout@v4
4141
- uses: actions/setup-python@v5
4242
with:
43-
python-version: 3.x
43+
python-version: 3.14
4444
- name: Build wheels
4545
uses: PyO3/maturin-action@v1
4646
with:
@@ -71,7 +71,7 @@ jobs:
7171
- uses: actions/checkout@v4
7272
- uses: actions/setup-python@v5
7373
with:
74-
python-version: 3.x
74+
python-version: 3.14
7575
- name: Build wheels
7676
uses: PyO3/maturin-action@v1
7777
with:
@@ -98,7 +98,7 @@ jobs:
9898
- uses: actions/checkout@v4
9999
- uses: actions/setup-python@v5
100100
with:
101-
python-version: 3.x
101+
python-version: 3.14
102102
architecture: ${{ matrix.platform.target }}
103103
- name: Build wheels
104104
uses: PyO3/maturin-action@v1
@@ -125,7 +125,7 @@ jobs:
125125
- uses: actions/checkout@v4
126126
- uses: actions/setup-python@v5
127127
with:
128-
python-version: 3.x
128+
python-version: 3.14
129129
- name: Build wheels
130130
uses: PyO3/maturin-action@v1
131131
with:

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "ruff-format"
3-
version = "0.1.0"
3+
version = "0.2.0"
44
edition = "2024"
55
license = "MIT"
66
readme = "README.md"

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ fn format_string(code: &str) -> PyResult<String> {
1313
}
1414

1515
/// A Python module implemented in Rust.
16-
#[pymodule]
16+
#[pymodule(gil_used=false)]
1717
fn ruff_format(m: &Bound<'_, PyModule>) -> PyResult<()> {
1818
m.add_function(wrap_pyfunction!(format_string, m)?)?;
1919
Ok(())

0 commit comments

Comments
 (0)